{"id":4254,"date":"2019-12-26T17:17:38","date_gmt":"2019-12-26T17:17:38","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=4254"},"modified":"2019-12-26T17:18:49","modified_gmt":"2019-12-26T17:18:49","slug":"real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/","title":{"rendered":"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP"},"content":{"rendered":"<p>The <b>Aviation Data API<\/b> allows the developer to get the real-time status of the flights. The flight tracker API is very useful to integrate real-time or historical flight information on the web application. You can easily track the flight status and access the airport timetable data using Flight Radar API. It returns real-time information about the flight status with the airport timetable. With this API you can get the current or historical data of the flights.<\/p>\n<p>There are various Flight Tracker API available to fetch the flight status, <b>aviationstack<\/b> is one of the best free Flight Radar API among them. Aviationstack API provides an easy way to access global aviation data (flight status &#038; airport timetable) in realtime. Aviationstack tracks each and every flight in the world at all time, store into the database and provide the real-time flight status through API. Aviationstack is easy-to-use REST API that returns the response in JSON format, it helps to use this API with any programming languages (PHP, Python, Ruby, Nodejs, jQuery, Go, etc.). In this tutorial, we will show you how to get the real-time flight status with aviationstack Flight Tracker API using PHP.<\/p>\n<p>Follow the below simple steps to integrate <\/b>Aviation Data API with aviationstack in PHP<\/b>.<\/p>\n<h2>Get API Access Key<\/h2>\n<ul class=\"step_list\">\n<li>Before getting started, create an account on <a href=\"https:\/\/aviationstack.com\/product\" target=\"_blank\" rel=\"noopener noreferrer\">aviationstack<\/a>.<\/li>\n<li>In the dashboard, you will get the API key under the <b>Your API Access Key<\/b>.\n<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/11\/serp-api-access-key-codexworld.png\" alt=\"aviation-data-api-access-key-codexworld\" width=\"976\" height=\"399\" class=\"alignnone size-full wp-image-4204\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/11\/serp-api-access-key-codexworld.png 976w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/11\/serp-api-access-key-codexworld-300x123.png 300w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/11\/serp-api-access-key-codexworld-768x314.png 768w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/11\/serp-api-access-key-codexworld-200x82.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/11\/serp-api-access-key-codexworld-346x141.png 346w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/div>\n<\/li>\n<\/ul>\n<h2>API Configuration<\/h2>\n<p>The Access Key is required to authenticate and access the aviationstack API.<\/p>\n<ul class=\"bullet_disk_list\">\n<li>Build the query string using <code>http_build_query()<\/code> function to pass required params in the aviationstack API.<\/li>\n<li>Specify the API Access Key in the <code>access_key<\/code> parameter.<\/li>\n<\/ul>\n<pre><span style=\"color: #0000BB\">$queryString&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">http_build_query<\/span><span style=\"color: #007700\">([ <br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'access_key'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'YOUR_ACCESS_KEY' <br \/><\/span><span style=\"color: #007700\">]);<\/span><\/pre>\n<h2>Make HTTP GET Request<\/h2>\n<p>To fetch the aviation data, call aviationstack API via HTTP GET request using <a href=\"https:\/\/www.codexworld.com\/post-receive-json-data-using-php-curl\/\">cURL in PHP<\/a>.<\/p>\n<pre><span style=\"color: #FF8000\">\/\/&nbsp;API&nbsp;URL&nbsp;with&nbsp;query&nbsp;string <br \/><\/span><span style=\"color: #0000BB\">$apiURL&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">sprintf<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'%s?%s'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #DD0000\">'http:\/\/api.aviationstack.com\/v1\/flights'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$queryString<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Initialize&nbsp;cURL <br \/><\/span><span style=\"color: #0000BB\">$ch&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">curl_init<\/span><span style=\"color: #007700\">(); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Set&nbsp;URL&nbsp;and&nbsp;other&nbsp;appropriate&nbsp;options <br \/><\/span><span style=\"color: #0000BB\">curl_setopt<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">CURLOPT_URL<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$apiURL<\/span><span style=\"color: #007700\">); <br \/><\/span><span style=\"color: #0000BB\">curl_setopt<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">CURLOPT_RETURNTRANSFER<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">true<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Execute&nbsp;and&nbsp;get&nbsp;response&nbsp;from&nbsp;API <br \/><\/span><span style=\"color: #0000BB\">$api_response&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">curl_exec<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Close&nbsp;cURL <br \/><\/span><span style=\"color: #0000BB\">curl_close<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">);<\/span><\/pre>\n<p><b>HTTPS Encryption:<\/b><br \/>\nTo make secure API requests use HTTPS (SSL) encryption by calling API URL begins with an <code>https<\/code>.<\/p>\n<pre>https:\/\/api.aviationstack.com<\/pre>\n<h2>Flight Status and Global Aviation Data<\/h2>\n<p>After a successful API request, the real-time flight status and aviation data will be returned as JSON format. Initially, the ipstack API returns the following geolocation data.<\/p>\n<ul class=\"bullet_disk_list\">\n<li>Flight Date (flight_date)<\/li>\n<li>Flight Status (flight_status)<\/li>\n<li>Departure and Arrival Info (departure\/arrival)\n<ul>\n<li>airport<\/li>\n<li>timezone<\/li>\n<li>iata<\/li>\n<li>icao<\/li>\n<li>terminal<\/li>\n<li>gate<\/li>\n<li>delay<\/li>\n<li>scheduled<\/li>\n<li>estimated<\/li>\n<li>actual<\/li>\n<li>estimated_runway<\/li>\n<li>actual_runway<\/li>\n<\/ul>\n<\/li>\n<li>Airline Info (airline)\n<ul>\n<li>name<\/li>\n<li>iata<\/li>\n<li>icao<\/li>\n<\/ul>\n<\/li>\n<li>Flight Info (flight)\n<ul>\n<li>number<\/li>\n<li>iata<\/li>\n<li>icao<\/li>\n<li>codeshared<\/li>\n<\/ul>\n<\/li>\n<li>Aircraft Info (aircraft)\n<ul>\n<li>registration<\/li>\n<li>iata<\/li>\n<li>icao<\/li>\n<li>icao24<\/li>\n<\/ul>\n<\/li>\n<li>Live Data (live)\n<ul>\n<li>updated<\/li>\n<li>latitude<\/li>\n<li>longitude<\/li>\n<li>altitude<\/li>\n<li>direction<\/li>\n<li>speed_horizontal<\/li>\n<li>speed_vertical<\/li>\n<li>is_ground<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Use <code>json_decode()<\/code> function to convert the JSON response to array in PHP.<\/p>\n<pre><span style=\"color: #FF8000\">\/\/&nbsp;Convert&nbsp;API&nbsp;json&nbsp;response&nbsp;to&nbsp;array <br \/><\/span><span style=\"color: #0000BB\">$api_result&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">json_decode<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$api_response<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">true<\/span><span style=\"color: #007700\">);<\/span><\/pre>\n<h2>Example Code to Fetch Flight Status Data via aviationstack API<\/h2>\n<p>The complete code is given below to get global flight information with aviationstack API using PHP.<\/p>\n<pre><span style=\"color: #0000BB\">&lt;?php <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Set&nbsp;API&nbsp;access&nbsp;key&nbsp; <br \/><\/span><span style=\"color: #0000BB\">$queryString&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">http_build_query<\/span><span style=\"color: #007700\">([ <br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'access_key'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'YOUR_ACCESS_KEY'<\/span><span style=\"color: #007700\">, <br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'limit'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">10&nbsp;&nbsp; <br \/><\/span><span style=\"color: #007700\">]); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;API&nbsp;URL&nbsp;with&nbsp;query&nbsp;string <br \/><\/span><span style=\"color: #0000BB\">$apiURL&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">sprintf<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'%s?%s'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #DD0000\">'http:\/\/api.aviationstack.com\/v1\/flights'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$queryString<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Initialize&nbsp;cURL <br \/><\/span><span style=\"color: #0000BB\">$ch&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">curl_init<\/span><span style=\"color: #007700\">(); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Set&nbsp;URL&nbsp;and&nbsp;other&nbsp;appropriate&nbsp;options <br \/><\/span><span style=\"color: #0000BB\">curl_setopt<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">CURLOPT_URL<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$apiURL<\/span><span style=\"color: #007700\">); <br \/><\/span><span style=\"color: #0000BB\">curl_setopt<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">CURLOPT_RETURNTRANSFER<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">true<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Execute&nbsp;and&nbsp;get&nbsp;response&nbsp;from&nbsp;API <br \/><\/span><span style=\"color: #0000BB\">$api_response&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">curl_exec<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Close&nbsp;cURL <br \/><\/span><span style=\"color: #0000BB\">curl_close<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$ch<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Convert&nbsp;API&nbsp;json&nbsp;response&nbsp;to&nbsp;array <br \/><\/span><span style=\"color: #0000BB\">$api_result&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">json_decode<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$api_response<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">true<\/span><span style=\"color: #007700\">); <br \/> <br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Output&nbsp;of&nbsp;the&nbsp;Flights&nbsp;data <br \/><\/span><span style=\"color: #007700\">foreach&nbsp;(<\/span><span style=\"color: #0000BB\">$api_result<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'data'<\/span><span style=\"color: #007700\">]&nbsp;as&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">)&nbsp;{ <br \/>&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'live'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'is_ground'<\/span><span style=\"color: #007700\">])&nbsp;{ <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #0000BB\">sprintf<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">\"%s&nbsp;flight&nbsp;%s&nbsp;from&nbsp;%s&nbsp;(%s)&nbsp;to&nbsp;%s&nbsp;(%s)&nbsp;is&nbsp;in&nbsp;the&nbsp;air.\"<\/span><span style=\"color: #007700\">, <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'airline'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'name'<\/span><span style=\"color: #007700\">], <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'flight'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'iata'<\/span><span style=\"color: #007700\">], <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'departure'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'airport'<\/span><span style=\"color: #007700\">], <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'departure'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'iata'<\/span><span style=\"color: #007700\">], <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'arrival'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'airport'<\/span><span style=\"color: #007700\">], <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$flight<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'arrival'<\/span><span style=\"color: #007700\">][<\/span><span style=\"color: #DD0000\">'iata'<\/span><span style=\"color: #007700\">] <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),&nbsp;<\/span><span style=\"color: #0000BB\">PHP_EOL<\/span><span style=\"color: #007700\">; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;br\/&gt;'<\/span><span style=\"color: #007700\">; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;} <br \/>} <br \/> <br \/><\/span><span style=\"color: #0000BB\">?&gt;<\/span><\/pre>\n<h2>Conclusion<\/h2>\n<p>The aviationstack API is free to use, there also premium plans are available for advanced uses. In the example code, we have used some required parameters on API call. Various configuration options are available in aviationstack API, you can use these settings to customize the aviation data (flight status, airport timetable, etc.) as per your needs. For a complete reference, see the <a href=\"https:\/\/aviationstack.com\/documentation\" target=\"_blank\" rel=\"noopener noreferrer\">documentation of aviationstack API<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Aviation Data API allows the developer to get the real-time status of the flights. The flight tracker API is very useful to integrate real-time or historical flight information on the web application. You can <\/p>\n","protected":false},"author":1,"featured_media":4257,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[250,14],"class_list":["post-4254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-api","tag-php","cat-4-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP - CodexWorld<\/title>\n<meta name=\"description\" content=\"Aviation Data with PHP - Get flight status and global aviation data with aviationstack API in PHP. Use aviationstack free flight tracker API to get real-time flight status using PHP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"Aviation Data with PHP - Get flight status and global aviation data with aviationstack API in PHP. Use aviationstack free flight tracker API to get real-time flight status using PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-26T17:17:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-26T17:18:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP\",\"datePublished\":\"2019-12-26T17:17:38+00:00\",\"dateModified\":\"2019-12-26T17:18:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/\"},\"wordCount\":518,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png\",\"keywords\":[\"API\",\"PHP\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/\",\"name\":\"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png\",\"datePublished\":\"2019-12-26T17:17:38+00:00\",\"dateModified\":\"2019-12-26T17:18:49+00:00\",\"description\":\"Aviation Data with PHP - Get flight status and global aviation data with aviationstack API in PHP. Use aviationstack free flight tracker API to get real-time flight status using PHP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP - CodexWorld","description":"Aviation Data with PHP - Get flight status and global aviation data with aviationstack API in PHP. Use aviationstack free flight tracker API to get real-time flight status using PHP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/","og_locale":"en_US","og_type":"article","og_title":"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP - CodexWorld","og_description":"Aviation Data with PHP - Get flight status and global aviation data with aviationstack API in PHP. Use aviationstack free flight tracker API to get real-time flight status using PHP.","og_url":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2019-12-26T17:17:38+00:00","article_modified_time":"2019-12-26T17:18:49+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP","datePublished":"2019-12-26T17:17:38+00:00","dateModified":"2019-12-26T17:18:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/"},"wordCount":518,"commentCount":0,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png","keywords":["API","PHP"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/","url":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/","name":"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png","datePublished":"2019-12-26T17:17:38+00:00","dateModified":"2019-12-26T17:18:49+00:00","description":"Aviation Data with PHP - Get flight status and global aviation data with aviationstack API in PHP. Use aviationstack free flight tracker API to get real-time flight status using PHP.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png","width":1366,"height":768,"caption":"real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/real-time-flight-status-global-aviation-data-with-flight-tracker-api-using-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Real-time Flight Status and Global Aviation Data with Flight Tracker API using PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2019\/12\/real-time-flight-status-global-aviation-data-with-tracker-api-using-php-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-16C","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/4254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=4254"}],"version-history":[{"count":2,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/4254\/revisions"}],"predecessor-version":[{"id":4258,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/4254\/revisions\/4258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/4257"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=4254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=4254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=4254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}