Home      API一覧     お気に入りブックマーク取得API

楽天お気に入りブックマーク取得APIは楽天のお気に入りブックマークの情報を取得することが可能なAPIです。
デベロッパーはOAuth2.0(API認可方式)を使用して、
ユーザーにユーザー自身のお気に入りブックマークのリストを表示させることが可能です。

リクエスト方法


  1. OAuth2.0(API認可方式)で、access_tokenを取得します。
    ※アプリ登録後に表示されるアプリIDとapplication_secretを使用します。
       アプリ未登録の方は登録してください。
    ※OAuth2.0(API認可方式)を使用したaccess_token取得方法についてはこちらをご覧ください。
  2. 取得したaccess_tokenを利用して、リクエストします。
    ※APIテストフォームでテストすることができます。
https://app.rakuten.co.jp/services/api/FavoriteBookmark/List/20170426?
        format=json&
        access_token=[access_token]

※短い時間の間に大量に、同一のリクエストURLへアクセスすると、一定時間利用できなくなる場合がございます。テストの際にはご注意ください。

使用許可スコープ


rakuten_favoritebookmark_read

入力パラメーター


お気に入り商品取得API 入力パラメータ

ID 項目名 パラメーター 型(括弧内は最大バイト数) 必須 デフォルト 備考
1 アクセストークン access_token String Affiliate対応あり - アクセストークンの取得方法はこちらを参照してください
2 レスポンス形式 format String json json か xml かどちらかを指定することができます。
3 アフィリエイトID affiliateId String - 指定無し アフィリエイトIDが指定された場合は商品URLがアフィリエイト対応のURLになります
4 ページ番号 page Int - 1 取得するページの開始番号
5 取得件数 hits int - 1 1ページあたりに取得する商品数(最大40件)
6 並び順 sort option - update_regist_datetime:desc 最新に更新されたお気に入り :update_regist_datetime:desc
お気に入り登録日時新しい順 :regist_datetime:desc
お気に入り登録日時古い順 :regist_datetime
登録時金額安い順 :price
登録時金額高い順 :price:desc
※同一登録日時および同一金額の場合の順番、並び順は保障しません
7 公開有無指定 ispublic option - false 未指定 :""
非公開商品のみ :false
公開商品のみ :true

出力パラメーター


お気に入り商品取得API 出力パラメータ

ID 項目名 パラメーター 型(括弧内は最大バイト数) 備考
1 検索数 count int お気に入りブックマーク検索結果数
2 ヒット数 hits int 1ページあたりに返却しているお気に入りブックマーク数
3 ページ数 pageCount int 総ページ数
最大100ページ
4 ブックマークID bookmarkId String ブックマーク削除時に使用します
5 商品コード itemCode String ブックマークが、楽天市場商品の場合は商品コードを返却します。
プロダクトコードの場合はプロダクトIDを返却します
6 楽天プロダクト製品ID productId String
7 店舗名 shopName String  
8 店舗URL shopUrl String httpsではじまる店舗ごとのURL
9 商品名 itemName String  
10 商品URL itemUrl String httpsではじまる商品ごとのURL
11 商品画像64x64URL smallImageUrl String httpsではじまる商品画像(64x64ピクセル)のURL
12 商品画像128x128URL mediumImageUrl String httpsではじまる商品画像(128x128ピクセル)のURL
13 レビュー件数 reviewCount int  
14 レビューURL reviewUrl String httpsではじまるレビューごとのURL
15 商品別ポイント倍付け pointRate int 例)5 →ポイント5倍
商品別ポイント倍付けについてはこちらをご確認ください。
16 レビュー平均 reviewAverage String  
17 送料フラグ postageFlag int 0:送料込
1:送料別
18 消費税フラグ taxFlag int "0:税込
1:税別"

商品別ポイント倍付けに関して


商品購入時に付与される楽天スーパーポイントは、通常、購入金額の1%ですが、ポイント倍付けが設定されている商品は、設定期間中に商品を購入すると、設定された倍率が適用されます。ポイント倍付けの詳しい仕組みは、こちらでご確認ください。

ショップが設定するポイント倍付けには、特定商品のみに適用される商品別ポイント倍付けと、特定ショップの全商品に適用されるショップ別ポイント倍付けの2種類があります。本APIでは、現在のところ、商品別ポイント倍付けの情報を提供しています。

Error

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"
}
401 access_token is unauthorized (expired or invalid)

If access_token is expired

{
    "error": "invalid_token",
    "error_description": "specified access token is expired"
}

If access_token is invalid

{
    "error": "invalid_token",
    "error_description": "specify valid access token"
}
403 access_token is forbidden(scope is insufficient)

Insufficient scope (a required scope name will be display in xxxxx)

{
    "error": "insufficient_scope",
    "error_description": "specified access token has no permission for xxxxx"
}
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
json
{
    "error": "wrong_parameter",
    "error_description": "page must be a number"
}
xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
    <error>wrong_parameter</error>
    <error_description>page must be a number</error_description>
</root>
)