Swiss Food Composition Database System API

The system API from Swiss Food Composition Database — 5 operation(s) for system.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /webresources/BLV-api/components List components used in the food database · Get all used components #
Ask an LLM
“Which components are used in the Swiss food composition database?”
“Can I get the components list in a specific language?”
Tell an agent
List all components used in the database.
Show the components list in language {lang}.
GET /webresources/BLV-api/sets List component sets · Get all used component sets #
Ask an LLM
“What component sets exist in the food database?”
“Can I fetch component sets in a given language?”
Tell an agent
List all component sets.
Show component sets in language {lang}.
GET /webresources/BLV-api/units List units used in the food database · Get all used units #
Ask an LLM
“Which units are used for food composition values?”
“Can I get the units list in another language?”
Tell an agent
List all units used in the database.
Show the units list in language {lang}.
GET /webresources/BLV-api/groups List component groups · Get all groups #
Ask an LLM
“What component groups are defined in the food database?”
“Can I get component groups in a specific language?”
Tell an agent
List all component groups.
Show component groups in language {lang}.
GET /webresources/BLV-api/versiondb Get the food database version · Get version of the database #
Ask an LLM
“Which version of the Swiss food composition database is deployed?”
“How do I check the database version?”
Tell an agent
Get the current database version.
Show which version of the food database is running.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/swiss-food-composition-database:swiss-food-composition-database-system-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

swiss-food-composition-database-system-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swiss Food Composition Database System API
tags:
- name: System
paths:
  /webresources/BLV-api/components:
    get:
      tags:
      - System
      summary: Get all used components
      description: Returns a list of components used in system
      operationId: getComponents
      parameters:
      - name: lang
        in: query
        description: Language in which components should be returned
        schema:
          type: string
          description: language
          default: en
          enum:
          - de
          - en
          - fr
          - it
      responses:
        '200':
          description: List of components
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ComponentWithSets'
  /webresources/BLV-api/sets:
    get:
      tags:
      - System
      summary: Get all used component sets
      description: Returns a list of component sets used in system
      operationId: getComponentSets
      parameters:
      - name: lang
        in: query
        description: Language in which component sets would be returned
        schema:
          type: string
          description: language
          default: en
          enum:
          - de
          - en
          - fr
          - it
      responses:
        '200':
          description: List of component sets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ComponentSet'
  /webresources/BLV-api/units:
    get:
      tags:
      - System
      summary: Get all used units
      description: Returns a list of unit used in system
      operationId: getUnits
      parameters:
      - name: lang
        in: query
        description: Language in which unit should be returned
        schema:
          type: string
          description: language
          default: en
          enum:
          - de
          - en
          - fr
          - it
      responses:
        '200':
          description: List of units
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Unit'
  /webresources/BLV-api/groups:
    get:
      tags:
      - System
      summary: Get all groups
      description: Returns a list of groups used in system
      operationId: getComponentGroups
      parameters:
      - name: lang
        in: query
        description: Language in which component groups should be returned
        schema:
          type: string
          description: language
          default: en
          enum:
          - de
          - en
          - fr
          - it
      responses:
        '200':
          description: List of groups
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ComponentGroup'
  /webresources/BLV-api/versiondb:
    get:
      tags:
      - System
      summary: Get version of the database
      description: Returns object indicating a version of the database
      operationId: getVersiondb
      responses:
        '200':
          description: List of units
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Versiondb'
components:
  schemas:
    Unit:
      required:
      - code
      type: object
      properties:
        name:
          type: string
        id:
          type: integer
          format: int32
        code:
          maxLength: 2147483647
          minLength: 1
          type: string
    ComponentWithSets:
      type: object
      properties:
        name:
          type: string
        id:
          type: integer
          format: int32
        code:
          type: string
        group:
          type: integer
          format: int32
        unit:
          type: integer
          format: int32
        sets:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/ComponentSet'
    ComponentSet:
      type: object
      properties:
        name:
          type: string
        id:
          type: integer
          format: int32
    ComponentGroup:
      type: object
      properties:
        name:
          type: string
        id:
          type: integer
          format: int32
        parentComponentGroup:
          type: integer
          format: int32
        componentgroupidcomponent:
          type: integer
          format: int32
        sort:
          type: integer
          format: int32
        getChildComponentGroup:
          type: array
          writeOnly: true
          items:
            $ref: '#/components/schemas/ComponentGroup'
    Versiondb:
      required:
      - idversion
      - versiontext
      type: object
      properties:
        idversion:
          type: integer
          format: int32
        versiontext:
          maxLength: 10
          minLength: 1
          type: string