GovSpend.Org.UK API

API Parameters

format - one of:
- html
- csv
- xml
default is html

framework - one of
- G-Cloud
- DOS
- DigiServ
- all
default is G-Cloud

date_from
- format YYYY-MM-DD

date_to
- format YYYY-MM-DD

lot
- free text

sector
- free text

spend_from
- number

spend_to
- number

customer
- free text

supplier
- free text

product
- free text

Notes

Text searches - use contains operator

Value and date searches - use >= and <= operators

Using the API?

The API is simple to call using a URL with parameters. For example:

All purchases by Cabinet Office since 1st Jan 2013

Please note that when you click the link, the results may look unformatted. That is because the API is returning the data. It is up to the calling program to format it.

The following link will take you to an example program (written in PHP) that calls the API.

Thank you

Thank you for having a look at the GovSpend.Org.UK API. We welcome your suggestions on how we may improve the service. Choose About Us from the page menu above to get in touch.

© 2017, 2018 GovSpend.Org.UK