Swiss Food Composition Database · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Swiss Food Composition Database Data API
14 actions
14 updates
phrasing
extends
openapi/swiss-food-composition-database-data-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Swiss Food Composition Database's API. It is a proposal applied on top of the contract, not a document Swiss Food Composition Database publishes.
What the actions change
x-apievangelist-phrasing
Targets 14
$.info
$.paths['/webresources/BLV-api/values'].get
$.paths['/webresources/BLV-api/langualcodes'].get
$.paths['/webresources/BLV-api/topcategories'].get
$.paths['/webresources/BLV-api/categories'].get
$.paths['/webresources/BLV-api/subcategories/{id}'].get
$.paths['/webresources/BLV-api/foods_old'].get
$.paths['/webresources/BLV-api/fooddbid/{foodId}'].get
$.paths['/webresources/BLV-api/foods'].get
$.paths['/webresources/BLV-api/food/{DBID}'].get
$.paths['/webresources/BLV-api/categorizedfoods'].get
$.paths['/webresources/BLV-api/ingredients'].get
$.paths['/webresources/BLV-api/value/{DBID}'].get
$.paths['/webresources/BLV-api/source/{DBID}'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Swiss Food Composition Database Data API
version: 1.0.0
extends: openapi/swiss-food-composition-database-data-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-20'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 13
- target: $.paths['/webresources/BLV-api/values'].get
update:
x-apievangelist-phrasing:
intent: Get nutrient values for a food
effect: read
questions:
- What values does a given food contain?
- Can I get a food's values for a specific component set?
instructions:
- text: Get values for food {DBID} from component set {componentsetid}.
slots:
DBID: query.DBID
componentsetid: query.componentsetid
- text: Show {componentsetid} values of {DBID} in {lang}.
slots:
componentsetid: query.componentsetid
DBID: query.DBID
lang: query.lang
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/langualcodes'].get
update:
x-apievangelist-phrasing:
intent: Get Langual codes for a food
effect: read
questions:
- Which Langual codes apply to a food?
- Can I get the Langual codes for a food by its DBID?
instructions:
- text: Get Langual codes for food {DBID}.
slots:
DBID: query.DBID
- text: Show Langual codes of {DBID}.
slots:
DBID: query.DBID
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/topcategories'].get
update:
x-apievangelist-phrasing:
intent: List top-level food categories
effect: read
questions:
- What are the top-level food categories?
- Can I get the main food category names in a given language?
instructions:
- text: List top-level food categories.
- text: Show top-level categories in {lang}.
slots:
lang: query.lang
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/categories'].get
update:
x-apievangelist-phrasing:
intent: List all food categories
effect: read
questions:
- Which categories are used in the food database?
- Can I get every category name regardless of level?
instructions:
- text: List all food categories.
- text: Show every category in {lang}.
slots:
lang: query.lang
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/subcategories/{id}'].get
update:
x-apievangelist-phrasing:
intent: List subcategories of a top-level category
effect: read
questions:
- What subcategories belong to a top-level food category?
- Can I get the subcategories of one category in a specific language?
instructions:
- text: List subcategories of top-level category {id}.
slots:
id: path.id
- text: Show {lang} subcategories under {id}.
slots:
lang: query.lang
id: path.id
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/foods_old'].get
update:
x-apievangelist-phrasing:
intent: Search old food entries by criteria
effect: read
questions:
- Can I find old food entries by name or component value?
- Which foods match a value and operator comparison?
instructions:
- text: Find old foods matching {search}.
slots:
search: query.search
- text: Find old foods in category {category} with component {component} {operator} {amount}.
slots:
category: query.category
component: query.component
operator: query.operator
amount: query.amount
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/fooddbid/{foodId}'].get
update:
x-apievangelist-phrasing:
intent: Get a food's DBID from its foodId
effect: read
questions:
- How do I get the database ID of a food from its foodId?
- What DBID corresponds to a given foodId?
instructions:
- text: Get the DBID for food {foodId}.
slots:
foodId: path.foodId
- text: Map food {foodId} to its database ID.
slots:
foodId: path.foodId
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/foods'].get
update:
x-apievangelist-phrasing:
intent: Search foods by component value
effect: read
questions:
- How do I find foods with more than a set amount of a nutrient?
- Can I search foods by category and a component value in a language?
instructions:
- text: Find {category} foods with {amount} {component}.
slots:
category: query.category
amount: query.amount
component: query.component
- text: List foods matching {search} in language {lang}.
slots:
search: query.search
lang: query.lang
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/food/{DBID}'].get
update:
x-apievangelist-phrasing:
intent: Get a food by its DBID
effect: read
questions:
- Can I look up a food by its database ID?
- What does a food with a given DBID contain?
instructions:
- text: Get food {DBID}.
slots:
DBID: path.DBID
- text: Show {lang} details of food {DBID}.
slots:
lang: query.lang
DBID: path.DBID
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/categorizedfoods'].get
update:
x-apievangelist-phrasing:
intent: Count foods by category
effect: read
questions:
- How many foods are in each category?
- Can I count foods matching a search across categories?
instructions:
- text: Count foods matching {search}.
slots:
search: query.search
- text: Count {type} foods in category {category} with component {component} {operator} {amount}.
slots:
type: query.type
category: query.category
component: query.component
operator: query.operator
amount: query.amount
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/ingredients'].get
update:
x-apievangelist-phrasing:
intent: Get ingredients of a food
effect: read
questions:
- What ingredients make up a food?
- Can I list the ingredients of a food in a given language?
instructions:
- text: Get ingredients of food {DBID}.
slots:
DBID: query.DBID
- text: Show {lang} ingredients of {DBID}.
slots:
lang: query.lang
DBID: query.DBID
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/value/{DBID}'].get
update:
x-apievangelist-phrasing:
intent: Look up a nutrient value by ID
effect: read
questions:
- What does a specific nutrient value ID return?
- Can I get one food value in a particular language?
instructions:
- text: Get nutrient value {DBID}.
slots:
DBID: path.DBID
- text: Show food value {DBID} in {lang}.
slots:
DBID: path.DBID
lang: query.lang
method: generated
generated: '2026-11-20'
- target: $.paths['/webresources/BLV-api/source/{DBID}'].get
update:
x-apievangelist-phrasing:
intent: Get the source value of a food component
effect: read
questions:
- Where does a food component's value come from?
- Can I read the source value of a food component?
instructions:
- text: Get the source value of food component {DBID}.
slots:
DBID: path.DBID
- text: Show the source of component {DBID}.
slots:
DBID: path.DBID
method: generated
generated: '2026-11-20'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/swiss-food-composition-database-data-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
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.
A second provider on the same verified email joins the account you already have.