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 | 长沙黄花机场 |
Documentation
Capabilities, use cases, and considerations.
接口说明
按航班号和日期查询航班实际状态、计划与实际起降时间、机场及航站楼信息。
请求方式
GET /v1/flight-status-query,通过查询字符串传参,参数名称区分大小写。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| FLIGHT_ID | string | 是 | 航班编号,如:HU7610 |
| DATE | string | 是 | 日期,如:20200706 |
日期格式为 yyyyMMdd;文档示例仅展示数据结构,不代表当前航班或票价。
请求示例
```json { "FLIGHT_ID": "HU7610", "DATE": "20261009" } ```