SAM.gov · Example Payload

Sam Gov Get Cities Example

Federal GovernmentProcurementContractsEntity ManagementLocation ServicesGSA

Sam Gov Get Cities Example is an example object payload from SAM.gov, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "https://api.sam.gov/locationservices/v1/cities",
    "parameters": {
      "api_key": "{SAM_GOV_API_KEY}",
      "cc": "US",
      "q": "San Francisco",
      "active": "Y"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "totalRecords": 1,
      "cityList": [
        {
          "cityCode": "SFO",
          "cityName": "San Francisco",
          "stateCode": "CA",
          "stateName": "California",
          "countyCode": "075",
          "countyName": "San Francisco County",
          "countryCode": "US",
          "countryName": "United States",
          "activeInd": "Y"
        }
      ]
    }
  }
}