Skip to content
Skip to Content
Docs
Studio

Export Recipe Allergen Chart

Charts the major allergens of up to 50 recipes, one row per recipe in the order sent, one column per allergen of the market's list, and returns the rows with links to the files asked for (csv, pdf).

A row shows allergens only when its recipe's allergen record is confirmed: each allergen is contains, may_contain (cross-contact) or neither, from the record the person confirmed. Any other row (unconfirmed, stale, unverifiable, unreadable, other_market, not_found) shows none and must not be read as free from them. A recipe the caller cannot read is not_found. Nothing about the recipes is saved.

POST
/studio/recipes/allergen-chart

Request Body

application/json
  1. body

The recipes to chart and the files to make.

recipe_ids*array<>

The recipes to chart, 1 to 50, in the order the rows appear. A repeated id is charted once.

Items1 <= items <= 50
formats?array<>

Files to make: csv, pdf or both. Defaults to csv.

Items1 <= items
country?"US"

The market whose major allergens are the chart's columns.

Default"US"
Value in"US"

Response Body

Successful Response

application/json
  1. response

Response of POST /recipes/allergen-chart.

data*

The chart: its columns, one row per requested recipe, and its files.

meta*

Response metadata.

Example Request
curl -X POST 'https://api.bettermenu.live/studio/recipes/allergen-chart' \  -H 'Content-Type: application/json' \  -d '{  "recipe_ids": [    "stringstringstringstringst"  ]}'
Example Response
{  "data": {    "country": "US",    "list_version": "string",    "allergens": [      {        "code": "string",        "name": "string"      }    ],    "dishes": [      {        "recipe_id": "string",        "name": "string",        "status": "confirmed",        "version_id": "string",        "cells": {          "property1": "contains",          "property2": "contains"        },        "species": [          "string"        ]      }    ],    "files": [      {        "format": "csv",        "download_url": "string",        "file_name": "string",        "expires_at": "2019-08-24T14:15:22Z"      }    ],    "generated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "version": "string",    "request_id": "string",    "timestamp": "string"  }}

Recipe in, FDA-format Nutrition Facts out, with every version kept.

Start freeNo card needed.