BooksCD/Search

Description

Gets up to 30 CD items by title, artist, label, JAN or genre.

Resource URL

https://app.rakuten.co.jp/services/api/BooksCD/Search/20130522

Resource Information

Auth Type App Key
Affiliation Support Yes

Parameters

App ID (string)

The Application ID that identifies your application. You can get it from https://webservice.rakuten.co.jp/.

Title (string)

Keywords to search from the title of the CD.

This string needs to be UTF-8 encoded.

If you want to use multiple keywords in your search, please separate them using spaces.

Artist Name (string)

Keywords to search from the artist's or composer's name.

This string needs to be UTF-8 encoded.

If you want to use multiple keywords in your search, please separate them using spaces.

Label (string)

Keywords to search from label releasing the items.

This string needs to be UTF-8 encoded.

If you want to use multiple keywords in your search, please separate them using spaces.

CD JAN code (long)

Search for a JAN code associated to a CD.

Book genre ID (string)

Use it for narrow results to a specific book genre ID.

Only genres under bookGenreId = 002 (CD) are valid.

Please use the Book Genre Search API to look up book genre names and genre relations.

Please note that this genre is different from the Rakuten Ichiba genre.

Default Value: 002

How many results to display on each page (integer)

An integer between 1 and 30.

Default Value: 30

Result page (integer)

An integer between 1 and 100.

Default Value: 1

Availability (integer)

Valid Values:

  • 0 all items
  • 1 In Stock
  • 2 Usually ships in about 3 to 7 days
  • 3 Usually ships in about 3 to 9 days
  • 4 Manufacturer stock
  • 5 Preorder
  • 6 Check stock with manufacturer

Default Value: 0

Out of Stock Flag (integer)

Valid Values:

  • 0 Do not include out of stock items.
  • 1 Include out of stock items.

Default Value: 0

Sort (string)

*UTF-8 URL encoding is required.

Valid Values:

  • standard
  • sales
  • +releaseDate Release date (Ascending order)
  • -releaseDate Release date (Descending order)
  • +itemPrice Item price (Ascending order)
  • -itemPrice Item price (Descending order)
  • reviewCount
  • reviewAverage

Default Value: standard

Limited Flag (integer)

※ Limited Edition include products such as limited time, limited quantity or reservation limited.

Valid Values:

  • 0 All items
  • 1 Limited Edition only

Default Value: 0

Platform (integer)

Valid Values:

  • 0 PC
  • 1 Mobile

Default Value: 0

Genre information flag (integer)

Valid Values:

  • 0 Do not get number of item in each genre.
  • 1 Get number of item in each genre.

Default Value: 0

Affiliate ID (string)

If this endpoint supports affiliation, here you can enter your affiliate ID. If you do, the links in the API response will include your affiliate ID.

Response format (string)

Format for the response output.

You can set this parameter to json or xml. JSON is usually the best option.

If you choose JSON, you can also set the callback parameter in order to use JSONP.

Valid Values:

  • json
  • xml

Default Value: json

Callback function name (string)

Function name to be used with the JSONP output

Please make sure you enter a UTF-8 URL encoded string, containing only a combination of alphanumeric characters, periods and underscores.

Choosing output fields (string)

By default API will return all the fields. You can specify what fields should be returned by using this parameter.

If you want to specify more than one parameter, please use comma (,) as separator.

For example, following request will only return itemName, itemPrice and itemUrl.

elements=itemName,itemPrice,itemUrl

Format version (integer)

Response format version.

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

In case of formatVersion=1:

The API response will return an array using the following format.

For example, 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:

The API response will return an array using the following format.

For example, you would use the notation items[0].itemName to access the itemName parameter.

{"items": [

{

"itemName": "a",

"itemPrice": 10

},

{

"itemName": "b",

"itemPrice": 20

}

]}

Valid Values:

  • 1
  • 2

Default Value: 1

applicationId

App ID
string Required

The Application ID that identifies your application. You can get it from https://webservice.rakuten.co.jp/.

title

Title
string At least one is required

Keywords to search from the title of the CD.

This string needs to be UTF-8 encoded.

If you want to use multiple keywords in your search, please separate them using spaces.

artistName

Artist Name
string At least one is required

Keywords to search from the artist's or composer's name.

This string needs to be UTF-8 encoded.

If you want to use multiple keywords in your search, please separate them using spaces.

label

Label
string At least one is required

Keywords to search from label releasing the items.

This string needs to be UTF-8 encoded.

