ProofPrice Border prices: customs unit values per kilogram API

Border prices: FR, DE, ES, IT, NL, BE, IE, PL, PT, DK, SE and GB. Sources: Eurostat Comext: EU trade in goods (customs value per kilogram) and UK Overseas Trade Statistics (customs value per kilogram).

GitHub OpenAPI

Operations 1

GET /api/v1/border-prices Border prices: customs unit values per kilogram (FR, DE, ES, IT, NL, BE, IE… #

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/proofprice-com:proofprice-com-border-prices-customs-unit-values-per-kilogram-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

proofprice-com-border-prices-customs-unit-values-per-kilogram-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'ProofPrice Border prices: customs unit values per kilogram…'
  termsOfService: https://proofprice.com/terms
  contact:
    name: ProofPrice
    email: hello@proofprice.com
    url: https://proofprice.com
  license:
    name: ProofPrice terms of use
    url: https://proofprice.com/terms
  x-logo:
    url: https://proofprice.com/icon-512.png
  version: 0.4.0
  description: 'What did people actually pay for X, here, recently? Returns a price range from official open data: median, 10th–90th percentile, sample size, period, confidence, source and licence. Aggregates only; never individual records. The data keeps each source''s own licence: every answer names its source, that source''s licence and the attribution line to show, so reuse follows the publisher''s licence. The ProofPrice terms of use govern use of the API itself. Free, read-only, no API key. A few premium calls (price check, daily history) cost a few cents each after a free daily allowance, paid per call with x402; see https://proofprice.com/pricing and https://proofprice.com/pricing.json.'
servers:
- url: https://proofprice.com
tags:
- name: 'Border prices: customs unit values per kilogram'
  description: 'Border prices: FR, DE, ES, IT, NL, BE, IE, PL, PT, DK, SE and GB. Sources: Eurostat Comext: EU trade in goods (customs value per kilogram) and UK Overseas Trade Statistics (customs value per kilogram).'
paths:
  /api/v1/border-prices:
    get:
      operationId: borderPrices
      tags:
      - 'Border prices: customs unit values per kilogram'
      summary: 'Border prices: customs unit values per kilogram (FR, DE, ES, IT, NL, BE, IE…'
      description: 'Use this when a user asks what traded goods are worth at the border, per kilogram, as declared to customs: for example what a country pays per kg to import wheat, diesel, cheese or timber, or earns per kg exporting whisky or steel, in the EU member states listed (country FR, DE, ES, IT, NL, BE, IE, PL, PT, DK, SE) or the United Kingdom (country GB), optionally from or to one partner country. Returns the customs value divided by the net weight (a value-weighted average per kg in the reporting country''s currency), a range between the 10th and 90th percentile of the individual customs lines weighted by weight, the months it covers, the biggest partner countries and the official source and licence. This is a customs unit value (price_type official_statistic) built from declared trade values and weights, not a shelf price, not a wholesale quote and not a receipt, so there is no sample size. How fresh: the EU member states listed: monthly: Eurostat publishes each month''s trade statistics about 2.5 months after the month ends; our figures are read live and each answer states its months; the United Kingdom: monthly: HMRC publishes each month''s trade statistics about six weeks after the month ends; our figures are read live and each answer states its months. Do not use for what a shopper pays in a shop, for a single contract or shipment, for futures or spot quotes, for services, or for countries that are not listed.'
      parameters:
      - name: country
        in: query
        required: true
        description: 'FR, DE, ES, IT, NL, BE, IE, PL, PT, DK, SE = EU member states (Eurostat Comext: customs value per kilogram of goods imported or exported, by customs commodity code and partner country, monthly); GB = United Kingdom (HMRC Overseas Trade Statistics: customs value per kilogram of goods imported or exported, by customs commodity code and partner country, monthly)'
        schema:
          type: string
          enum:
          - FR
          - DE
          - ES
          - IT
          - NL
          - BE
          - IE
          - PL
          - PT
          - DK
          - SE
          - GB
      - name: product
        in: query
        required: true
        description: 'The goods: an everyday word such as ''wheat'', ''diesel'', ''cheese'', ''timber'', ''steel'', ''whisky'', or a customs commodity code (HS/CN) of 4 to 8 digits such as ''1001'' or ''271019''. EU: an everyday word (diesel, petrol, crude oil, natural gas, wheat, barley, maize, rice, sugar, coffee, tea, cocoa and more) or a customs commodity code of 4, 6 or 8 digits (HS/CN, e.g. 1001 wheat, 271019 diesel, 0406 cheese). A code groups different products, so the average depends on the mix. GB: an everyday word (diesel, petrol, crude oil, wheat, barley, maize, rice, sugar, coffee, tea, cocoa, apples and more) or a customs commodity code of 4 to 8 digits (HS/CN, e.g. 1001 wheat, 2710 19 diesel, 0406 cheese). A code groups different products, so the average depends on the mix.'
        schema:
          type: string
      - name: direction
        in: query
        required: false
        description: 'Goods coming in (imports, default) or going out (exports). EU: imports (default) or exports of the country asked about, trade with all other countries. GB: imports (default) or exports, as the UK reports them (EU and non-EU trade combined).'
        schema:
          type: string
          enum:
          - imports
          - exports
      - name: partner
        in: query
        required: false
        description: 'Optional partner country (ISO code such as ''DE'' or ''US'', or its name): where the goods came from (imports) or went to (exports). Leave out for all partners. EU: optional partner country, as a 2-letter ISO code (DE, US, CN, BR ...) or common name. GB: optional partner country, as an ISO code (DE, US, CN, FR, NL, IE ...) or HMRC''s country name.'
        schema:
          type: string
      - name: period
        in: query
        required: false
        description: 'Optional last month to include, as YYYY-MM. Default: the newest month the customs authority has published. EU: the last month to include (YYYY-MM). Eurostat publishes about 2.5 months after the month ends; default is the newest published month. GB: the last month to include (YYYY-MM). HMRC publishes about six weeks after the month ends; default is the newest published month.'
        schema:
          type: string
      - name: months
        in: query
        required: false
        description: 'How many months to include, ending with the period. Default 1. More months smooth out lumpy shipments. EU: months to include, 1 to 12 (default 1). GB: months to include, 1 to 12 (default 1).'
        schema:
          type: integer
          minimum: 1
          maximum: 12
      responses:
        '200':
          description: 'A price answer: median, 10th–90th percentile range, sample size, period, confidence, source and licence. For an official statistic: the published average or median (value, measure), its reference period, confidence, source and licence; the range fields and sample_size may be null. If the official source does not respond and ProofPrice holds a recent daily copy of it, you get that copy instead of an error: status is ok, period and as_of carry the snapshot date, the notice says so and extra.stale is true.'
          headers:
            X-ProofPrice-Stale:
              description: 'Present only when the official source did not respond and the answer is ProofPrice''s own recent daily copy: snapshot=<date>. The body says so too (extra.stale is true).'
              schema:
                type: string
            X-ProofPrice-Proof:
              description: 'Signed Price Proof (only on status ok answers and real verdicts, when proofs are on): a compact JWS (EdDSA / Ed25519, typ proofprice-proof+jws) of what the official records showed. Check it free at /api/v1/proofs/verify or offline with the keys at /.well-known/proofprice-keys.json. See https://proofprice.com/proofs.'
              schema:
                type: string
            Link:
              description: 'With a proof: <https://proofprice.com/p/<jws>>; rel="proof", a page a person can open to see the proof checked.'
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceAnswer'
        '400':
          description: Missing or invalid parameter, or a country that is not covered yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The official source could not be reached and ProofPrice holds no recent copy of it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PriceAnswer:
      type: object
      properties:
        query:
          type: object
          propertyNames:
            type: string
          additionalProperties: true
          description: The request as understood, echoed back.
        status:
          type: string
          enum:
          - ok
          - insufficient_data
          - no_matches
          description: ok = a figure is returned; insufficient_data = fewer than 5 matching records; no_matches = nothing matched.
        price:
          anyOf:
          - type: object
            properties:
              currency:
                type: string
                description: ISO 4217 currency code, e.g. EUR.
              unit:
                type: string
                description: What the price is per, e.g. 'per litre', 'per home', 'per kWh'.
              value:
                type: number
                description: The headline figure. For ranges built from records it equals median.
              measure:
                description: 'What value is: median for ranges built from records; average or median for official statistics.'
                type: string
                enum:
                - median
                - average
              median:
                type:
                - number
                - 'null'
              typical_low:
                description: 10th percentile; null for official statistics that give no range.
                type:
                - number
                - 'null'
              typical_high:
                description: 90th percentile; null for official statistics that give no range.
                type:
                - number
                - 'null'
              min:
                type:
                - number
                - 'null'
              max:
                type:
                - number
                - 'null'
            required:
            - currency
            - unit
            - value
            additionalProperties: true
            description: The price. Null when there is not enough data to publish a figure (fewer than 5 records) or nothing matched.
          - type: 'null'
        sample_size:
          description: Number of records behind the figure; null when the publisher does not say.
          type:
          - number
          - 'null'
        period:
          description: The period the records cover (ISO dates), or the date of the snapshot when the answer comes from our copy.
          type: object
          properties:
            from:
              type:
              - string
              - 'null'
            to:
              type:
              - string
              - 'null'
          required:
          - from
          - to
          additionalProperties: true
        confidence:
          description: high = 50+ records, medium = 15–49, low = 5–14.
          type: string
          enum:
          - high
          - medium
          - low
          - insufficient
        price_type:
          description: transaction, posted_pump_price, posted_price, contract_price, reimbursement_price or official_statistic.
          type: string
        statistic:
          description: 'Official statistics only: what kind of figure it is and the period the publisher states it for.'
          type: object
          properties:
            measure:
              type: string
              enum:
              - median
              - average
            reference_period:
              type: string
            note:
              type: string
          required:
          - measure
          - reference_period
          additionalProperties: true
        as_of:
          description: When the answer was produced (ISO 8601); the snapshot date when the official source was down and the answer comes from our copy.
          type: string
        source:
          type: object
          properties:
            id:
              type: string
              description: Source id, e.g. es-fuel.
            name:
              type: string
            publisher:
              type: string
              description: Who publishes the data.
            licence:
              type: string
            licence_url:
              type: string
            attribution:
              type: string
              description: The attribution line to show with the figure.
            url:
              type: string
              description: The publisher's page for this data.
          required:
          - id
          - name
          - publisher
          - licence
          - licence_url
          - attribution
          - url
          additionalProperties: true
          description: Where the figure comes from, under which licence, and the attribution line to show.
        method:
          type: string
        method_url:
          type: string
        summary:
          type: string
          description: One plain sentence an AI can quote.
        notice:
          type: string
          description: Information, not a valuation or offer. Also says when the answer is our copy because the official source did not respond.
        extra:
          description: Source-specific details (for example cheapest stations). extra.stale is true when the answer comes from our copy of the source.
          type: object
          propertyNames:
            type: string
          additionalProperties: true
        answer_id:
          description: 'Audit trail: a stable id (hash of source id, normalised query, data period and method_version). The same question on the same data gives the same id; keep it with the reasoning that used the figure.'
          type: string
        method_version:
          description: 'Audit trail: version of the way this source turns raw data into an answer (per source, default ''1'').'
          type: string
        retrieved_at:
          description: 'Audit trail: when ProofPrice produced this answer (ISO 8601). For an answer from our own copy this is now, while as_of is the snapshot date.'
          type: string
        evidence:
          description: 'Audit trail: what kind of evidence the figure is.'
          type: object
          properties:
            type:
              type: string
              description: Same as price_type.
            label:
              type: string
              description: Short name of the kind of evidence, e.g. 'Recorded sale prices', 'Official published average', 'Official published index', 'Posted shelf or pump price', 'Posted or listed price', 'Contract award value', 'Regulated reimbursement price'.
            meaning:
              type: string
              description: One sentence on what this kind of evidence does and does not establish.
          required:
          - type
          - label
          - meaning
          additionalProperties: true
        reliability:
          description: How far to trust the figure as a distribution of real prices. official_with_count = a published official figure with a record count; official_median_no_count = a published average or median with no record count (confidence 'high' there means the publisher is official, not that a count was checked); record_level = 15+ records we hold; thin = 5–14 records; stale = our copy because the official source did not respond; insufficient_data = no figure published.
          type: string
          enum:
          - official_with_count
          - official_median_no_count
          - record_level
          - thin
          - stale
          - insufficient_data
        data_as_of:
          description: ISO date (YYYY-MM-DD) of the newest data point behind the figure; null when unknown.
          type:
          - string
          - 'null'
        data_age_days:
          description: Whole days between data_as_of and retrieved_at; null when data_as_of is null.
          type:
          - number
          - 'null'
        suggestions:
          description: 'Short plain things to try next: widen the period or area, ask for an itemised quote. May be empty.'
          type: array
          items:
            type: string
      required:
      - query
      - status
      - source
      - summary
      - notice
      additionalProperties: true
      description: 'A price answer: a range or an official statistic with sample size, period, confidence, source and licence.'
    Error:
      type: object
      properties:
        error:
          type: string
          description: What went wrong, in plain words.
        detail: {}
      required:
      - error
      additionalProperties: true
      description: 'An error: a missing or invalid parameter (400) or an official source that could not be reached (502).'