Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Nutritionix Search API

Search the nutrition database for common and branded foods.

Nutritionix Search API is one of 4 APIs that Nutritionix publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 30 JSON Schema definitions.

Tagged areas include Search. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, and 30 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 5 schemas. It is described by OpenAPI 3.0.3, at version 2.0.

Requests are made against a single base URL, https://trackapi.nutritionix.com/v2.

1 operations 1 paths 5 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0
Base URL
https://trackapi.nutritionix.com/v2
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

Nutritionix Search API declares 2 security schemes for authenticating requests. An API key is passed in the header as x-app-id (AppId). An API key is passed in the header as x-app-key (AppKey). By default, every request must be authenticated.

  • AppId — Your Nutritionix application identifier.
  • AppKey — Your Nutritionix application key.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

Search 1

Search the nutrition database for common and branded foods.

GET
/search/instant
Nutritionix Search Instant
searchInstant 6 params → 200401

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are BrandedFood (12 properties), CommonFood (8 properties), Photo (3 properties), Error (2 properties). Each schema is shown below with its type and property counts.

InstantSearchResponse
object
Response from the instant search endpoint.
2 properties
CommonFood
object
A matched common (generic) food from instant search.
8 properties
Error
object
Standard error response.
2 properties
Photo
object
Image URLs associated with a food or exercise.
3 properties
BrandedFood
object
A matched branded or restaurant food from instant search.
12 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nutritionix-search-api-openapi.yml Raw ↑

Other APIs Nutritionix publishes across the network.

Nutritionix Brands API
Nutritionix Item API
Nutritionix Natural Language API