get_city_pair_locations
City Pair airport and city codes
List or search the three-letter codes used by GSA City Pair awards for the fiscal year of date (today by default), with GSA's own city, state and country labels. Awards use IATA airport codes (DCA, IAD, BWI) for most domestic pairs and metropolitan city codes (WAS, NYC, LON) for others; only GSA decides which, so resolve the code here before calling the fare lookup. Several codes can share one city label. Without q, every code of the fiscal year is returned, ordered by code. With q (3+ characters), a code matches exactly and city/country names match by substring, case-insensitively. Plan/date rules are those of the fare lookup: Sandbox and Google add-on today only; Pro the current US fiscal year; Business (including Enterprise accounts) any loaded fiscal year.
Example:
curl --get 'https://api.allowancesapi.com/v1/gsa/city-pairs/locations' -H 'X-API-Key: YOUR_KEY' --data-urlencode 'q=washington'Labels mirror the latest imported awards table and change with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Match a code exactly or a city/country name by substring; case-insensitive. Omit to list every code of the fiscal year. | |
| date | No | Specific date in YYYY-MM-DD format |