If you want to use multiple keywords in your search, please separate them using spaces.

jan

CD JAN code
long At least one is required

Search for a JAN code associated to a CD.

bookGenreId

Book genre ID
string At least one is required

Use it for narrow results to a specific book genre ID.

Only genres under bookGenreId = 002 (CD) are valid.

Please use the Book Genre Search API to look up book genre names and genre relations.

Please note that this genre is different from the Rakuten Ichiba genre.

Default Value: 002

hits

How many results to display on each page
integer Optional

An integer between 1 and 30.

Default Value: 30

page

Result page
integer Optional

An integer between 1 and 100.

Default Value: 1

availability

Availability
integer Optional

Valid Values:

  • 0 all items
  • 1 In Stock
  • 2 Usually ships in about 3 to 7 days
  • 3 Usually ships in about 3 to 9 days
  • 4 Manufacturer stock
  • 5 Preorder
  • 6 Check stock with manufacturer

Default Value: 0

outOfStockFlag

Out of Stock Flag
integer Optional

Valid Values:

  • 0 Do not include out of stock items.
  • 1 Include out of stock items.

Default Value: 0

sort

Sort
string Optional

*UTF-8 URL encoding is required.

Valid Values:

  • standard
  • sales
  • +releaseDate Release date (Ascending order)
  • -releaseDate Release date (Descending order)
  • +itemPrice Item price (Ascending order)
  • -itemPrice Item price (Descending order)
  • reviewCount
  • reviewAverage

Default Value: standard

limitedFlag

Limited Flag
integer Optional

※ Limited Edition include products such as limited time, limited quantity or reservation limited.

Valid Values:

  • 0 All items
  • 1 Limited Edition only

Default Value: 0

carrier

Platform
integer Optional

Valid Values:

  • 0 PC
  • 1 Mobile

Default Value: 0

genreInformationFlag

Genre information flag
integer Optional

Valid Values:

  • 0 Do not get number of item in each genre.
  • 1 Get number of item in each genre.

Default Value: 0

affiliateId

Affiliate ID
string Optional

If this endpoint supports affiliation, here you can enter your affiliate ID. If you do, the links in the API response will include your affiliate ID.

format

Response format
string Optional

Format for the response output.

You can set this parameter to json or xml. JSON is usually the best option.

If you choose JSON, you can also set the callback parameter in order to use JSONP.

Valid Values:

  • json
  • xml

Default Value: json

callback

Callback function name
string Optional

Function name to be used with the JSONP output

Please make sure you enter a UTF-8 URL encoded string, containing only a combination of alphanumeric characters, periods and underscores.

elements

Choosing output fields
string Optional

By default API will return all the fields. You can specify what fields should be returned by using this parameter.

If you want to specify more than one parameter, please use comma (,) as separator.

For example, following request will only return itemName, itemPrice and itemUrl.

elements=itemName,itemPrice,itemUrl

formatVersion

Format version
integer Optional

Response format version.

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

In case of formatVersion=1:

The API response will return an array using the following format.

For example, 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:

The API response will return an array using the following format.

For example, you would use the notation items[0].itemName to access the itemName parameter.

{"items": [

{

"itemName": "a",

"itemPrice": 10

},

{

"itemName": "b",

"itemPrice": 20

}

]}

Valid Values:

  • 1
  • 2

Default Value: 1

Response Example

Request

https://app.rakuten.co.jp/services/api/BooksCD/Search/20130522?applicationId=REPLACE_WITH_YOUR_APP_ID&artistName=speed&hits=3

