Open Food Facts · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Open Food Facts open-prices REST Locations API

9 actions 9 updates phrasing extends openapi/open-food-facts-locations-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Open Food Facts's API. It is a proposal applied on top of the contract, not a document Open Food Facts publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 9

$.info
$.paths['/api/v1/locations'].get
$.paths['/api/v1/locations'].post
$.paths['/api/v1/locations/{id}'].get
$.paths['/api/v1/locations/compare'].get
$.paths['/api/v1/locations/nearby'].get
$.paths['/api/v1/locations/osm/{osm_type}/{osm_id}'].get
$.paths['/api/v1/locations/osm/countries'].get
$.paths['/api/v1/locations/osm/countries/{country_code}/cities'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Open Food Facts open-prices REST Locations API
  version: 1.0.0
extends: openapi/open-food-facts-locations-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-18'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 8
- target: $.paths['/api/v1/locations'].get
  update:
    x-apievangelist-phrasing:
      intent: List price locations
      effect: read
      questions:
      - Which places sell a product at the lowest price?
      - Can I list locations by country or city name?
      instructions:
      - text: List price locations in {country}.
        slots:
          country: query.osm_address_country__like
      - text: Show locations named {name} in {city}.
        slots:
          name: query.osm_name__like
          city: query.osm_address_city__like
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a price location
      effect: write
      questions:
      - How do I add a store location where I sell products?
      - Can I link an OSM location by its ID when adding a price location?
      instructions:
      - text: Add a {type} location with OSM ID {osm_id}.
        slots:
          type: requestBody.type
          osm_id: requestBody.osm_id
      - text: Create a {type} location for website {website_url}.
        slots:
          type: requestBody.type
          website_url: requestBody.website_url
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a price location
      effect: read
      questions:
      - What details are stored for one price location?
      - Can I look up a location by its ID?
      instructions:
      - text: Get price location {id}.
        slots:
          id: path.id
      - text: Show the details of location {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations/compare'].get
  update:
    x-apievangelist-phrasing:
      intent: Compare prices at two locations
      effect: read
      questions:
      - Which of two stores sells a product cheapest?
      - Can I compare the latest prices at two locations?
      instructions:
      - text: Compare locations {location_id_a} and {location_id_b}.
        slots:
          location_id_a: query.location_id_a
          location_id_b: query.location_id_b
      - text: Compare {location_id_a} and {location_id_b} for prices after {date__gte}.
        slots:
          location_id_a: query.location_id_a
          location_id_b: query.location_id_b
          date__gte: query.date__gte
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations/nearby'].get
  update:
    x-apievangelist-phrasing:
      intent: Find price locations nearby
      effect: read
      questions:
      - Which stores sell a product near my location?
      - Can I find price locations within a radius of a point?
      instructions:
      - text: Find price locations within {radius_km} km of {lat}, {lon}.
        slots:
          radius_km: query.radius_km
          lat: query.lat
          lon: query.lon
      - text: List nearby stores around {lat}, {lon} within {radius_km} km.
        slots:
          lat: query.lat
          lon: query.lon
          radius_km: query.radius_km
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations/osm/{osm_type}/{osm_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an OSM location
      effect: read
      questions:
      - What OSM location corresponds to a given ID and type?
      - Can I fetch an OpenStreetMap location by its ID?
      instructions:
      - text: Get OSM location {osm_type} {osm_id}.
        slots:
          osm_type: path.osm_type
          osm_id: path.osm_id
      - text: Show OpenStreetMap location {osm_type} with ID {osm_id}.
        slots:
          osm_type: path.osm_type
          osm_id: path.osm_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations/osm/countries'].get
  update:
    x-apievangelist-phrasing:
      intent: List OSM countries with price locations
      effect: read
      questions:
      - Which countries have price locations in OpenStreetMap?
      - Can I get the list of OSM countries with price data?
      instructions:
      - text: List OSM countries with price locations.
      - text: Show the countries where price locations are mapped in OSM.
      method: generated
      generated: '2026-11-18'
- target: $.paths['/api/v1/locations/osm/countries/{country_code}/cities'].get
  update:
    x-apievangelist-phrasing:
      intent: List OSM cities in a country
      effect: read
      questions:
      - Which cities in a country have price locations mapped in OSM?
      - Can I list OSM cities for a country code?
      instructions:
      - text: List OSM cities in country {country_code}.
        slots:
          country_code: path.country_code
      - text: Show the mapped cities in {country_code} for price locations.
        slots:
          country_code: path.country_code
      method: generated
      generated: '2026-11-18'

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.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/open-food-facts-locations-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.