Getting started
Introduction
Forkbit is a developer-first nutrition data API that returns clean, normalized food and nutrition data through a small set of well-designed REST endpoints, so you can ship calorie trackers, meal planners, and AI nutrition tools without negotiating with a sales team.
Every plan, including the free tier, gives you full access to the Forkbit dataset, permissive caching, and predictable JSON responses. Forkbit requires no attribution and sets no minimum spend. Authenticate with an API key, send a request, and ship.
Install the SDK
We publish an officially supported JavaScript / TypeScript SDK on npm.
npm install @forkbit/jsBase URL
https://api.forkbit.io/v1All endpoints are served over HTTPS. Requests without a valid API key return a 401 response. All endpoints are versioned under /v1/. Breaking changes ship under a new prefix and never replace the old one.
Which endpoints does Forkbit offer?
- →
GET /v1/foods/search: fast search for human-driven queries - →
GET /v1/foods/{id}: full nutrient profile for a single food - →
POST /v1/parse: natural language food descriptions to structured nutrition - →
POST /v1/recipes/analyze: recipe totals and per-serving macros - →
POST /v1/foods/batch: look up up to 50 foods in one request