Data API

US food recalls, joined up to the lot.

The ShelfCheck Data API serves the cleaned dataset behind the app: each recall linked to the retailers named in the evidence, and to the UPCs and lot codes it affects, with evidence tiers and sources. It contains no user data. A free developer tier, then paid tiers by volume.

  • Recalls → retailers → UPCs → lots
  • No user data
  • Free developer tier
One record, four joins
  1. 01 · Recallclass · hazard · status and its reason · source
  2. 02 · Retailerevidence tier · exact quote · where it came from
  3. 03 · UPCbarcode, normalised · product name · size
  4. 04 · Lotlot codes · best-by range

The dataset

The work between a notice and an answer.

A recall notice is a press release, a table or a PDF. The API gives you what it means, structured and linked, with the evidence kept alongside.

From official notices

FDA recall press releases and USDA FSIS recalls hourly, FDA enforcement reports daily and retailer recall pages from 17 chains every 3 hours. ShelfCheck reads 17 chains’ own recall pages, every 3 hours.

Linked to retailers, with evidence

Each link between a recall and a retailer has an evidence tier and keeps the exact quote behind it. Anything that fails validation goes to a person for review.

Down to the lot

UPCs normalised so UPC-A, UPC-E and EAN-13 match, with lot codes, best-by ranges and a status that comes with its reason.

How we source recalls

A sample response

What a record looks like.

One active recall, in the shape the API returns it. The product, stores, ids and dates are fictional, and the notice and licence texts are cut short.

GET /v1/recalls?state=GA&status=active&limit=1200 · application/json
{
  "data": [
    {
      "id": "5c0f1e00-0000-4000-8000-000000000001",
      "agency": "FDA",
      "recall_number": "F-0412-2026",
      "title": "Sunrise Farms recalls spinach dip for possible Listeria monocytogenes",
      "recalling_firm": "Sunrise Farms",
      "reason": "Possible contamination with Listeria monocytogenes.",
      "hazard_type": "listeria",
      "classification": "Class I",
      "allergens": [],
      "allergens_normalized": [],
      "specific_nuts": [],
      "nuts_unspecified": false,
      "status": "active",
      "status_reason": "Initiated 2026-09-20, within 120 days, with no termination notice; the latest best-by date is still ahead.",
      "withdrawn_at": null,
      "withdrawn_reason": null,
      "states": [
        "GA",
        "FL"
      ],
      "initiated_at": "2026-09-20",
      "closed_at": null,
      "source_urls": [
        "https://www.fda.gov/safety/recalls-market-withdrawals-safety-alerts"
      ],
      "classified": true,
      "review_state": "reviewed",
      "establishment_numbers": [],
      "changed_at": "2026-09-24T14:05:09.418226Z",
      "retailers": [
        {
          "slug": "oak-street-market",
          "name": "Oak Street Market",
          "confidence": "confirmed",
          "states": [
            "GA",
            "FL"
          ],
          "source": "retailer",
          "evidence": "…all lots, sold at Oak Street Market stores in Georgia and Florida."
        },
        {
          "slug": "cedar-lane-grocery",
          "name": "Cedar Lane Grocery",
          "confidence": "possible",
          "states": [
            "FL",
            "GA"
          ],
          "source": "fda_press",
          "evidence": "…distributed to retail stores including Cedar Lane Grocery."
        }
      ],
      "products": [
        {
          "name": "Spinach Dip",
          "brand": "Sunrise Farms",
          "size": "12 oz",
          "upc": "00012345678905",
          "lot_codes": [
            "24-117B",
            "24-118A"
          ],
          "best_by_start": "2026-10-14",
          "best_by_end": "2026-10-21",
          "notes": null,
          "establishment_numbers": []
        }
      ]
    }
  ],
  "next_cursor": "eyJjIjoiMjAyNi0wOS0yNFQxNDowNTowOS40MTgyMjZaIiwiaSI6IjVjMGYxZTAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDAwMSJ9",
  "meta": {
    "recalls_as_of": "2026-09-24T14:40:00.000000+00:00",
    "generated_at": "2026-09-24T14:41:07.512Z",
    "notice": "ShelfCheck recall data: each recall with its official sources, and the retailers it is linked to with a confidence tier and the evidence for it. It is not a complete list of every recalled product…",
    "licence": "Recall data, and product labels from public-domain sources (USDA FoodData Central) only. No product-label data from Open Food Facts (ODbL)…"
  }
}
Illustrative · fictional data
status, status_reason
The FDA doesn’t update a recall’s status after classifying it, so each record says why ShelfCheck considers it active, likely active or closed.
retailers[].confidence
Confirmed, likely or possible: how strong the evidence is that the recall reached that retailer.
retailers[].evidence, source
The exact words from the source that name the retailer, and which kind of source they came from.
retailers[].states
Where that chain may have sold it. A link whose source names no state covers the recall’s own states; US means every state; an empty list means the recall’s distribution is not known, so every state. The state filter follows the same rule.
hazard_type
listeria, salmonella, e_coli, other_pathogen (any other bacterium, virus or parasite, or its toxin: botulism, Cronobacter, hepatitis A, norovirus…), undeclared_allergen, foreign_material, other, or null while ShelfCheck hasn’t read the recall. Until ShelfCheck switches other_pathogen on, recalls read as another pathogen are published as other; when it does, each such record moves its changed_at. Values may be added: treat one you don’t know as a hazard not known, never as no hazard.
allergens_normalized, specific_nuts, nuts_unspecified
The allergens a recall names, in one vocabulary. When nuts_unspecified is true, the source names tree nuts without closing the list, so specific_nuts may not be every nut it covers.
products[].upc, lot_codes, best_by_*
The barcode as a 14-digit GTIN, so UPC-A, UPC-E and EAN-13 match, with the lots and dates to compare against a package.
establishment_numbers, products[].establishment_numbers
The USDA establishment numbers the recall’s sources print (“1896”, “P-1325”), as printed in or beside the mark of inspection: the recall’s from its notices, each product’s from what was read for it. Empty when none is printed. A recall that prints no barcode is matched to a package by these and its product names.
changed_at, next_cursor
When the record last changed: its status, a retailer link, a product. Pages run oldest change first; pass next_cursor back as cursor.
data.label (on /v1/upc)
A public-domain label for the barcode, or null (which says nothing about the product). Its allergen lists are null until ShelfCheck’s parser has read an ingredient list (label_status), and null never means “none”; advisory allergens are never merged into declared ones.
meta.recalls_as_of, meta.notice
How current the dataset is, and that no recall list is complete. Show both to your users.
meta.merged_from (on /v1/recalls/{id})
Set when the id you asked for is a record ShelfCheck merged into another, having found the two were one recall. The answer is that recall, under its own id: replace the old id in your copy. Lists never show the old id again.

