# FDA Drug Device and CQC Location Lookup API > Look up FDA NDC products, Orange Book patents and exclusivity, 510(k) decisions, drug enforcement reports, drug shortages, and CQC care locations from vendored official public bulk files. Each paid operation uses a fixed USDC price on Base with the x402 exact scheme. Unpaid GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result. HTTP 4xx/5xx are not charged. Coverage bodies with status complete, partial, or failed all return HTTP 200 and are charged at the full listed price. Settled 2xx responses include a payment-response header; 4xx/5xx do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/health-codes - Docs: https://www.brainiac.software/api/health-codes/docs - OpenAPI: https://www.brainiac.software/api/health-codes/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/health-codes/fda-ndc-lookup $0.03 USDC. Resolve a 10-digit or 11-digit NDC, or search a proprietary/non-proprietary name, in the vendored FDA NDC Directory subset of human prescription and OTC drugs. Inputs: ndc?, name?, labeler?, limit? Docs: https://www.brainiac.software/api/health-codes/docs#health-codes-fda-ndc-lookup Example request: ```json { "ndc": "58151015577" } ``` Example response: ```json { "results": [ { "productNdc": "58151-155", "packageNdc": "58151-155-77", "ndc11": "58151-0155-77", "packageDescription": "90 TABLET, FILM COATED in 1 BOTTLE (58151-155-77)", "proprietaryName": "Lipitor", "nonproprietaryName": "atorvastatin calcium", "productType": "HUMAN PRESCRIPTION DRUG", "dosageForm": "TABLET, FILM COATED", "route": "ORAL", "labeler": "Viatris Specialty LLC", "marketingCategory": "NDA", "applicationNumber": "NDA020702", "substances": [ { "name": "ATORVASTATIN CALCIUM TRIHYDRATE", "strength": "10", "unit": "mg/1" } ], "deaSchedule": null, "marketingStart": "2024-05-01", "marketingEnd": null } ], "snapshotDate": "2026-11-13", "sources": [ { "source": "FDA NDC Directory (product.txt, package.txt; human Rx and OTC subset)", "url": "https://www.accessdata.fda.gov/cder/ndctext.zip", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "NDC Directory lists only current listings; delisted/expired NDCs and unfinished drugs, vaccines, allergenics and plasma…", "Results read the vendored NDC Directory snapshot; accessdata.fda.gov is not called at request time.", "…" ] } ``` ### POST /api/v1/health-codes/fda-orange-book-lookup $0.03 USDC. Return Orange Book product, therapeutic-equivalence, patent and exclusivity rows for an application number, trade name or ingredient from the vendored Orange Book data files. Inputs: applNo?, applType?, tradeName?, ingredient?, includeDiscontinued? Docs: https://www.brainiac.software/api/health-codes/docs#health-codes-fda-orange-book-lookup Example request: ```json { "applNo": "209637" } ``` Example response: ```json { "products": [ { "applType": "N", "applNo": "209637", "productNo": "001", "ingredient": "SEMAGLUTIDE", "dosageFormRoute": "SOLUTION;SUBCUTANEOUS", "tradeName": "OZEMPIC", "applicant": "NOVO", "applicantFullName": "NOVO NORDISK INC", "strength": "2MG/1.5ML (1.34MG/ML)", "teCode": null, "approvalDate": "2017-12-05", "rld": "Yes", "rs": "No", "marketingStatus": "DISCN", "patents": [ { "patentNo": "8129343", "expires": "2031-12-05", "drugSubstance": true, "drugProduct": true, "useCode": "U-2202", "delistRequested": false, "submitted": "2017-12-20" }, { "patentNo": "8536122", "expires": "2026-03-20", "drugSubstance": true, "drugProduct": true, "useCode": "U-2202", "delistRequested": false, "submitted": "2017-12-20", "expired": true } ], "exclusivities": [ { "code": "I-961", "expires": "2028-01-28" } ] } ], "snapshotDate": "2026-11-13", "sources": [ { "source": "FDA Orange Book data files (products, patent, exclusivity)", "url": "https://www.fda.gov/media/76860/download", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Patents and exclusivities are returned as listed; a past expiry date is not removed, and expired:true is set when the e…", "Generic (A) applications have no patents in the Orange Book patent file.", "…" ] } ``` ### POST /api/v1/health-codes/fda-510k-lookup $0.03 USDC. Find a 510(k) or De Novo decision by number, applicant, device name or product code in the vendored FDA 510(k) releasable database (1996–current). Inputs: kNumber?, applicant?, deviceName?, productCode?, limit? Docs: https://www.brainiac.software/api/health-codes/docs#health-codes-fda-510k-lookup Example request: ```json { "kNumber": "K243000" } ``` Example response: ```json { "results": [ { "kNumber": "K243000", "applicant": "Shenzhen Medke Technology Co., Ltd.", "city": "Shenzhen", "state": null, "country": "CN", "dateReceived": "2024-09-26", "decisionDate": "2025-06-20", "decision": "SESE", "productCode": "FLL", "reviewPanel": "HO", "type": "Traditional", "summaryOrStatement": "Summary", "thirdParty": "N", "expedited": null, "deviceName": "Reusable Temperature Probe (T1306, T2306, T3306, T4306); Disposable Temperature Probe (T5106, T6106)" } ], "snapshotDate": "2026-11-09", "sources": [ { "source": "FDA 510(k) releasable database 1996–current (pmn96cur.txt)", "url": "https://www.accessdata.fda.gov/premarket/ftparea/pmn96cur.zip", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "File covers 510(k)s received from 1996 (plus some earlier) to the snapshot; a missing number is not proof of no clearan…", "PMA devices are not in this file.", "…" ] } ``` ### POST /api/v1/health-codes/fda-drug-enforcement-search $0.03 USDC. Search vendored openFDA drug enforcement reports by recall number, firm, product text, classification or status. Inputs: recallNumber?, firm?, product?, classification?, status?, reportDateFrom?, reportDateTo?, limit? Docs: https://www.brainiac.software/api/health-codes/docs#health-codes-fda-drug-enforcement-search Example request: ```json { "recallNumber": "D-0075-2027" } ``` Example response: ```json { "results": [ { "recallNumber": "D-0075-2027", "eventId": "100075", "recallingFirm": "Safecor Health, LLC", "city": "Rockford", "state": "IL", "country": "United States", "classification": "Class II", "status": "Ongoing", "voluntaryMandated": "Voluntary: Firm initiated", "productDescription": "Metoclopramide Tablets, USP, 5 mg, 100 Tablets per bottle, Rx Only, Manufactured for: Teva Pharmaceuticals, Parsippany,…", "productQuantity": null, "reasonForRecall": "Manufacturer is recalling batches due to co-mingled tablet.", "codeInfo": "Lot # 3116509, Expiry: 07/31/2027.", "distributionPattern": "US Nationwide", "recallInitiationDate": "2026-10-06", "centerClassificationDate": "2026-10-23", "reportDate": "2026-11-04", "terminationDate": null } ], "total": 1, "snapshotDate": "2026-11-10", "sources": [ { "source": "openFDA drug enforcement reports", "url": "https://download.open.fda.gov/drug/enforcement/drug-enforcement-0001-of-0001.json.zip", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Device and food enforcement reports are not included.", "Results read the vendored openFDA snapshot; api.fda.gov is not called at request time.", "…" ] } ``` ### POST /api/v1/health-codes/fda-drug-shortage-lookup $0.03 USDC. Look up vendored openFDA drug-shortage entries by generic name, package NDC or company, with the snapshot date of the export. Inputs: genericName?, packageNdc?, company?, status?, limit? Docs: https://www.brainiac.software/api/health-codes/docs#health-codes-fda-drug-shortage-lookup Example request: ```json { "packageNdc": "11534-191-01" } ``` Example response: ```json { "results": [ { "genericName": "Amphetamine Aspartate Monohydrate, Amphetamine Sulfate, Dextroamphetamine Saccharate, Dextroamphetamine Sulfate Tablet", "presentation": "Amphetamine Aspartate Monohydrate, Amphetamine Sulfate, Dextroamphetamine Saccharate, Dextroamphetamine Sulfate, Tablet…", "packageNdc": "11534-191-01", "companyName": "Sunrise Pharmaceutical, Inc.", "status": "Current", "availability": "Available", "dosageForm": "Tablet", "therapeuticCategory": [ "Psychiatry" ], "initialPostingDate": "2022-10-12", "updateDate": "2026-11-01", "updateType": "Reverified", "contactInfo": "732-382-6085 Monday to Friday 9 am to 3:45 pm" } ], "snapshotDate": "2026-11-13", "sources": [ { "source": "openFDA drug shortages", "url": "https://download.open.fda.gov/drug/shortages/drug-shortages-0001-of-0001.json.zip", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "An empty result means the package or name is not listed in FDA's shortage data at the snapshot date; it is not a statem…", "The openFDA shortage export can lag the FDA shortage website; each response carries the snapshot date.", "…" ] } ``` ### POST /api/v1/health-codes/cqc-location-lookup $0.03 USDC. Look up a CQC-registered care location in England from the vendored care directory and latest published Overall ratings by location id, name, postcode or provider id. Inputs: locationId?, name?, postcode?, providerId?, limit? Docs: https://www.brainiac.software/api/health-codes/docs#health-codes-cqc-location-lookup Example request: ```json { "locationId": "1-10000302982" } ``` Example response: ```json { "results": [ { "locationId": "1-10000302982", "providerId": "1-102642938", "name": "Henley House", "alsoKnownAs": null, "address": "333 Henley Road,Ipswich", "postcode": "IP1 6TB", "phone": null, "website": "https://www.greensleeves.org.uk/care-homes/henley-house-ipswich-suffolk/", "serviceTypes": [ "Residential homes" ], "specialisms": [ "Sensory impairments", "Dementia", "…" ], "providerName": "Greensleeves Homes Trust", "localAuthority": "Suffolk", "region": "East", "latestCheck": "2022-04-20", "ratings": { "overall": "Good", "safe": "Good", "effective": "Good", "caring": "Good", "responsive": "Good", "wellLed": "Good", "publicationDate": "2022-04-20" }, "url": "https://www.cqc.org.uk/location/1-10000302982" } ], "directoryDate": "2026-11-04", "ratingsDate": "2026-11-02", "sources": [ { "source": "CQC care directory", "url": "https://www.cqc.org.uk/system/files/2026-11/04_November_2026_CQC_directory.csv", "retrievedAt": "2026-11-14", "status": "ok" }, { "source": "CQC latest ratings (location-level Overall population group)", "url": "https://www.cqc.org.uk/system/files/2026-11/02_November_2026_Latest_ratings.ods", "retrievedAt": "2026-11-14", "status": "ok" } ], "limitations": [ "Deactivated locations are not in the active directory and return no result.", "A location with no rating row returns ratings:null (unrated or newly registered).", "…" ] } ```