(New content added below for Modular Options)
The SAM API is a GET API which has one operation. The operation will retrieve an entity’s public information. Its endpoint is
The standard rate limits for the SAM APIs are 1,000 calls per API key in a 24 hour-period, 5,000 calls per IP Address in a 24-hour period, and 5 calls per 5 seconds. If you need to have higher, customized rate limits please submit a request to our supporting Federal Service Desk at www.fsd.gov. Title it “SAM API Rate Limit Increase” and provide the email address you used to create the API Key, your Account ID, your IP Address, and a description of how you use the SAM APIs requiring a higher limit.
Currently, the below URL won’t work without you adding in an API key from api.data.gov. Replace
<YOUR_API_KEY> with your api.data.gov provided API key in the below URL to successfully execute the call.
Retrieving entity information
The endpoint for getting all data begins with
The endpoint takes a single URL parameter which is the DUNS and DUNS+4 information concatenated. If the entity does not have a DUNS+4, the user should include
For example, if an entity of interest has a DUNS number of
012345678 with no DUNS+4, the access to the endpoint would be at
/sam/v1/registrations/0123456780000. An entity with the same DUNS but with a DUNS+4 of
9999 would be accessed at
The data in the API is updated daily by approximately 2 AM Eastern time for the prior day’s data.
Finding DUNS numbers to use
In addition to the search API, another way to get DUNS numbers is to go to SAM, click on
Search Records and enter in a company into the Quick Search box. Each entity has a DUNS number that you’ll see in the result set. You’ll see a 9-digit number which represents the DUNS. You can then pad it out with four
0s as mentioned above.
These are just the first of many steps in modernizing SAM and IAE. In fall 2014, the SAM API consumers added an API to search the SAM database and retrieve registration information specific to their needs. This means, most of the functionality you see on SAM right now to search for entities is available as an API.
In fall 2015, the SAM API consumers enhanced the API to return only responded or all values. The returned API call will search the SAM database and retrieve registration information specific to their needs.
For example, the API link with an endpoint “?return_values=full” will return all fields, regardless if the field was answered https://api.data.gov/samdata/v4/registrations/0123456780000?return_values=full)
The API link with an endpoint “?return_values=responded” will return all fields, regardless if the field was answered https://api.data.gov/samdata/v4/registrations/0123456780000?return_values=responded
In spring 2016, the SAM API will be further enhanced to include specific module returns. Core Data, Assertions, Reps and Certs, and Points of Contacts are the four main modules a consumer can select to return either all values or responded