API
Read the same figures this site shows, as JSON. Free, no signup, read-only.
UKSpend's data sits in a public read-only PostgREST API. Send the public anon key (it is in this site's page source and safe to share) as the apikey header. Requests are limited to 1,000 rows; page with a Range header. Please keep to a few requests a second.
Council totals
One row per council: total spend, payments, suppliers, first and latest payment.
curl 'https://vhfiumpgheyufpyxlsyw.supabase.co/rest/v1/mv_council_totals?select=*' \
-H 'apikey: <public anon key>'Suppliers at a council
Suppliers paid by one council, largest first. Names are as the council spelled them.
curl 'https://vhfiumpgheyufpyxlsyw.supabase.co/rest/v1/mv_council_vendor?council=eq.camden&order=total_spend.desc&limit=50' \
-H 'apikey: <public anon key>'Spend by year
Totals per financial year for one council.
curl 'https://vhfiumpgheyufpyxlsyw.supabase.co/rest/v1/mv_council_fy?council=eq.barnet&order=fy' \
-H 'apikey: <public anon key>'Payments
Individual payments, newest first. Always filter by council first.
curl 'https://vhfiumpgheyufpyxlsyw.supabase.co/rest/v1/transactions?council=eq.hackney&order=date.desc&limit=100' \
-H 'apikey: <public anon key>'