domestic-flight-schedule
中国国内航班时刻表查询
按出发城市、抵达城市、航空公司或航班号查询国内航班时刻表,支持分页。
Usage Cost
15 coins/call
Quick Start
Use a unified response envelope and call directly from your backend.
https://openapi.toolkk.com/v1/domestic-flight-scheduleWe use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
domestic-flight-schedule
按出发城市、抵达城市、航空公司或航班号查询国内航班时刻表,支持分页。
Usage Cost
15 coins/call
Use a unified response envelope and call directly from your backend.
https://openapi.toolkk.com/v1/domestic-flight-scheduleimport os
import requests
url = "https://openapi.toolkk.com/v1/domestic-flight-schedule"
payload = {
"START_CITY": "北京",
"END_CITY": "上海",
"PAGE_NUM": "1"
}
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())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/domestic-flight-schedule"
payload := []byte("{\n \"START_CITY\": \"北京\",\n \"END_CITY\": \"上海\",\n \"PAGE_NUM\": \"1\"\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))
}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 \"START_CITY\": \"北京\",\n \"END_CITY\": \"上海\",\n \"PAGE_NUM\": \"1\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/domestic-flight-schedule"))
.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
$endpoint = 'https://openapi.toolkk.com/v1/domestic-flight-schedule';
$payload = "{\n \"START_CITY\": \"北京\",\n \"END_CITY\": \"上海\",\n \"PAGE_NUM\": \"1\"\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;{
"索引条件": {
"索引字符串": "北京_海南航空"
},
"索引状态": "一切都如您的神机妙算,天下均在您的掌握之中",
"索引总数量": "64",
"索引总页数": "2",
"索引页容量": "25",
"索引页序号": "1",
"索引实体信息": [
{
"出发城市": "北京",
"抵达城市": "广州",
"航班号": "HU7719",
"航空公司": "海南航空",
"机型": "",
"开始时间": "17:55",
"结束时间": "20:20",
"起飞机场": "广州白云国际机场T1",
"抵达机场": "郑州新郑国际机场T2",
"本周参考航班": "一,三,五,日",
"准点率": "95%",
"数据编码": "089EB9712FDF9F7F2AF34056B05A21BB"
}
]
}Examples illustrate the response structure. Actual results depend on the API response.
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.
Send requests from your server with the key in the X-API-Key header.
Fields are read from the API schema. Missing descriptions and examples are marked as unspecified.
| Path | Type | Required | Description | Sample |
|---|---|---|---|---|
| START_CITY | string | No | 出发城市,如:北京 | 北京 |
| END_CITY | string | No | 抵达城市,如:上海 | 上海 |
| AIRLINE_COMPANY | string | No | 航空公司,如:海南航空 | 海南航空 |
| PLANE_ID | string | No | 航班号,如:CA1104 | CA1104 |
| PAGE_NUM | string | Yes | 搜索结果页码序列,如:1 | 1 |
{
"START_CITY": "北京",
"END_CITY": "上海",
"PAGE_NUM": "1"
}Examples illustrate the response structure. Actual results depend on the API response.
Fields are read from the API schema. Missing descriptions and examples are marked as unspecified.
| Path | Type | Required | Description | Sample |
|---|---|---|---|---|
| 索引条件 | object | No | Unspecified | Unspecified |
| 索引条件.索引字符串 | string | No | Unspecified | 北京_海南航空 |
| 索引状态 | string | No | Unspecified | 一切都如您的神机妙算,天下均在您的掌握之中 |
| 索引总数量 | string | No | Unspecified | 64 |
| 索引总页数 | string | No | Unspecified | 2 |
| 索引页容量 | string | No | Unspecified | 25 |
| 索引页序号 | string | No | Unspecified | 1 |
| 索引实体信息 | array | No | Unspecified | Unspecified |
| 索引实体信息[] | object | Unspecified | Unspecified | Unspecified |
| 索引实体信息[].出发城市 | string | No | Unspecified | 北京 |
| 索引实体信息[].抵达城市 | string | No | Unspecified | 广州 |
| 索引实体信息[].航班号 | string | No | Unspecified | HU7719 |
| 索引实体信息[].航空公司 | string | No | Unspecified | 海南航空 |
| 索引实体信息[].机型 | string | No | Unspecified | Unspecified |
Capabilities, use cases, and considerations.
按出发城市、抵达城市、航空公司或航班号查询国内航班时刻表,支持分页。
GET /v1/domestic-flight-schedule,通过查询字符串传参,参数名称区分大小写。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| START_CITY | string | 否 | 出发城市,如:北京 |
| END_CITY | string | 否 | 抵达城市,如:上海 |
| AIRLINE_COMPANY | string | 否 | 航空公司,如:海南航空 |
| PLANE_ID | string | 否 | 航班号,如:CA1104 |
Use this API through an online tool.
No online tools are linked to this API yet.
Explore other available endpoints.
| 索引实体信息[].开始时间 |
string |
| No |
| Unspecified |
17:55 |
| 索引实体信息[].结束时间 | string | No | Unspecified | 20:20 |
| 索引实体信息[].起飞机场 | string | No | Unspecified | 广州白云国际机场T1 |
| 索引实体信息[].抵达机场 | string | No | Unspecified | 郑州新郑国际机场T2 |
| 索引实体信息[].本周参考航班 | string | No | Unspecified | 一,三,五,日 |
| 索引实体信息[].准点率 | string | No | Unspecified | 95% |
| 索引实体信息[].数据编码 | string | No | Unspecified | 089EB9712FDF9F7F2AF34056B05A21BB |
{
"索引条件": {
"索引字符串": "北京_海南航空"
},
"索引状态": "一切都如您的神机妙算,天下均在您的掌握之中",
"索引总数量": "64",
"索引总页数": "2",
"索引页容量": "25",
"索引页序号": "1",
"索引实体信息": [
{
"出发城市": "北京",
"抵达城市": "广州",
"航班号": "HU7719",
"航空公司": "海南航空",
"机型": "",
"开始时间": "17:55",
"结束时间": "20:20",
"起飞机场": "广州白云国际机场T1",
"抵达机场": "郑州新郑国际机场T2",
"本周参考航班": "一,三,五,日",
"准点率": "95%",
"数据编码": "089EB9712FDF9F7F2AF34056B05A21BB"
}
]
}$.索引状态 == '一切都如您的神机妙算,天下均在您的掌握之中'| PAGE_NUM |
| string |
| 是 |
| 搜索结果页码序列,如:1 |
仅 PAGE_NUM 必填。城市、航空公司和航班号均为可选筛选条件,填写多个条件时同时生效。建议先按城市查询,再按需要增加航空公司或航班号;本接口不接收日期参数。
```json { "START_CITY": "北京", "END_CITY": "上海", "PAGE_NUM": "1" } ```
调用通过工具匠 API 统一返回 code、message、data。data 保留接口原始字段,可能是对象或数组;中文字段和大写英文字段应原样读取。
分页结果包含索引状态、总数量、总页数、页容量、页序号和索引实体信息;数字统计字段可能以字符串返回。PAGE_NUM 从 1 开始。班期、准点率及计划时间用于出行参考。
无匹配数据时返回 code=NO_RESULTS、明确提示及 data=null,不扣匠币;此状态表示查询完成但无匹配结果。
每分钟最多 60 次调用,超时时间 30 秒。当前产品为未启用草稿,完成商品授权及联调后启用。