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 Item API

Look up detailed nutrition for branded and restaurant menu items.

Nutritionix Item 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 Item. 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 2 operations across 2 paths, and defines 6 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.

2 operations 2 paths 6 schemas 2 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 Item 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 2

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

Item 2

Look up detailed nutrition for branded and restaurant menu items.

GET
/search/item
Nutritionix Search Item
searchItem 4 params → 200401404
GET
/itemdeprecated
Nutritionix Get Item
getItem 3 params → 200401404

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Food (27 properties), AltMeasure (4 properties), Photo (3 properties), FullNutrient (2 properties). Each schema is shown below with its type and property counts.

Food
object
A fully detailed food object with complete nutrient information.
27 properties
FoodsResponse
object
A response that wraps one or more fully detailed food objects.
1 property
Error
object
Standard error response.
2 properties
Photo
object
Image URLs associated with a food or exercise.
3 properties
FullNutrient
object
A nutrient value identified by its USDA attribute id.
2 properties
AltMeasure
object
An alternative serving measure for a food.
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nutritionix-item-api-openapi.yml Raw ↑

Other APIs Nutritionix publishes across the network.

Nutritionix Brands API
Nutritionix Natural Language API
Nutritionix Search API