OpenGov Datasets API
**Datasets** are collections of data that can be retrieved using the API. Datasets can be retrieved by using `GET` requests. The base url for datasets is `https://api.procurement.opengov.com/gateway/datasets/v1/` Note: All dates and times returned by this API are in the time zone selected by the agency. ## Datasets Legacy Authentication Methods In addition to the OpenGov standard Authorization header, for historic purposes we support two additional ways for the Datasets APIs. ### 1. HTTP Basic Auth Use your OpenGov account email as the username and your API key as the password. ```bash curl -u "alice@example.com:YOUR_API_KEY" \ https://api.procurement.opengov.com/gateway/datasets/v1/solicitations ``` ### 2. X-api-key header You may also authenticate using the `x-api-key` request header: ```bash curl -H "x-api-key: YOUR_API_KEY" \ https://api.procurement.opengov.com/gateway/datasets/v1/solicitations ``` > **Security note:** Some third-party systems may log or store custom headers in plaintext. To obtain an API key, please follow the steps outlined in this guide [OpenGov Procurement API Reference](https://opengov.my.site.com/support/s/article/87a452ae-254c-4b62-8336-d475c2e30723) or contact OpenGov support. The API will return a 401 error if the key is invalid.