Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: ProofPrice Farm-gate prices received by farmers (monthly)…
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: Farm-gate prices received by farmers (monthly)
description: 'Farm-gate prices: BR, CA, GB and JP. Sources: Quarterly Milk Survey: average price of raw milk paid to producers (IBGE, SIDRA table 1086, Pesquisa Trimestral do Leite), Farm product prices, crops and livestock (Statistics Canada table 32-10-0077-01), Commercial Fisheries, Canada, annual (Fisheries and Oceans Canada), United Kingdom milk prices and composition of milk (Defra monthly statistics), UK Sea Fisheries Statistics, monthly (Marine Management Organisation) and Rice negotiated trade prices and volumes (MAFF, 米の相対取引価格・数量).'
paths:
/api/v1/farm-gate-prices:
get:
operationId: farmGatePrices
tags:
- Farm-gate prices received by farmers (monthly)
summary: Farm-gate prices received by farmers (monthly) (BR, CA, GB and JP)
description: 'Use this when a user asks what farmers received, per month, for a crop or animal product (wheat, barley, oats, canola, soybeans, corn, potatoes, cattle, hogs, lambs, chickens, turkeys, milk, eggs) in a region of Brazil, Canada, the United Kingdom or Japan, or how that price compares with the month before or a year earlier. Returns the newest monthly price the statistics office publishes for the product and region, in the unit the office uses (per tonne, per hundredweight, per dozen, per kilolitre), the month it applies to, the change on the previous month and a year earlier, the last 12 months, the same product in other regions, and the official source and licence. This is a published monthly average price received by farmers (price_type official_statistic), not a range built from sales, so the range fields are null and there is no sample size. How fresh: Brazil: quarterly; the newest quarter on 7 Nov 2026 was Q2 2026 (published about four months after the quarter ends); Canada: monthly, not live: Statistics Canada publishes each month''s averages about six weeks after the month ends (August 2026 was released on 9 October 2026), and every answer states its reference month; Canada: annual, not live: DFO publishes the year just ended about ten months later (the file read on 4 November 2026 runs to 2024), and every answer states its year; the United Kingdom: monthly, not live: Defra publishes each month''s figure about four weeks after the month ends (September 2026 was published on 29 October 2026), and every answer states its reference month; the United Kingdom: monthly, not live: the MMO publishes each month''s figures about the 30th of the following month (September 2026 was published on 30 October 2026); the latest month is provisional and every answer states its month; Japan: monthly, not live: MAFF publishes each month''s preliminary (速報) figures in the following weeks; every answer states its month. Early in a crop year (September, October) only part of the varieties have a price yet.. Always read the month in the answer. Do not use for supermarket or shop prices, for wholesale market quotes, for the price of a particular farm, field or animal, for farmland, for fuel or energy, for futures prices, or for EU member states.'
parameters:
- name: country
in: query
required: true
description: 'BR = Brazil (IBGE Quarterly Milk Survey: average price dairies paid milk producers per litre, Brazil and the 27 states, quarterly official statistic, not a live price); CA = Canada (Statistics Canada: monthly average prices received by farmers, by province, official statistic, not a live price); CA = Canada (Fisheries and Oceans Canada: annual average landed value of sea fish and shellfish, official statistic, not a live price); GB = United Kingdom (Defra: monthly average price farmers received for milk, official statistic, not a shop price); GB = United Kingdom (MMO: monthly landed price paid to fishers for sea fish and shellfish, official statistic, not a shop price); JP = Japan (MAFF: monthly negotiated trade prices of rice between collecting organisations and wholesalers, by prefecture and variety, official statistic, not a live price)'
schema:
type: string
enum:
- BR
- CA
- GB
- JP
- name: product
in: query
required: true
description: 'The crop or animal product, e.g. ''wheat'', ''barley'', ''oats'', ''canola'', ''soybeans'', ''corn'', ''potatoes'', ''cattle'', ''hogs'', ''lambs'', ''chickens'', ''milk'', ''eggs''. The full list is in the tool notes. Brazil: only raw milk (''milk'' or ''leite''). IBGE''s price is reais per litre paid by dairies to producers, per quarter. Canada: a crop or animal product in everyday words, e.g. wheat, milling wheat, feed wheat, durum, oats, barley, feed barley, malt barley, soybeans, corn, flaxseed, canola, rye, lentils, dry peas, canary seed, potatoes, seed potatoes, table potatoes, processing potatoes, cattle, cows, steers, heifers, calves, lambs, feeder cattle, feeder steers, feeder heifers, feeder calves. Prices are in Canadian dollars in Statistics Canada''s own unit for each series (per metric tonne for grains and oilseeds, per hundredweight for cattle, hogs and potatoes, per kilolitre for milk, per dozen for eggs); the answer names the unit. Canada, sea fish and shellfish (annual landed value per kg paid to fishers, from Fisheries and Oceans Canada): lobster, snow crab, other crabs, shrimp, scallop, clams, sea urchin, sea cucumber, other shellfish, salmon, herring, mackerel, capelin, alewife, eel, elvers, tuna, swordfish, shark, silversides, other pelagics, cod, haddock, halibut. Crops and livestock (wheat, milk, hogs ...) are answered by Statistics Canada. United Kingdom: only ''milk'' (the monthly price UK dairy farmers received, in pence per litre; the answer gives pounds per litre and the pence figure). United Kingdom, sea fish and shellfish (monthly landed price per kg paid to fishers, from the Marine Management Organisation): cod, haddock, plaice, sole, lemon sole, hake, whiting, saithe, pollack, ling, monkfish, megrim, turbot, brill, halibut, bass, bream, mullet, gurnard, dogfish, skate, witch, sand eels, other demersal, or the groups demersal, pelagic, shellfish and all fish. Milk is answered by Defra. Japan: ''rice'' for the all-brand average, or a variety such as ''koshihikari'', ''akitakomachi'', ''hitomebore'', ''hinohikari'', ''nanatsuboshi'', ''yumepirika'', ''tsuyahime'', ''sasanishiki'', ''haenuki'' (or its Japanese name, e.g. コシヒカリ). Only rice is covered. Prices are yen per 60 kg of brown rice, tax included.'
schema:
type: string
- name: region
in: query
required: false
description: 'Region inside the country, as the statistics office publishes it (for example a province or state). Some countries publish no national figure, so the answer then asks for a region. Brazil: optional; leave out for the national figure, or give a state by name or two-letter code (for example São Paulo or SP, Minas Gerais, Paraná, Rio Grande do Sul, Goiás). States: Rondônia, Acre, Amazonas, Roraima, Pará, Amapá, Tocantins, Maranhão, Piauí, Ceará, Rio Grande do Norte, Paraíba, Pernambuco, Alagoas, Sergipe, Bahia, Minas Gerais, Espírito Santo, Rio de Janeiro, São Paulo, Paraná, Santa Catarina, Rio Grande do Sul, Mato Grosso do Sul, Mato Grosso, Goiás, Distrito Federal. IBGE withholds a state''s figure in a quarter when too few dairies report it. Canada: a province is required (Ontario, Quebec, Saskatchewan, Alberta, Manitoba, British Columbia, Nova Scotia, New Brunswick, Prince Edward Island, Newfoundland and Labrador). Statistics Canada publishes no Canada total in this table. A city such as Saskatoon is answered with its province. Not every product is published for every province. Canada sea fish: optional. Leave out for Canada as a whole, or give Atlantic, British Columbia, Nova Scotia, New Brunswick, Prince Edward Island, Newfoundland and Labrador or Quebec. (Crops and livestock need a province.) United Kingdom: not needed. Defra publishes one figure for the whole UK, so a nation such as ''Scotland'' is answered with the UK average and a note. United Kingdom sea fish: not needed. The MMO publishes one figure for all UK vessels and ports, so a region is answered with the UK figure and a note. Japan: optional prefecture (Niigata, Akita, Hokkaido, Kumamoto ... or 新潟). Without it the answer is the national figure. Prefectures with no price yet for the month are not shown.'
schema:
type: string
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).'