---
updatedAt: 2026-10-09T14:15:13.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Get Flight

This returns the parameters for a specific flight

## Why Get Flight?

The `Get Flight` API call enables you to return information about a specific flight, which can be helpful if you want to review the flight before making any changes. Because a flight can impact the overall performance of a campaign, occasionally reviewing the specifics of a particular flight for a campaign may allow you to glean insights into what changes, if any, you may want to make to an existing flight for a campaign.

## API Syntax

When using the *Create Flight* API, 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}`

Where:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `flight` - the API endpoint being called.
* `FlightID` - the ID associated with the flight you want to return.

> 📘 Note
>
> The table below contains additional properties that may be returned in the response.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `CreativeMaps`
        (array of objects) - response only
      </td>

      <td>
        Displays creative flight maps (Ads) for the Flight.
      </td>
    </tr>

    <tr>
      <td>
        `GeoTargeting`\
        (array of objects) - response only
      </td>

      <td>
        Displays geo-targeting settings for the Flight.
      </td>
    </tr>

    <tr>
      <td>
        `SiteZoneTargeting`\
        (array of objects) - response only
      </td>

      <td>
        Displays Site/Zone targeting settings for the Flight.
      </td>
    </tr>

    <tr>
      <td>
        `GeoDistanceTargeting`\
        (array of objects) - response only
      </td>

      <td>
        Displays Distance Targeting (formerly GeoDistance Targeting) settings for the Flight.
      </td>
    </tr>

    <tr>
      <td>
        `CategoryTargeting`\
        (array of objects)
      </td>

      <td>
        The Flight’s category rules, or `null` if it has none. Each rule has an `Id` and an `IsExclude` flag.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/flight/{FlightID}": {
      "get": {
        "summary": "Get Flight",
        "description": "This returns the parameters for a specific flight",
        "operationId": "get-flight",
        "parameters": [
          {
            "name": "FlightID",
            "in": "path",
            "description": "This is the ID of the Flight",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "excludeAds",
            "in": "query",
            "description": "If true, the endpoint returns only the flight metadata without ad objects",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{  \n    \"Id\":12345,\n    \"NoEndDate\":null,\n    \"Price\":0.000,\n    \"OptionType\":1,\n    \"Impressions\":100,\n    \"IsUnlimited\":false,\n    \"IsNoDuplicates\":true,\n    \"DuplicateMode\":4,\n    \"IsFullSpeed\":false,\n    \"Keywords\":\"\",\n    \"UserAgentKeywords\":null,\n    \"Name\":\"The Great API Flight\",\n    \"WeightOverride\":null,\n    \"IsFreqCap\":null,\n    \"IsCompanion\":false,\n    \"CampaignId\":12345,\n    \"PriorityId\":1234,\n    \"IsDeleted\":false,\n    \"IsActive\":true,\n    \"GeoTargeting\":[  \n        {  \n            \"LocationId\":1234567,\n            \"FlightId\":0,\n            \"CountryCode\":\"US\",\n            \"Region\":\"NC\",\n            \"MetroCode\":560,\n            \"City\":\"Durham\",\n            \"CityGeonameId\":4464368,\n            \"IsExclude\":null\n        }\n    ],\n    \"SiteZoneTargeting\":[  \n        {  \n            \"Id\":123456,\n            \"FlightId\":12345,\n            \"SiteId\":12345,\n            \"ZoneId\":null,\n            \"IsExclude\":true\n        }\n    ],\n    \"CustomTargeting\":\"\",\n    \"GoalType\":2,\n    \"RateType\":1,\n    \"IsECPMOptimized\":null,\n    \"ECPMOptimizePeriod\":null,\n    \"ECPMMultiplier\":null,\n    \"FloorECPM\":null,\n    \"CeilingECPM\":null,\n    \"DefaultECPM\":null,\n    \"ECPMBurnInImpressions\":null,\n    \"EffectiveCPMOverride\":null,\n    \"DatePartingStartTime\":null,\n    \"DatePartingEndTime\":null,\n    \"IsSunday\":true,\n    \"IsMonday\":true,\n    \"IsTuesday\":true,\n    \"IsWednesday\":true,\n    \"IsThursday\":true,\n    \"IsFriday\":true,\n    \"IsSaturday\":true,\n    \"FreqCap\":0,\n    \"FreqCapDuration\":0,\n    \"FreqCapType\":0,\n    \"CapType\":1,\n    \"DailyCapAmount\":null,\n    \"LifetimeCapAmount\":null,\n    \"DeliveryStatus\":1,\n    \"CustomFieldsJson\":\"{\\\"SKU\\\":\\\"\\\"}\",\n    \"BehavioralTargeting\":null,\n    \"CreativeMaps\":[  \n        {  \n            \"Id\":12345,\n            \"CampaignId\":12345,\n            \"FlightId\":12345,\n            \"ZoneId\":0,\n            \"SiteId\":0,\n            \"Iframe\":null,\n            \"Impressions\":100,\n            \"Percentage\":0,\n            \"DistributionType\":1,\n            \"IsDeleted\":false,\n            \"IsActive\":true,\n            \"Creative\":{  \n                \"Id\":12345,\n                \"Title\":\"The Great API Creative\",\n                \"ImageName\":\"99b3fbfdd2e8491295c9d0d5dc4d5a2f.gif\",\n                \"Url\":\"https://adzerk.com\",\n                \"Body\":\"\\\"\\\"\",\n                \"AdvertiserId\":12345,\n                \"IsActive\":true,\n                \"AdTypeId\":5,\n                \"Alt\":\"New alt tag\",\n                \"IsDeleted\":null,\n                \"IsSync\":null,\n                \"IsHTMLJS\":false,\n                \"Metadata\":null,\n                \"ImageLink\":\"httpss://static.adzerk.net/Advertisers/99b3fbfdd2e8491295c9d0d5dc4d5a2f.gif\"\n            },\n            \"CustomTargeting\":\"\",\n            \"FreqCap\":0,\n            \"FreqCapDuration\":0,\n            \"FreqCapType\":0,\n            \"StartDate\":null,\n            \"EndDate\":null,\n            \"GoalType\":0,\n            \"Goal\":null,\n            \"IsGoalOverride\":null,\n            \"IsStartEndDateOverride\":null,\n            \"ActiveKeywords\":[  \n\n            ],\n            \"RtbCustomFields\":null\n        }\n    ],\n    \"IsTargetingOptimization\":null,\n    \"TargetingOptimizationType\":null,\n    \"TargetingOptimizationTargetType\":null,\n    \"TargetingOptimizationTarget\":null,\n    \"TargetingOptimizationBurnIn\":null,\n    \"TargetingOptimizationCanMiss\":null,\n  \t\"GeoDistanceTargeting\":[],\n    \"IsArchived\":null,\n    \"CanPassback\":true,\n    \"PassbackSortOrder\":1,\n    \"StartDateISO\":\"2015-06-08T00:00:00.0000000\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Id": {
                      "type": "integer",
                      "example": 12345,
                      "default": 0
                    },
                    "NoEndDate": {},
                    "Price": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "OptionType": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "Impressions": {
                      "type": "integer",
                      "example": 100,
                      "default": 0
                    },
                    "IsUnlimited": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "IsNoDuplicates": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "DuplicateMode": {
                      "type": "integer",
                      "example": 4,
                      "default": 0
                    },
                    "IsFullSpeed": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "Keywords": {
                      "type": "string",
                      "example": ""
                    },
                    "UserAgentKeywords": {},
                    "Name": {
                      "type": "string",
                      "example": "The Great API Flight"
                    },
                    "WeightOverride": {},
                    "IsFreqCap": {},
                    "IsCompanion": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "CampaignId": {
                      "type": "integer",
                      "example": 12345,
                      "default": 0
                    },
                    "PriorityId": {
                      "type": "integer",
                      "example": 1234,
                      "default": 0
                    },
                    "IsDeleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "IsActive": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "GeoTargeting": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "LocationId": {
                            "type": "integer",
                            "example": 1234567,
                            "default": 0
                          },
                          "FlightId": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "CountryCode": {
                            "type": "string",
                            "example": "US"
                          },
                          "Region": {
                            "type": "string",
                            "example": "NC"
                          },
                          "MetroCode": {
                            "type": "integer",
                            "example": 560,
                            "default": 0
                          },
                          "City": {
                            "type": "string",
                            "example": "Durham"
                          },
                          "CityGeonameId": {
                            "type": "integer",
                            "example": 4464368,
                            "default": 0
                          },
                          "IsExclude": {}
                        }
                      }
                    },
                    "SiteZoneTargeting": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Id": {
                            "type": "integer",
                            "example": 123456,
                            "default": 0
                          },
                          "FlightId": {
                            "type": "integer",
                            "example": 12345,
                            "default": 0
                          },
                          "SiteId": {
                            "type": "integer",
                            "example": 12345,
                            "default": 0
                          },
                          "ZoneId": {},
                          "IsExclude": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          }
                        }
                      }
                    },
                    "CustomTargeting": {
                      "type": "string",
                      "example": ""
                    },
                    "GoalType": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "RateType": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "IsECPMOptimized": {},
                    "ECPMOptimizePeriod": {},
                    "ECPMMultiplier": {},
                    "FloorECPM": {},
                    "CeilingECPM": {
                      "type": "number",
                      "example": 0.35,
                      "default": 0
                    },
                    "DefaultECPM": {
                      "type": "number",
                      "example": 0.28,
                      "default": 0
                    },
                    "ECPMBurnInImpressions": {
                      "type": "integer",
                      "example": 1000,
                      "default": 0
                    },
                    "EffectiveCPMOverride": {
                      "type": "number"
                    },
                    "DatePartingStartTime": {},
                    "DatePartingEndTime": {},
                    "IsSunday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsMonday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsTuesday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsWednesday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsThursday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsFriday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsSaturday": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "FreqCap": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "FreqCapDuration": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "FreqCapType": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "CapType": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "DailyCapAmount": {},
                    "LifetimeCapAmount": {},
                    "DeliveryStatus": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "CustomFieldsJson": {
                      "type": "string",
                      "example": "{\"SKU\":\"\"}"
                    },
                    "BehavioralTargeting": {},
                    "CreativeMaps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Id": {
                            "type": "integer",
                            "example": 12345,
                            "default": 0
                          },
                          "CampaignId": {
                            "type": "integer",
                            "example": 12345,
                            "default": 0
                          },
                          "FlightId": {
                            "type": "integer",
                            "example": 12345,
                            "default": 0
                          },
                          "ZoneId": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "SiteId": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "Iframe": {},
                          "Impressions": {
                            "type": "integer",
                            "example": 100,
                            "default": 0
                          },
                          "Percentage": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "DistributionType": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "IsDeleted": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "IsActive": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "Creative": {
                            "type": "object",
                            "properties": {
                              "Id": {
                                "type": "integer",
                                "example": 12345,
                                "default": 0
                              },
                              "Title": {
                                "type": "string",
                                "example": "The Great API Creative"
                              },
                              "ImageName": {
                                "type": "string",
                                "example": "99b3fbfdd2e8491295c9d0d5dc4d5a2f.gif"
                              },
                              "Url": {
                                "type": "string",
                                "example": "https://adzerk.com"
                              },
                              "Body": {
                                "type": "string",
                                "example": "\"\""
                              },
                              "AdvertiserId": {
                                "type": "integer",
                                "example": 12345,
                                "default": 0
                              },
                              "IsActive": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "AdTypeId": {
                                "type": "integer",
                                "example": 5,
                                "default": 0
                              },
                              "Alt": {
                                "type": "string",
                                "example": "New alt tag"
                              },
                              "IsDeleted": {},
                              "IsSync": {},
                              "IsHTMLJS": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "Metadata": {},
                              "ImageLink": {
                                "type": "string",
                                "example": "httpss://static.adzerk.net/Advertisers/99b3fbfdd2e8491295c9d0d5dc4d5a2f.gif"
                              }
                            }
                          },
                          "CustomTargeting": {
                            "type": "string",
                            "example": ""
                          },
                          "FreqCap": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "FreqCapDuration": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "FreqCapType": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "StartDate": {},
                          "EndDate": {},
                          "GoalType": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "Goal": {},
                          "IsGoalOverride": {},
                          "IsStartEndDateOverride": {},
                          "ActiveKeywords": {
                            "type": "array"
                          },
                          "RtbCustomFields": {}
                        }
                      }
                    },
                    "IsTargetingOptimization": {},
                    "TargetingOptimizationType": {},
                    "TargetingOptimizationTargetType": {},
                    "TargetingOptimizationTarget": {},
                    "TargetingOptimizationBurnIn": {},
                    "TargetingOptimizationCanMiss": {},
                    "GeoDistanceTargeting": {
                      "type": "array"
                    },
                    "IsArchived": {},
                    "CanPassback": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "PassbackSortOrder": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "StartDateISO": {
                      "type": "string",
                      "example": "2015-06-08T00:00:00.0000000"
                    },
                    "CategoryTargeting": {
                      "type": "array",
                      "description": "The category targeting rules saved on the Flight, each with an `Id` and `IsExclude`. Left out when category targeting is not enabled for your network.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Id": {
                            "type": "string",
                            "description": "The category the rule matches."
                          },
                          "IsExclude": {
                            "type": "boolean",
                            "description": "`true` for an exclude rule, `false` for an include rule."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET \\\n     -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \\\n     \"https://api.kevel.co/v1/flight/12345\"\n     \n# Exclude ads (returns faster with less data)\ncurl -X GET \\\n     -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \\\n     \"https://api.kevel.co/v1/flight/12345?excludeAds=true\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function getFlight() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let flight = await client.run(\"flight\", \"get\", {id: 12345});\n  console.log(flight);\n}\n\ngetFlight();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef get_flight()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    pp client.flights.get(flight_id)\nend\nget_flight()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```