Swiss Food Composition Database System API

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

Operations 5

GET /webresources/BLV-api/components Get all used components #
GET /webresources/BLV-api/sets Get all used component sets #
GET /webresources/BLV-api/units Get all used units #
GET /webresources/BLV-api/groups Get all groups #
GET /webresources/BLV-api/versiondb Get version of the database #

Documentation

Specifications

Other Resources

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-system-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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
    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'
    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'
    Versiondb:
      required:
      - idversion
      - versiontext
      type: object
      properties:
        idversion:
          type: integer
          format: int32
        versiontext:
          maxLength: 10
          minLength: 1
          type: string