Skip to main content
POST
Search

Request contract

  • Method and path: POST /apis/v1/world-openfoodfacts-org/foods/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/world-openfoodfacts-org/foods/search
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
brand
string

Brand tag (coca-cola, oatly); lower-case slug, en: prefix accepted and stripped.

category
string

Category taxonomy id (en:oat-milks) or bare slug (oat-milks); suggest returns these ids.

country
string

Selling country as a taxonomy id (en:france) or bare slug (france, united-states). Matched against countries_tags.

facets
boolean

When true, return facet counts for brands_tags, nutrition_grades and countries_tags (default false).

lang
string

Language the text is matched in and names are returned in; default en. Pattern: ^[a-z]{2}$.

nova_group
number

nova_group

Provider reference: minimum 1; maximum 4.

nutriscore_grade
string

nutriscore_grade

Provider reference: allowed values ["a", "b", "c", "d", "e", "unknown", "not-applicable"].

page
number

1-based page; the service refuses to page past 10000 hits, so page * page_size must stay within 10000.

Provider reference: minimum 1.

page_size
number

Hits per page, default 24.

Provider reference: minimum 1; maximum 100.

query
string

Free text, e.g. oat milk. At least one of query, country, category, brand, nutriscore_grade, nova_group is required.

sort
string

relevance (default; score order), popularity (unique scans, descending) or recent (last edit, descending).

Provider reference: allowed values ["relevance", "popularity", "recent"].

Response

Search Open Food Facts products through the Search-a-licious service: free text (matched on product name, generic name, categories, labels and brands in lang) and/or structured filters (selling country, category, brand, Nutri-Score grade, NOVA group), sorted by relevance, popularity or last edit, paginated. Each hit carries barcode, product URL, name, brands, quantity, categories, countries, Nutri-Score, NOVA, Eco-Score, allergens, a per-100g nutrient summary, image URLs and the edit timestamp. Optional facet counts for brands, Nutri-Score grades and countries.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.