Home      API一覧     楽天トラベルホテルチェーンAPI


楽天トラベルホテルチェーンAPI (version:2013-10-24)









楽天トラベルホテルチェーンAPI(GetHotelChainList) 入力パラメーター version:2013-10-24

ID 項目名 パラメーター 型(括弧内は最大バイト数) 必須 デフォルト 備考
Division: Shared parameters
1 App ID applicationId String 必須 - Check here
2 Affiliate ID affiliateId String - - Check here
3 Response format format String - json Either JSON or XML
When JSON is specified the callback parameter can also be set in order to use JSONP.
4 Callback function name callback String - - Function name to be used with the JSONP output
(UTF-8 URL encoded string)
Alphanumeric characters, periods, or underscores
5 Choosing output fields elements String - - By default, API response all of the fields. You can change response fields by this parameter.
This parameter's data is separated by comma(,).
For example, following request will response only itemName, itemPrice and itemUrl.
6 Format version formatVersion int - 1

Response format version.

If formatVersion=2 is set, the response format (JSON) will be improved.

In case of formatVersion=1 :
Our API response will be returned in Array format as the followings.
You would need to use notation items[0].item.itemName To access itemName parameter.

{"items": [
    {"item": {
        "itemName": "a",
        "itemPrice": 10
    {"item": {
        "itemName": "b",
        "itemPrice": 20

In case of formatVersion=2 :
Our API response will be returned in Array format as the followings.
You can use notation items[0].itemName To access itemName parameter.

{"items": [
        "itemName": "a",
        "itemPrice": 10
        "itemName": "b",
        "itemPrice": 20


楽天トラベルホテルチェーンAPI(GetHotelChainList) 出力パラメーター version:2013-10-24

ID 大分類 分類 項目名 パラメーター 備考
1 大区分
"<largeClasses> ~ </largeClasses>"内に複数の"
<largeClass> ~ </largeClass>"が表示される
大区分コード largeClassCode
2 ホテルチェーン情報
"<hotelChains> ~ </hotelChains>"内に複数の"
<hotelChain> ~ </hotelChain>"が表示される
ホテルチェーンコード hotelChainCode  
3 ホテルチェーン名称 hotelChainName  
4 ホテルチェーンカナ名称 hotelChainNameKana  
5 ホテルチェーンコメント hotelChainComment 各ホテルチェーンの紹介文


Error messages are displayed in the form of HTTP status code and its response body

HTTP Status Code Description Response body example (JSON)
400 Parameter error (or required parameters were insufficient)

If applicationId is not set

    "error": "wrong_parameter",
    "error_description": "specify valid applicationId"

If keyword is not valid (only 1 character given, etc.)

    "error": "wrong_parameter",
    "error_description": "keyword parameter is not valid"
404 If data not found.
    "error": "not_found",
    "error_description": "not found"
429 Too many requests

This error will be displayed if the number of API requests has been exceeded.
Please try access again after an amount of time.

    "error": "too_many_requests",
    "error_description": "number of allowed requests has been exceeded for this API. please try again soon."
500 Internal error in Rakuten Web Service

An internal system error occured. If you continue seeing this message for a long period, please give your inquiry via this link

    "error": "system_error",
    "error_description": "api logic error"
503 Unavailable due to maintenance or overloaded

Maintenance (the API name will be displayed in XXX/XXX)

    "error": "service_unavailable",
    "error_description": "XXX/XXX is under maintenance"

Response body format is display in format.

format Error output example
    "error": "wrong_parameter",
    "error_description": "page must be a number"
<?xml version="1.0" encoding="UTF-8"?>
    <error_description>page must be a number</error_description>