Endpoints

A small, read-only API.

JSON over HTTPS. Four endpoints, GET only, with a key on every request. Fields may be added; nothing is removed without notice.

Data API endpoints
EndpointReturns
GET/v1/recallsRecalls of every status, oldest change first, in pages of up to 100 (50 by default). Filters: state, since (a date or a time: what changed since then), status (active, likely_active, closed, comma-separated), retailer (a slug), cursor, limit. An unknown parameter is an error, never ignored.
GET/v1/recalls/{id}One recall by id, whatever its status, with its products, lots, best-by ranges, retailer links and sources. An id ShelfCheck merged into another recall (two records found to be one) answers with that recall, under its own id, and meta.merged_from names the id you asked for.
GET/v1/upc/{upc}The recalled products that list a barcode, each with its recall, and the product’s label (ingredients, declared and “may contain” allergens) when ShelfCheck holds a public-domain one, else null. 8, 12, 13 or 14 digits; UPC-A, UPC-E and EAN-13 are normalised to one form.
GET/v1/retailersThe retailers ShelfCheck links recalls to: slug, name, aliases, and how many active recalls each is linked to, by confidence.

Keys, limits and headers

HeaderMeaning
Authorization: Bearer sk_live_…Your key. Or send it as x-api-key. Only its hash is stored.
X-RateLimit-Limit, -Remaining, -ResetThis minute’s window: the limit, what is left, and when it resets (Unix seconds).
X-Quota-Limit, -Remaining, -ResetThis calendar month (UTC): the quota, what is left, and when it resets.
Retry-AfterOn a 429: the seconds until the window that refused the request resets.

Limits belong to your account and are shared by its keys: up to five live keys, each shown once when it is made.

Errors

