Allergens API

Look up allergen data for individual ingredients, search across the ingredient catalog by allergen, and filter ingredient lists by allergen presence. Field availability is gated by plan.

Authentication

All endpoints require the x-api-key header. Response codes: 200 OK, 401 Auth Error, 429 Limited.

Endpoints

MethodPathDescription
GET/allergensList allergen data with pagination and advanced filtering (plan-based)
GET/allergens/searchSearch ingredients and return allergen data (gated by plan)
GET/allergens/search/{search_text}Path-param variant
GET/allergens/{ingredient_id}Get allergen data for an ingredient (fields gated by plan)

List Allergen Data

GET/allergens

Return a paginated list of allergen data. Filter results with query parameters. Fields gated by plan.

Query Parameters

ParameterTypeDefaultDescription
limitinteger10Basic max 10, Pro max 50, Custom max 100
offsetinteger0Pagination offset
categorystring-Filter by ingredient category
allergenstring-Filter by specific allergen
has_allergensboolean-Filter by allergen presence
sustainability_minnumber-Min sustainability score
sustainability_maxnumber-Max sustainability score
nutrition_minnumber-Min nutrition score
nutrition_maxnumber-Max nutrition score
protein_minnumber-Min protein (g)
fat_minnumber-Min fat (g)
carbs_minnumber-Min carbs (g)
fiber_minnumber-Min fiber (g)
sodium_maxnumber-Max sodium (mg)
energy_maxnumber-Max energy (kcal)
curl "https://developer-portal-backend-694046361762.northamerica-northeast1.run.app/allergens?limit=10" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Accept: application/json"
Response200 OK
{
  "items": [
    {
      "has_allergens": false,
      "id": "65d5d345cc535e012de2fc49",
      "name": "Example Allergen Name"
    }
  ],
  "pagination": {
    "total_count": 100,
    "limit": 10,
    "offset": 0,
    "has_next": true,
    "has_previous": false
  }
}

Search Allergen Data (Path Param)

GET/allergens/search/{search_text}

Path-parameter variant of search. Pass the search text directly in the URL path.

curl "https://developer-portal-backend-694046361762.northamerica-northeast1.run.app/allergens/search/cheese" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Accept: application/json"
Response200 OK
[
  {
    "id": "65d5d34acc535e012de2fcdd",
    "name": "Milk, cow, skimmed, 0.5 % fat",
    "allergens_flat": [],
    "allergens_by_country": []
  },
  {
    "id": "65d5d350cc535e012de2fd95",
    "name": "Cheese, cottage, lowfat, 2% milkfat",
    "allergens_flat": [],
    "allergens_by_country": []
  }
]

Get Allergen Data

GET/allergens/{ingredient_id}

Retrieve allergen information for a specific ingredient. Fields limited by plan.

Path Parameters

ParameterTypeRequiredDescription
ingredient_idstringYesUnique ingredient identifier
curl "https://developer-portal-backend-694046361762.northamerica-northeast1.run.app/allergens/65d5d3e1cc535e012de30da2" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Accept: application/json"
Response200 OK
{
  "id": "65d5d3e1cc535e012de30da2",
  "name": "Bitter Orange Extract",
  "allergens_flat": [],
  "allergens_by_country": []
}