DEV Community

DataForge
DataForge

Posted on

Pull FDA import refusals by country and product code in Python (cosmetics example)

When a shipment of cosmetics, food or drugs is refused entry into the US, FDA records it. The Import Refusal Report is public, but it ships as monthly CSV zip files plus a separate table of charge statements. If you want "all refused cosmetics lines from one country this year", you download, unzip and join files yourself.

Disclosure: I built the Actor used below. It reads FDA's official refusal files and joins each line to its charge statements. A refusal is a decision about one entry line, not a finding about the manufacturer overall, so treat this as research data, not legal advice.

Run it

from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("dataforge_api/fda-import-refusals-oasis-ppe").call(run_input={
    "periods": ["2024-present"],
    "countryCodes": ["IN"],          # manufacturer country
    "productCodePrefixes": ["53"],   # FDA product codes starting with 53 = cosmetics
    "maxResults": 6,                 # newest first
})
for r in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(r["refusal_date"], r["country_code"], r["product_code"],
          r["product_description"][:45], r["refusal_charge_codes"])
Enter fullscreen mode Exit fullscreen mode

Real output from this run (manufacturer names left out on purpose):

2026-10-08 IN 53PD99 OTHER COSMETIC RAW MATERIALS, N.E.C.                  ['DRUG GMPS-27']
2026-09-30 IN 53JY01 BATH SOAPS AND DETERGENTS (NOT ANTIPERSPIRANT) (PERS  ['COSM COLOR-197']
2026-09-24 IN 53JY01 BATH SOAPS AND DETERGENTS (NOT ANTIPERSPIRANT) (PERS  ['COSM COLOR-197']
2026-09-21 IN 53LD99 OTHER SKIN CARE PREPARATIONS, N.E.C.                  ['UNAPPROVED-75']
2026-09-19 IN 53IC01 DENTIFRICES (AEROSOL, LIQUID, TOOTHPASTES, TOOTHPOWDERS), WITHOUT FLUORIDE (ORAL HYGIENE PRODUCTS)  ['COSM COLOR-197']
2026-08-17 IN 53ED99 OTHER HAIR PREPARATIONS, NON-COLORING), N.E.C.        ['UNAPPROVED-75', 'COSM COLOR-197', 'COSMETFPLA-3881']
Enter fullscreen mode Exit fullscreen mode

Each record also has the declared manufacturer (name, FEI number, address, city, state), the FDA district, the entry number, sample-analysis flags, and the full refusal sections and statements text.

Where this is useful

  • Importers and brands checking which product categories from a given country were refused recently.
  • Consultants who track repeat charge codes (for example the same code across many lines) to see what FDA keeps flagging.
  • Researchers who want the data as a table without handling the monthly zips.

Filters

  • periods: which FDA files to read, from 2002-2006 up to 2024-present.
  • countryCodes, productCodePrefixes, keywords (manufacturer name or product description), dateFrom / dateTo.
  • maxResults: results come newest first.

Limits

  • The FDA report has no phone, email or website for the manufacturer.
  • One record is one refused entry line. A refused line does not mean the manufacturer is banned or unsafe, and the product may later be released or re-exported.
  • Data freshness is that of the FDA files.

Pricing

Pay per record: $0.01 per saved refusal line (about $10 per 1,000). If a search matches nothing, you are not charged.

Actor page: https://apify.com/dataforge_api/fda-import-refusals-oasis-ppe

Top comments (0)