API
Getting started with the powerful HigherGov API
Last updated
Getting started with the powerful HigherGov API
Last updated
All HigherGov subscriptions include access to the API and 10,000 records per month through the API. If you require more data, please contact us with your use case for pricing.
A list of available endpoints and fields is available in the OAS documentation. The OAS Documentation can also generate sample API calls by pressing the Try It Out button under each endpoint, selecting the desired Parameters, and pressing Execute.
We also offer APIs customized to your needs. Please contact us if you are interested in learning more.
API keys can be managed when signed in by selecting the gear icon in the upper right and selecting API or by clicking here. Only an account administrator will have access to create keys. To create an API key, select the Generate Key button. Note that the full key will only be available on this screen once so make sure to copy and securely save the key.
For the Opportunity, Federal Contract, and Federal Grant endpoints, HigherGov provides a search_id parameter that allows a HigherGov search to be easily converted into an API call. The search_id parameter does not accept all search fields, please see the endpoint documentation for a list of supported fields.
If you have the below search in Federal Contract Opportunities:
You can take the searchID listed in the URL:
https://www.highergov.com/contract-opportunity/?searchID=2F6PPA1a7NAQ4C1OUh7XB
and use that in your API call as the search_id parameter:
https://www.highergov.com/api-external/opportunity/?api_key=your-api-key-here&search_id=2F6PPA1a7NAQ4C1OUh7XB&captured_date=2024-05-01&page_size=10&source_type=sam
For best results with the search_id filter in the Opportunity endpoint, we recommend also using the source_type and captured_date filters to limit your call to the most relevant data source(s) and most recent dates.
To download opportunity files, first make a call to the Opportunity endpoint. In the results, there will be a field called document_path that will provide a path to call to the Document endpoint. Making this call to the Document endpoint will return information on all of the documents related to the opportunity including a set of download_url paths that can be used to download files.
Please note that the provided download_url will expire after 60 minutes, and if files are not downloaded within that timeframe, a new call will need to be made to the Document endpoint.
Data is generally updated shortly after the underlying data source. Some examples are shown below.
Opportunity
20 Minutes
Federal Contract
Daily
Federal Grant
Daily
Awardee
Daily
Below are a few code snippets to get started accessing the API.