StatusWhen
400 invalid_requestA bad or unknown parameter, a malformed id or UPC.
401 missing_api_key, invalid_api_keyNo key, or not one ShelfCheck issued.
403 revoked_api_key, suspendedThe key was revoked, or the account is suspended.
404 not_foundNo such endpoint or recall.
405 method_not_allowedAnything but GET or HEAD: the API is read-only.
429 rate_limited, quota_exceededOver the minute’s limit or the month’s quota. A refused request costs nothing.

The licence

Recall data in. User data never.

The API serves recall data and the recalled products the notices list, and nothing else. What a licence doesn’t let us redistribute is filtered out when the data is queried, not left to convention.

The Data API terms, accepted before a first key

  • In the API

    Recall data

    Compiled by ShelfCheck from official FDA and USDA notices and retailer recall pages. Each record carries its source.

  • In the API

    Recalled products

    Names, brands, sizes, UPCs, lot codes and best-by ranges, as the recall notices list them.

  • In the API

    Label fields

    On /v1/upc: a product’s ingredients and its declared and “may contain” allergens, kept apart, only from public-domain labels (USDA FoodData Central), with the date the label was captured.

  • Never in the API

    Share-alike label data

    Open Food Facts data is published under a share-alike licence. The app shows it with attribution; the API filters it out in the query.

  • Never in the API

    User data

    None. No accounts, scans, pantries, households, locations or behaviour. It isn’t in the dataset to serve.

  • Never in the API

    Store locations

    The API links recalls to retailers, with evidence. It doesn’t publish where individual stores are.

Who it’s for

For products that handle food.

  • Grocery delivery and meal kits

    Check what you sell and ship against active recalls, down to the lot.

  • Pantry and inventory apps

    Tell your users when something they saved is recalled, with the source.

  • Food banks

    Check donated and purchased stock before it goes out.

  • Smaller retailers

    Recalls that name you or your suppliers, without a compliance team.

Tiers

Free to build on. Paid by volume.

Start on the free developer tier. Paid tiers are arranged with ShelfCheck directly for now.

Developer

Free

$0

  • For building and testing against the dataset
  • 60 requests a minute, 10,000 a month
  • Recalls, retailer links, UPCs and lots
  • Evidence tiers, quotes and sources
  • No user data, on any tier
Ask for a free key

Production

By volume

Paid tiers by volume

  • The same dataset, for production traffic
  • Priced by call volume, monthly
  • Arranged with ShelfCheck directly for now
  • The same independence: nobody pays to change the data
Ask about paid tiers
Request limits by tier
TierRequests a minuteRequests a month
Free developer tier6010,000
Starter300250,000
Growth1,2002,500,000
Enterprise6,00025,000,000

Limits are per account, shared by its keys. A month is a calendar month in UTC. A paid tier changes the limits within a minute of the payment, and a cancelled one runs to the end of the period paid for.

Questions

About the Data API

ShelfCheck is informational only.No recall list is complete, including ours. Always follow the official recall notice and read the package label. ShelfCheck is not affiliated with the FDA, USDA or any retailer.
Does the Data API include anything about ShelfCheck’s users?

No. The dataset holds recalls, the retailers and products they name, and their sources. It holds no accounts, scans, pantries, households, locations or anything else about the people who use the app.

Which product data does the API serve?

The recalled products as the recall notices list them: names, brands, sizes, UPCs, lot codes and best-by ranges. For a barcode, /v1/upc also carries its label (ingredients, and declared and “may contain” allergens kept apart) when ShelfCheck holds one from a public-domain source, USDA FoodData Central. Label data from Open Food Facts is published under a share-alike licence, so the app can show it with attribution but the API never serves it.

Does the API include store locations?

No. It links recalls to retailers, with the evidence for each link. It doesn’t publish the locations of individual stores.

Is the dataset complete?

No recall list is complete, including ours. Each record carries its source, the time ShelfCheck last updated it and, for each retailer link, the evidence tier and the exact quote behind it, so your product can show its working too.

How we source recalls

What does the API cost?

There is a free developer tier, with 60 requests a minute and 10,000 a month, then paid tiers by volume, monthly through Stripe, bought and changed on your API keys page where they are on sale; the price is on the checkout page before you pay. Limits belong to your account and are shared by its keys.

The waitlist

Build on the recall data.

Sign in for a free developer key, or join the list and choose the Data API to hear about new fields and tiers.

Your phone

We use your email only for ShelfCheck waitlist news, and never sell it. Privacy policy