文档中心 > API类目 > 电影票API

taobao.film.show.todayboxoffice.get (获取今日票房排行)

获取淘票票每日票房排行信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
city_code String 可选 310100 城市编码
city_name String 可选 ** 城市名称

响应参数

名称 类型 示例值 描述
result ResultListModel result
  • └ return_code
  • String
  • 0
  • returnCode
  • box_office_list
  • ShowBoxOffice []
  • returnValue
  • └ show_cinema_list_url
  • String
  • https://h5.m.taobao.com/app/moviemain/pages/show-cinema-list/index.html?showid=%s&showname=%s&from=youku
  • showCinemaListUrl
  • └ show_id
  • Number
  • 211693
  • showId
  • └ box_office
  • Number
  • 28477919
  • boxOffice
  • └ sort
  • Number
  • 1
  • sort
  • └ poster
  • String
  • https://gw.alicdn.com/tfscom/i3/TB12V0Iiv6H8KJjSspmXXb2WXXa_.jpg
  • poster
  • └ show_name
  • String
  • 芳华
  • showName
  • └ return_message
  • String
  • success
  • returnMessage

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmShowTodayboxofficeGetRequest req = new FilmShowTodayboxofficeGetRequest();
req.setCityCode("310100");
req.setCityName("**");
FilmShowTodayboxofficeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_show_todayboxoffice_get_response>
    <result>
        <return_code>0</return_code>
        <box_office_list>
            <show_box_office>
                <show_cinema_list_url>https://h5.m.taobao.com/app/moviemain/pages/show-cinema-list/index.html?showid=%s&amp;showname=%s&amp;from=youku</show_cinema_list_url>
                <show_id>211693</show_id>
                <box_office>28477919</box_office>
                <sort>1</sort>
                <poster>https://gw.alicdn.com/tfscom/i3/TB12V0Iiv6H8KJjSspmXXb2WXXa_.jpg</poster>
                <show_name>芳华</show_name>
            </show_box_office>
        </box_office_list>
        <return_message>success</return_message>
    </result>
</film_show_todayboxoffice_get_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

返回
顶部