> For the complete documentation index, see [llms.txt](https://resources.atriptech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.atriptech.com/api-wen-dang/readme/gong-ju-api-gai-lan/hang-xian-dao-chu.md).

# 航线导出

{% hint style="info" %}
遇到 API 接入问题时，可登录 [Eva](https://www.atriptech.com/) 寻求帮助。
{% endhint %}

用这页导出受支持的航线数据。

本页统一使用 `航线导出` 作为主名称。

你也可能看到这个 API 被称为 `City Pairs API`。

### 主要 API

* `route/export.do`

### 适用场景

* 导出航线数据
* 内部分析支持
* 运营侧检查航线覆盖

### 调用前先确认

这个 API 面向生产航线数据集。

必填：

* `routeType`

只在需要时再加可选筛选：

* `fromCity`
* `fromCountry`
* `toCity`
* `toCountry`
* `airlines`
* `pageNumber`
* `pageSize`

### 航线类型

* `1`：airline routes
* `2`：Atlas routes

### 响应可能包含什么

返回的航线记录可能包含：

* 航司列表
* 出发地和目的地城市或国家
* 直飞或中转标记
* 航班时间窗口
* 最后更新时间

`isDirect` 与 Atlas 路线导出有关。

### 最佳实践

* 用筛选条件减少数据量
* 大批量导出时使用分页
* 根据 `updateDate` 刷新本地航线数据
* 在数据管道中区分 airline-route 和 Atlas-route

### 注意事项

* 接入前先确认环境可用性
* 航线数据是运营参考，不构成可预订保证
* 返回班期会随时间变化
* 直飞和中转覆盖取决于路线类型和来源数据

### 完整 API 参考

完整 schema 和示例见：

[航线导出](/api-wen-dang/api-can-kao/gong-ju-api/hang-xian-dao-chu.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resources.atriptech.com/api-wen-dang/readme/gong-ju-api-gai-lan/hang-xian-dao-chu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
