Papua New Guinea Airports API
577 airports for Papua New Guinea, from OurAirports. Filter the collection with country=PG and you get the same JSON shape as every other country.
Request and response
Add country filtering to the collection endpoint and you get Papua New Guinea records back. The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.
curl 'https://api.apifor.dev/v1/airports' \
-G -d country=PG \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"ident": "00AA",
"icao": null,
"iata": null,
"gps_code": "00AA",
"local_code": "00AA",
"name": "Aero B Ranch Airport",
"type": "small_airport",
"lat": 38.704022,
"lng": -101.473911,
"elevation_ft": 3435,
"continent": "NA",
"country": "US",
"country_name": "United States",
"region": "US-KS",
"region_name": "Kansas",
"municipality": "Leoti",
"scheduled_service": 0,
"home_link": null,
"wikipedia_link": null
}
]
}Fields
Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.
| Field | Type | Example |
|---|---|---|
| ident | string | "00AA" |
| icao | nullable | null |
| iata | nullable | null |
| gps_code | string | "00AA" |
| local_code | string | "00AA" |
| name | string | "Aero B Ranch Airport" |
| type | string | "small_airport" |
| lat | number | 38.704022 |
| lng | number | -101.473911 |
| elevation_ft | integer | 3435 |
| continent | string | "NA" |
| country | string | "US" |
| country_name | string | "United States" |
| region | string | "US-KS" |
| region_name | string | "Kansas" |
| municipality | string | "Leoti" |
| scheduled_service | integer | 0 |
| home_link | nullable | null |
| wikipedia_link | nullable | null |
Filters and paging
Query parameters accepted by GET /v1/airports. Full detail, including the single-record route, is in the endpoint reference.
| Parameter | Type | Rules |
|---|---|---|
| page | integer | min 1 · default 1 |
| limit | integer | 1 to 200 · default 50 |
| country | string | ISO 3166-1 alpha-2 |
| q | string | 2 to 100 chars |
| type | string | None |
| iata | string | None |