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

taobao.film.koubei.show.get (口碑-影片搜索)

口碑-影片搜索

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_id String 必须 2088202944981625 用户ID
city_code Number 必须 330100 城市编码
platform Number 可选 2
  • 默认值:2
  • 平台编码
    keyword String 可选 复仇者 搜索词

    响应参数

    名称 类型 示例值 描述
    result ResultListModel result
    • └ return_url
    • String
    • returnUrl
    • └ return_code
    • String
    • 0
    • 返回错误码
    • └ request_id
    • String
    • requestId
    • return_value_list
    • TopShowInfo []
    • 返回值模型
    • └ id
    • Number
    • 影片ID
    • id
    • └ show_name
    • String
    • 影片名称
    • showName
    • └ show_name_en
    • String
    • 影片英文名
    • showNameEn
    • └ director
    • String
    • 导演
    • director
    • └ leading_role
    • String
    • 主演
    • leadingRole
    • └ type
    • String
    • 影片类型
    • type
    • └ country
    • String
    • 国家
    • country
    • └ language
    • String
    • 语言
    • language
    • └ duration
    • Number
    • 时长
    • duration
    • └ open_time
    • String
    • 上映时间
    • openTime
    • └ poster
    • String
    • 海报
    • poster
    • └ remark
    • String
    • 评分
    • remark
    • └ remark_count
    • Number
    • 评分人数
    • remarkCount
    • └ want_count
    • Number
    • 想看人数
    • wantCount
    • └ koubei_h5_url
    • String
    • koubeiH5Url
    • └ alipay_koubei_h5_url
    • String
    • alipayKoubeiH5Url
    • └ sold_type
    • String
    • NORMAL购票 PRE预售
    • soldType
    • └ return_error_oper
    • String
    • returnErrorOper
    • └ return_error_solution
    • String
    • returnErrorSolution
    • └ return_message
    • String
    • returnMessage
    • └ return_error_stack_trace
    • String
    • returnErrorStackTrace

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    FilmKoubeiShowGetRequest req = new FilmKoubeiShowGetRequest();
    req.setUserId("2088202944981625");
    req.setCityCode(330100L);
    req.setPlatform(2L);
    req.setKeyword("复仇者");
    FilmKoubeiShowGetResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <film_koubei_show_get_response>
        <result>
            <return_url></return_url>
            <return_code>0</return_code>
            <request_id></request_id>
            <return_value_list>
                <top_show_info>
                    <id>影片ID</id>
                    <show_name>影片名称</show_name>
                    <show_name_en>影片英文名</show_name_en>
                    <director>导演</director>
                    <leading_role>主演</leading_role>
                    <type>影片类型</type>
                    <country>国家</country>
                    <language>语言</language>
                    <duration>时长</duration>
                    <open_time>上映时间</open_time>
                    <poster>海报</poster>
                    <remark>评分</remark>
                    <remark_count>评分人数</remark_count>
                    <want_count>想看人数</want_count>
                    <koubei_h5_url></koubei_h5_url>
                    <alipay_koubei_h5_url></alipay_koubei_h5_url>
                    <sold_type>NORMAL购票 PRE预售</sold_type>
                </top_show_info>
            </return_value_list>
            <return_error_oper></return_error_oper>
            <return_error_solution></return_error_solution>
            <return_message></return_message>
            <return_error_stack_trace></return_error_stack_trace>
        </result>
    </film_koubei_show_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

    返回
    顶部