RapidAPI logo

Rakuten Recipe

FREE
By rakuten_webservice
Updated 5 months ago
7.9/10
Popularity Score
116ms
Latency
100%
Success Rate

Rakuten Recipe API Documentation

Retrieve data from Rakuten Recipe.

View API Details
GET/CategoryRanking/20170426
GET/CategoryList/20170425
GET/CategoryRanking/20170426

Find top recipes for each category.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
affiliateidSTRING
OPTIONALRakuten Affiliate ID number. When specified item links in the response payload will include this ID. You can receive affiliate rewards when an item is purchased through your link.
formatSTRING
OPTIONALEither JSON or XML When JSON is specified the callback parameter can also be set in order to use JSONP.
callbackSTRING
OPTIONALFunction name to be used with the JSONP output (UTF-8 URL encoded string) Alphanumeric characters, periods, or underscores
elementsSTRING
OPTIONALBy default, API response all of the fields. You can change response fields by this parameter. This parameter's data is separated by comma(,).
categoryidNUMBER
OPTIONALLimit categories of recipes which are returned. Example: 10 (large category), 10-276 (medium category), 10-276-824 (small category)
Code Snippet
unirest.get("https://rakuten_webservice-rakuten-recipe-v1.p.rapidapi.com/services/api/Recipe/CategoryRanking/20170426")
.header("X-RapidAPI-Host", "rakuten_webservice-rakuten-recipe-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://rakuten_webservice-rakuten-recipe-v1.p.rapidapi.com/services/api/Recipe/CategoryRanking/20170426
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://rakuten_webservice-rakuten-recipe-v1.p.rapidapi.com/services/api/Recipe/CategoryRanking/20170426")
.header("X-RapidAPI-Host", "rakuten_webservice-rakuten-recipe-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication