Data Sources

GEThttps://api-drugs.dataandapis.com/v1/sources

Data Sources is an endpoint of the Drugs API. 135,000 FDA drug products by NDC, joined with 17,900 recall reports.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

This endpoint takes no parameters.

Example request

curl
curl "https://api-drugs.dataandapis.com/v1/sources" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-drugs.dataandapis.com/v1/sources", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api-drugs.dataandapis.com/v1/sources",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "ok": true,
  "count": 2,
  "sources": [
    {
      "slug": "openfda-enforcement",
      "name": "FDA Drug Recall Enforcement Reports (openFDA bulk export)",
      "publisher": "US Food and Drug Administration",
      "licence": "US Government work - no copyright",
      "source_url": "https://open.fda.gov/apis/drug/enforcement/",
      "file_url": "https://download.open.fda.gov/drug/enforcement/drug-enforcement-0001-of-0001.json.zip",
      "cadence": "refreshed daily by scrapers/main-scraper (queue DRUGS-RECALLS)",
      "record_count": 17898,
      "export_date": "2026-08-27",
      "retrieved_at": "2026-08-29",
      "updated_at": "2026-08-29 06:06:16"
    },
    {
      "slug": "openfda-ndc",
      "name": "FDA National Drug Code Directory (openFDA bulk export)",
      "publisher": "US Food and Drug Administration",
      "licence": "US Government work - no copyright",
      "source_url": "https://open.fda.gov/apis/drug/ndc/",
      "file_url": "https://download.open.fda.gov/drug/ndc/drug-ndc-0001-of-0001.json.zip",
      "cadence": "openFDA re-exports daily; monthly re-seed recommended",
      "record_count": 135164,
      "export_date": "2026-08-28",
      "retrieved_at": "2026-08-29",
…
Show full response
{
  "ok": true,
  "count": 2,
  "sources": [
    {
      "slug": "openfda-enforcement",
      "name": "FDA Drug Recall Enforcement Reports (openFDA bulk export)",
      "publisher": "US Food and Drug Administration",
      "licence": "US Government work - no copyright",
      "source_url": "https://open.fda.gov/apis/drug/enforcement/",
      "file_url": "https://download.open.fda.gov/drug/enforcement/drug-enforcement-0001-of-0001.json.zip",
      "cadence": "refreshed daily by scrapers/main-scraper (queue DRUGS-RECALLS)",
      "record_count": 17898,
      "export_date": "2026-08-27",
      "retrieved_at": "2026-08-29",
      "updated_at": "2026-08-29 06:06:16"
    },
    {
      "slug": "openfda-ndc",
      "name": "FDA National Drug Code Directory (openFDA bulk export)",
      "publisher": "US Food and Drug Administration",
      "licence": "US Government work - no copyright",
      "source_url": "https://open.fda.gov/apis/drug/ndc/",
      "file_url": "https://download.open.fda.gov/drug/ndc/drug-ndc-0001-of-0001.json.zip",
      "cadence": "openFDA re-exports daily; monthly re-seed recommended",
      "record_count": 135164,
      "export_date": "2026-08-28",
      "retrieved_at": "2026-08-29",
      "updated_at": "2026-08-29 06:04:53"
    }
  ]
}