AVI·GOAPI Reference
Production
v1

Resource

Empty Legs

Returns the available empty-leg flights: listed, not expired, and not blocked. Results are sorted by departure date, earliest first.

GET/open/v1/empty-legsempty_leg:read

Query parameters

ParamTypeDescription
pageinteger1-based page number. Default 1. Values below 1 are clamped to 1; a page past the last page returns an empty records array.
sizeintegerItems per page. Default 20, maximum 100. Out-of-range values are clamped into the 1100 range.

Out-of-range integer values are clamped, not rejected. A non-integer page or size (e.g. page=abc) returns 400 INVALID_PARAMETER.

Response — data

FieldTypeDescription
recordsEmptyLeg[]Page of empty legs.
totalintegerTotal matching legs.
pageintegerCurrent page.
sizeintegerPage size.

The EmptyLeg object

FieldTypeDescription
idstringUnique empty-leg identifier.
startDatestringDeparture date, ISO 8601 yyyy-MM-dd, e.g. "2026-06-17". Local date at the departure location — the departure airport's timezone, or the departure city's timezone when the airport is unknown.
endDatestringArrival/expiry date, same format.
depCityNamestringDeparture city.
depAirportNamestring · nullDeparture airport name. May be null.
depAirportIcaostring · nullDeparture ICAO code, e.g. KTEB.
depCountryNamestringDeparture country name, e.g. United States. Always present.
depCountryCodestringDeparture country ISO 3166-1 alpha-2 code, e.g. US. Always present.
arrCityNamestringArrival city.
arrAirportNamestring · nullArrival airport name. May be null.
arrAirportIcaostring · nullArrival ICAO code.
arrCountryNamestringArrival country name. Always present.
arrCountryCodestringArrival country ISO 3166-1 alpha-2 code. Always present.
airlineNamestring · nullOperating carrier.
aircraftModelNamestring · nullModel, e.g. Challenger 850.
aircraftTypestring · nullCategory, e.g. Heavy Jet.
registrationstring · nullTail number.
aircraftImgstring · nullAircraft photo URL.
makeYearinteger · nullYear of manufacture.
renovateYearinteger · nullYear of last refurbishment.
pricenumber · nullEmpty-leg price, e.g. 12500.00. May be null.
currencystring · nullISO 4217 currency code, e.g. USD. May be null.
amenitiesAmenity[]On-board amenities.

The Amenity object

FieldTypeDescription
amenityTypestringRaw type code: wifi, smoking, pets, bed, toilet, medical.
amenityNamestringDisplay name, e.g. WIFI, Bed.
amenityDescstringHuman-readable detail, e.g. WIFI (Extra 3,333 USD/MB), 2 beds, 1 lavatory.
Request
curl https://openapi.avi-go.com/open/v1/empty-legs?page=1&size=20 \
  -H "X-API-Key: ag_live_8f2c9d1b…"
Response200 · OK
{
  "code": "OK",
  "message": "success",
  "data": {
    "records": [{
      "id": "el_3Nf8a2",
      "startDate": "2026-06-17",
      "endDate": "2026-06-17",
      "depCityName": "New York",
      "depAirportName": "Teterboro Airport",
      "depAirportIcao": "KTEB",
      "depCountryName": "United States",
      "depCountryCode": "US",
      "arrCityName": "West Palm Beach",
      "arrAirportName": "Palm Beach Intl",
      "arrAirportIcao": "KPBI",
      "arrCountryName": "United States",
      "arrCountryCode": "US",
      "airlineName": "Vista Jet",
      "aircraftModelName": "Challenger 850",
      "aircraftType": "Heavy Jet",
      "registration": "9H-ILI",
      "makeYear": 2008,
      "renovateYear": 2019,
      "price": 12500.00,
      "currency": "USD",
      "amenities": [
        { "amenityType": "wifi", "amenityName": "WIFI",
          "amenityDesc": "WIFI (Extra 3,333 USD/MB)" },
        { "amenityType": "bed", "amenityName": "Bed",
          "amenityDesc": "2 beds" },
        { "amenityType": "toilet", "amenityName": "Toilet",
          "amenityDesc": "1 lavatory" }
      ]
    }],
    "total": 176,
    "page": 1,
    "size": 20
  },
  "traceId": "05707ab9-22e9-49aa-ba12-f469c6622131"
}