注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 飞猪机票前台类目

alitrip.flight.basic.data.city.queryAll (机票基础数据城市数据查询)

机票基础数据城市数据查询top接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result BaseResult BaseResult 返回包装类
  • └ error_message
  • String
  • success
  • 错误信息
  • data_list
  • Data []
  • Data
  • 数据实体
  • └ air_zone
  • String
  • TC3
  • 航空大区
  • └ country_name
  • String
  • 中国
  • 城市对应国家
  • └ city_jp
  • String
  • BJ
  • 城市简拼
  • └ time_zone_summer_period
  • String
  • 03-11 11-04
  • 夏日时区区间
  • └ time_zone_summer
  • String
  • -0400
  • 夏日时区
  • └ time_zone_standard
  • String
  • 0400
  • 标准时区
  • └ continent
  • String
  • 亚洲
  • 大洲
  • └ province_name
  • String
  • 新南威尔士州
  • 省/州名称
  • └ country_code
  • String
  • CN
  • 国家二字码
  • └ province_code
  • String
  • QL
  • 省/州二字码
  • └ city_capital
  • String
  • bj
  • 首字母
  • └ english_name
  • String
  • LOS ANGELES
  • 英文名称
  • └ city_py
  • String
  • beijing
  • 城市全拼
  • └ city_name
  • String
  • 北京
  • 城市名称
  • └ city_code
  • String
  • BJS
  • 城市三字码
  • └ iata_code
  • String
  • 320
  • 次区代码
  • └ secd_zone
  • String
  • 澳新
  • 次区
  • └ oag_summer_period
  • String
  • 201803110200-201811040200/201903100200-201911030200
  • OAG来源的夏令时
  • └ mini_iata_code
  • String
  • 171
  • 小次区
  • └ search_heat
  • Number
  • 100
  • 搜索热度
  • └ navigable_status
  • Number
  • 0
  • 城市通航状态
  • └ result_code
  • Number
  • 0
  • 结果码 0成功
  • └ query_id
  • String
  • flybd_123141122
  • 请求唯一标识

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFlightBasicDataCityQueryAllRequest req = new AlitripFlightBasicDataCityQueryAllRequest();
AlitripFlightBasicDataCityQueryAllResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_flight_basic_data_city_queryAll_response>
    <result>
        <error_message>success</error_message>
        <data_list>
            <data>
                <air_zone>TC3</air_zone>
                <country_name>中国</country_name>
                <city_jp>BJ</city_jp>
                <time_zone_summer_period>03-11 11-04</time_zone_summer_period>
                <time_zone_summer>-0400</time_zone_summer>
                <time_zone_standard>0400</time_zone_standard>
                <continent>亚洲</continent>
                <province_name>新南威尔士州</province_name>
                <country_code>CN</country_code>
                <province_code>QL</province_code>
                <city_capital>bj</city_capital>
                <english_name>LOS ANGELES</english_name>
                <city_py>beijing</city_py>
                <city_name>北京</city_name>
                <city_code>BJS</city_code>
                <iata_code>320</iata_code>
                <secd_zone>澳新</secd_zone>
                <oag_summer_period>201803110200-201811040200/201903100200-201911030200</oag_summer_period>
                <mini_iata_code>171</mini_iata_code>
                <search_heat>100</search_heat>
                <navigable_status>0</navigable_status>
            </data>
        </data_list>
        <result_code>0</result_code>
        <query_id>flybd_123141122</query_id>
    </result>
</alitrip_flight_basic_data_city_queryAll_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部