Response
{
  "count": 78,
  "page": 1,
  "first": 1,
  "last": 3,
  "hits": 3,
  "carrier": 0,
  "pageCount": 26,
  "Items": [
    {
      "Item": {
        "title": "【輸入盤】3RDシングル:スピード・オン",
        "titleKana": "",
        "artistName": "Speed (Korea)",
        "artistNameKana": "スピード",
        "label": "Interpark Int",
        "size": "0",
        "jan": "8809447080178",
        "makerCode": "INT0026",
        "itemCaption": "ボーイズ・グループSPEEDが最新シングル\"What U\"で約1年ぶりにカムバック!新メンバーを加えた新たなグループ編成で再びシーンに舞い戻る!\n\n<収録内容>\n1. What U\n2. Rose\n3. 贈り物のような一人(Baby U)\n4. Rose(Inst.)\n5. ギフトのような一人(Baby U)(Inst.)",
        "playList": "",
        "salesDate": "2015年06月19日",
        "itemPrice": 2043,
        "listPrice": 0,
        "discountRate": 0,
        "discountPrice": 0,
        "itemUrl": "http://books.rakuten.co.jp/rb/13282762/",
        "affiliateUrl": "",
        "smallImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/0178/8809447080178.jpg?_ex=64x64",
        "mediumImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/0178/8809447080178.jpg?_ex=120x120",
        "largeImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/0178/8809447080178.jpg?_ex=200x200",
        "availability": "1",
        "postageFlag": 1,
        "limitedFlag": 0,
        "reviewCount": 0,
        "reviewAverage": "0.0",
        "booksGenreId": "002115001"
      }
    },
    {
      "Item": {
        "title": "Straight Shooter",
        "titleKana": "ストレート シューター",
        "artistName": "スピードトラップ",
        "artistNameKana": "スピードトラップ",
        "label": "(有)スピリチュアル・ビースト",
        "size": "1",
        "jan": "4571139013095",
        "makerCode": "IUCP-16226",
        "itemCaption": "",
        "playList": "ノー・グローリー・ファウンド###トーチズ・アブレイズ###ランニング・ランパント###アイズ・フォー・コンクエスト###サーヴ・ユア・マスターズ###ストレート・シューター###ヘヴィ・アーマー###サヴェージ・ザ・プレイ###アイ・ウォント・トゥ・コンカー・ザ・ワールド (日本盤ボーナス・トラック)",
        "salesDate": "2015年09月23日",
        "itemPrice": 2776,
        "listPrice": 0,
        "discountRate": 0,
        "discountPrice": 0,
        "itemUrl": "http://books.rakuten.co.jp/rb/13305613/",
        "affiliateUrl": "",
        "smallImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/3095/4571139013095.jpg?_ex=64x64",
        "mediumImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/3095/4571139013095.jpg?_ex=120x120",
        "largeImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/3095/4571139013095.jpg?_ex=200x200",
        "availability": "1",
        "postageFlag": 1,
        "limitedFlag": 0,
        "reviewCount": 0,
        "reviewAverage": "0.0",
        "booksGenreId": "002102002"
      }
    },
    {
      "Item": {
        "title": "【輸入盤】Furious 7 - Original Score",
        "titleKana": "Furious 7 - Original Score",
        "artistName": "ワイルド スピード Sky Mission",
        "artistNameKana": "Furious Seven ワイルドスピード スカイミッション スカイ ミッション ワイルドスピード7",
        "label": "Backlot Music",
        "size": "0",
        "jan": "0851147006024",
        "makerCode": "602",
        "itemCaption": "Disc1\n1 : Furious 7\n2 : Paratroopers\n3 : Awakening\n4 : Operation Ramsey\n5 : Battle of the Titans\n6 : Parting Ways\n7 : Mountain Hijack\n8 : Homecoming\n9 : Beast in a Cage\n10 : Homefront\n11 : Vow for Revenge\n12 : Party Crashers\n13 : The Three Towers\n14 : God's Eye\n15 : When Worlds Collide\n16 : Remembrance\n17 : Hobbs Is the Cavalry\n18 : Operation Carjack\n19 : A Completely Insane Plan\n20 : Letty and Dom\n21 : Heist in the Desert\n22 : No More Funerals\n23 : Hobbs vs Shaw\n24 : Connected\n25 : About to Get Real Serious up in Here\n26 : Family\n27 : One Last Stand\n28 : Farewell\nPowered by HMV",
        "playList": "",
        "salesDate": "2015年03月31日",
        "itemPrice": 2231,
        "listPrice": 0,
        "discountRate": 0,
        "discountPrice": 0,
        "itemUrl": "http://books.rakuten.co.jp/rb/13267684/",
        "affiliateUrl": "",
        "smallImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/6024/0851147006024.jpg?_ex=64x64",
        "mediumImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/6024/0851147006024.jpg?_ex=120x120",
        "largeImageUrl": "http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/6024/0851147006024.jpg?_ex=200x200",
        "availability": "1",
        "postageFlag": 1,
        "limitedFlag": 0,
        "reviewCount": 0,
        "reviewAverage": "0.0",
        "booksGenreId": "002111003"
      }
    }
  ],
  "GenreInformation": []
}

Try It

Set the Parameters

  Show More Parameters

Request

https://app.rakuten.co.jp/services/api/BooksCD/Search/20130522?applicationId=REPLACE_WITH_YOUR_APP_ID

Response