flight-status-query
China Domestic Flight Status API
Query China domestic flight operational status, planned and actual times, airports and terminals by flight number and date.
Usage Cost
15 coins/call
Quick Start
Use a unified response envelope and call directly from your backend.
https://openapi.toolkk.com/v1/flight-status-querycURL Example
curl --request GET \
--url 'https://openapi.toolkk.com/v1/flight-status-query' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "FLIGHT_ID": "HU7610",\n "DATE": "20261009"\n}'Python Example
import os
import requests
url = "https://openapi.toolkk.com/v1/flight-status-query"
payload = {
"FLIGHT_ID": "HU7610",
"DATE": "20261009"
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.get(url, headers=headers, params=payload, timeout=30)
response.raise_for_status()
print(response.json())Go Example
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/flight-status-query"
payload := []byte("{\n \"FLIGHT_ID\": \"HU7610\",\n \"DATE\": \"20261009\"\n}")
req, err := http.NewRequest("GET", endpoint, bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}Java Example
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ToolkkExample {
public static void main(String[] args) throws Exception {
String payload = "{\n \"FLIGHT_ID\": \"HU7610\",\n \"DATE\": \"20261009\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/flight-status-query"))
.method("GET", HttpRequest.BodyPublishers.ofString(payload))
.header("Content-Type", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}PHP Example
<?php
$endpoint = 'https://openapi.toolkk.com/v1/flight-status-query';
$payload = "{\n \"FLIGHT_ID\": \"HU7610\",\n \"DATE\": \"20261009\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
curl_close($ch);
echo $response;Response Example
[
{
"FLIGHT_STATUS": "接口查询状态",
"FLIGHT_ACTUAL_STATUS": "延误",
"FLIGHT_ID": "CA1373",
"FLIGHT_AIRWAYS_CH": "中国国航",
"START_AIRPORT_CH": "北京首都国际机场",
"START_AIRPORT_EN": "PEK",
"START_CITY": "北京",
"START_TIME": "12:55",
"ACTUAL_START_TIME": "20190130131600",
"START_DATE": "20190130",
"START_TERMINAL_EN": "T3",
"END_AIRPORT_CH": "长沙黄花机场",
"END_AIRPORT_EN": "CSX",
"END_CITY": "长沙",
"END_TIME": "15:30",
"ACTUAL_END_TIME": "20190130153400",
"END_DATE": "20190130",
"END_TERMINAL_EN": "T1"
}
]Examples illustrate the response structure. Actual results depend on the API response.
- Authentication
- Send X-API-Key in request headers
- Rate limit
- 60 req/min
- Timeout
- 30000 ms
Send your API Key in the X-API-Key header from your backend.
Check both HTTP status and business fields before treating a call as successful.
Use retries and backoff together with rate limits in high-frequency scenarios.
Request Fields
Send requests from your server with the key in the X-API-Key header.
Request Fields
Fields are read from the API schema. Missing descriptions and examples are marked as unspecified.
| Path | Type | Required | Description | Sample |
|---|---|---|---|---|
| FLIGHT_ID | string | Yes | 航班编号,如:HU7610 | HU7610 |
| DATE | string | Yes | 日期,如:20200706 | 20261009 |
Request Example
{
"FLIGHT_ID": "HU7610",
"DATE": "20261009"
}- Authentication
- Send X-API-Key in request headers
- Rate limit
- 60 req/min
- Timeout
- 30000 ms
Response Fields
Examples illustrate the response structure. Actual results depend on the API response.
Response Fields
Fields are read from the API schema. Missing descriptions and examples are marked as unspecified.
| Path | Type | Required | Description | Sample |
|---|---|---|---|---|
| [] | object | Unspecified | Unspecified | Unspecified |
| [].FLIGHT_STATUS | string | No | 接口查询状态 | Unspecified |
| [].FLIGHT_ACTUAL_STATUS | string | No | Unspecified | 延误 |
| [].FLIGHT_ID | string | No | Unspecified | CA1373 |
| [].FLIGHT_AIRWAYS_CH | string | No | Unspecified | 中国国航 |
| [].START_AIRPORT_CH | string | No | Unspecified | 北京首都国际机场 |
| [].START_AIRPORT_EN | string | No | Unspecified | PEK |
| [].START_CITY | string | No | Unspecified | 北京 |
| [].START_TIME | string | No | Unspecified | 12:55 |
| [].ACTUAL_START_TIME | string | No | Unspecified | 20190130131600 |
| [].START_DATE | string | No | Unspecified | 20190130 |
| [].START_TERMINAL_EN | string | No | Unspecified | T3 |
| [].END_AIRPORT_CH | string | No | Unspecified | 长沙黄花机场 |
API overview
Capabilities, use cases, limitations, and frequently asked questions.
What the API provides
Query operational information for a China domestic flight using its number and date. Successful records can include operational status, planned and actual departure and arrival times, cities, airports and terminals. These details support a flight-specific itinerary view. Keep planned and actual timestamps distinct when presenting the result.
Where to use it
Airport pickup applications can display arrival information, corporate travel tools can update itinerary details, and support systems can check a dated flight. Your application must implement polling, change detection and notifications. The endpoint supplies query results rather than a background subscription or traveller location tracking.
Calling and interpreting results
Send FLIGHT_ID and DATE as GET query parameters. Use an eight-digit year, month and day such as 20261009. Check the business response code before reading the returned array. Use FLIGHT_ACTUAL_STATUS for operational status, then read planned and actual times separately. Interpret airport and terminal details within each record rather than merging multiple records indiscriminately.
Scope and limitations
No fixed refresh interval, historical date range or complete coverage is established by the public contract. When actual times are absent, display them as unavailable or pending rather than substituting planned times. Confirm boarding, rebooking and pickup decisions against airline or airport notices. A failed query is not evidence that a flight has been cancelled.