Government
GOV.UK logo

GOV.UK API

gov.uk

UK government open statistics, including DEFRA wholesale fruit and vegetable prices

Actions
1
Category
Government
Login
Not required
Output
JSON

Call the GOV.UK API

Submit a task, then poll the job until it settles. This example runs act_gov_uk_wholesale_produce_prices.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_gov_uk_wholesale_produce_prices",
    "params": {
      "product": "tomatoes",
      "date_from": ""
    }
  }'

1 action on gov.uk

Read

  • Wholesale Produce Prices

    act_gov_uk_wholesale_produce_pricesread1 credit / call

    DEFRA weekly-average wholesale fruit, vegetable and flower prices from the GOV.UK statistical data set. Optional product name and date range; default is the latest published week. Returns status, rows (product, variety, category, origin, week date, average price, unit), last-updated date and source file URL.

    product
    string
    date_from
    string
    date_to
    string

GOV.UK API questions

Is there an API for GOV.UK?
GOV.UK does not offer a public data API for this, but Anakin Wire provides 1 maintained endpoint for gov.uk. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape GOV.UK data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when gov.uk changes its markup, Anakin updates the action.
Do I need a GOV.UK account?
No. Every GOV.UK action listed here runs anonymously — no account and no credentials required.
What does the GOV.UK API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Government APIs

All Government sites