Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: NutriGraph Products API
version: 1.0.0
summary: 'Food intelligence by barcode: ingredients, allergens, clean-label, nutrition and quality scores.'
description: 'NutriGraphAPI returns food intelligence for UPC-indexed products. Every successful lookup returns two root objects: `scraped_data` (on-label and listing data) and `analysed_data` (the analysed layer). Build application logic against `analysed_data`.
The free Developer plan returns the full payload; the only limit is volume (1,000 calls per month). Request a free key: https://app.nutrigraphapi.com/?utm_source=openapi
**Data notes**
- Known gap: the allergen map in additionalInfo.allergens does not currently include a Soy key (keys: Celery, Crustaceans, Eggs, Fish, Gluten, Lupin, Milk, Peanuts, Sesame, Sugar, TreeNuts). Do not infer "no soy" from it. For soy, read the ingredient text (analysed_data.ingredients and scraped_data.ingredients) and the manufacturer declaration.
- Allergen and dietary fields are informational and derived from ingredient text and manufacturer data, which can be out of date or wrong. They are not a guarantee, not medical advice and not a certification. Always check the pack.
- Some product records are derived from Open Food Facts (https://world.openfoodfacts.org) and are made available under the Open Database License (ODbL) 1.0, https://opendatacommons.org/licenses/odbl/1-0/. Contains information from Open Food Facts. Attribution is required, and ODbL share-alike and attribution terms apply to those records.
- Attribution: apps, pages or documents that display NutriGraphAPI data on the free and Professional plans must carry a visible credit linking to https://nutrigraphapi.com.
- Caching: you may cache responses for up to 24 hours (keyed on barcode), then revalidate.
This spec was written from the public docs at https://www.nutrigraphapi.com/docs. If the two differ, the live API behaviour and the docs are authoritative; tell support@nutrigraphapi.com.'
termsOfService: https://www.nutrigraphapi.com/legal.html
contact:
name: NutriGraphAPI support
email: support@nutrigraphapi.com
url: https://www.nutrigraphapi.com/docs
license:
name: 'Specification: CC0 1.0. API data: see the Terms and the ODbL notice in the description.'
identifier: CC0-1.0
servers:
- url: https://api.nutrigraphapi.com/v1
description: NutriGraphAPI
security:
- ApiKeyAuth: []
tags:
- name: Products
description: Search products by name, or fetch one by barcode.
paths:
/search:
get:
tags:
- Products
operationId: searchProducts
summary: Search products by name
description: Returns products whose name matches q.
parameters:
- name: q
in: query
required: true
description: Product name to search for.
schema:
type: string
example: oat milk
responses:
'200':
description: Search results (may be empty).
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
'400':
$ref: '#/components/responses/BadInput'
'402':
$ref: '#/components/responses/KeyPaused'
'403':
$ref: '#/components/responses/Forbidden'
'422':
$ref: '#/components/responses/BadInput'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
/fetch:
get:
tags:
- Products
operationId: fetchProduct
summary: Fetch a product by barcode
description: 'Returns the full payload (`scraped_data` and `analysed_data`) for a EAN or UPC barcode. Only successful (200) answers count against your allowance. Known gap: the allergen map in additionalInfo.allergens does not currently include a Soy key (keys: Celery, Crustaceans, Eggs, Fish, Gluten, Lupin, Milk, Peanuts, Sesame, Sugar, TreeNuts). Do not infer "no soy" from it. For soy, read the ingredient text (analysed_data.ingredients and scraped_data.ingredients).'
parameters:
- name: barcode
in: query
required: true
description: EAN or UPC barcode. Leading zeros must be preserved.
schema:
type: string
pattern: ^[0-9]{8,14}$
example: '8000500310502'
responses:
'200':
description: Product found.
content:
application/json:
schema:
$ref: '#/components/schemas/LookupResponse'
'400':
$ref: '#/components/responses/BadInput'
'402':
$ref: '#/components/responses/KeyPaused'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
components:
responses:
Forbidden:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
KeyPaused:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
NotFound:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
ServerError:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
BadInput:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
RateLimited:
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
schemas:
SearchResponse:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
LookupResponse:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
externalDocs:
description: Human-readable documentation
url: https://www.nutrigraphapi.com/docs