# openFDA on Onekey > 3 endpoints for openFDA (3 stable, 0 beta), 5 credits each. Category: Science & research. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/openfda Reference (Markdown): https://onekey.dev/docs/api/openfda.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 3 mapped openFDA endpoints return each: - `content.createdAt` (ISO 8601 date): 2 - `content.id` (string): 2 - `content.text` (string): 2 - `content.title` (string): 2 - `entity.status` (string): 2 - `listing.company` (string): 2 - `entity.id` (string): 1 - `entity.name` (string): 1 - plus 5 platform-specific fields under `ext.` ## Endpoints ### openfda.drug_labels Search FDA drug labels (brand, purpose, indications). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/openfda/drug_labels?q=aspirin` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): openFDA search, e.g. aspirin - Fields returned: `entity.id`, `entity.name`, `ext.generic`, `ext.manufacturer`, `ext.purpose`, `ext.indications` - Reference: https://onekey.dev/docs/api/openfda/drug_labels.md ### openfda.drug_recalls FDA drug recalls (enforcement reports). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/openfda/drug_recalls` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.title`, `content.text`, `listing.company`, `entity.status`, `content.createdAt`, `ext.classification` - Reference: https://onekey.dev/docs/api/openfda/drug_recalls.md ### openfda.food_recalls FDA food product recalls (enforcement reports). - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/openfda/food_recalls` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `content.id`, `content.title`, `content.text`, `listing.company`, `entity.status`, `content.createdAt`, `ext.classification` - Reference: https://onekey.dev/docs/api/openfda/food_recalls.md ## Sample request ```bash curl "https://api.onekey.dev/v1/openfda/drug_labels?q=aspirin" \ -H "x-api-key: YOUR_API_KEY" ```