Get Geo-Targeting

Why Get Geo-Targeting?

When you want to retrieve properties and details for a flight's geo-targeting settings, the Kevel API enables you to return this information using the Get Geo-Targeting API endpoint. When you make this API request to the endpoint with the FlightID and LocationID, a JSON object will be returned to you with all properties and settings for the flight you specified.

API Syntax

When using the Get Geo-Targeting API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

GET https://api.kevel.co/v1/flight/{FlightID}/geotargeting/{LocationID}

Where:

FlightID

int32
required
ID of the Flight

LocationID

int32
required
ID from the Geo-Targeting Endpoint

Response Structure

{
  "LocationId": 76543,
  "FlightId": 12345,
  "CountryCode": "US",
  "Region": "NC",
  "MetroCode": 560,
  "IsExclude": false
}

Response Codes