openFDA
Drug, device and food adverse events, labels and recalls.
Authentication
Requests are authenticated with an API key. Keep keys on the server side (for example in a serverless function) and never ship them in front-end code or public repositories.
Pricing model
The provider offers this API free of charge. Check the terms for rate limits and any attribution rules. Prices change often, so check the provider's pricing page before you commit, and model your bill at 10× today's volume.
Before you integrate
- Read the terms on caching, storing and displaying data.
- Note the rate limits and the error format so you can retry with backoff.
- Wrap calls behind your own interface so you can switch providers later.
- Pin an API version if the provider offers versioning, and watch its changelog.
Alternatives to openFDA
USDA FoodData Central
Nutrient data for foods and branded products (public domain).
api.data.gov
One key for many US federal agency APIs.
Nager.Date
Public holidays for 100+ countries.
Calendarific
Worldwide holidays including observances.
CPSC Recalls API
US consumer product recall data.
Companies House API
UK company profiles, officers and filing history.