domestic-flight-schedule
中国国内航班时刻表查询
按出发城市、抵达城市、航空公司或航班号查询国内航班时刻表,支持分页。
调用价格
15 匠币/次
快速接入
保持统一返回结构,直接通过服务端发起请求即可接入。
https://openapi.toolkk.com/v1/domestic-flight-schedulecURL 示例
curl --request GET \
--url 'https://openapi.toolkk.com/v1/domestic-flight-schedule' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "START_CITY": "北京",\n "END_CITY": "上海",\n "PAGE_NUM": "1"\n}'Python 示例
import 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())