API Reference
Get Recipe Details
Get the details of a specific recipe.
GET
/
v1
/
recipes
/
:recipeId
Get Recipe Details
curl --request GET \
--url https://api.mrcook.app/v1/recipes/:recipeId \
--header 'x-api-key: <api-key>'import requests
url = "https://api.mrcook.app/v1/recipes/:recipeId"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.mrcook.app/v1/recipes/:recipeId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mrcook.app/v1/recipes/:recipeId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mrcook.app/v1/recipes/:recipeId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mrcook.app/v1/recipes/:recipeId")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mrcook.app/v1/recipes/:recipeId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "018ff556-a36a-7cb8-95a1-a2ac02da3e93",
"title": "Spicy Bacon Cheddar Cheeseburger with Pickles",
"ingredients": [
"500 grams ground beef",
"4 slices bacon",
"4 slices cheddar cheese",
"4 hamburger buns",
"4 tablespoons mayonnaise",
"4 leaves lettuce",
"1 tomato, sliced",
"8 slices pickles",
"..."
],
"instructions": [
"Season the ground beef with salt, pepper, and cayenne pepper or hot sauce. Mix well until evenly distributed.",
"Form the beef into 4 patties, slightly larger than the buns.",
"...",
"Cover with the top bun and serve immediately."
],
"description": "Add a spicy kick to the classic American cheeseburger by introducing some heat to the flavors. This burger features a juicy beef patty with a melted cheddar cheese and crispy bacon, combined with a spicy twist to elevate the taste.",
"servings": "4 servings",
"preparationTime": 15,
"cookingTime": 15,
"cuisine": "American",
"language": "en"
}
}Authorizations
How to get your API key: https://docs.mrcook.app/business-api/api-key
Path Parameters
The ID of the recipe to retrieve
Example:
"018ff556-a36a-7cb8-95a1-a2ac02da3e93"
⌘I
Get Recipe Details
curl --request GET \
--url https://api.mrcook.app/v1/recipes/:recipeId \
--header 'x-api-key: <api-key>'import requests
url = "https://api.mrcook.app/v1/recipes/:recipeId"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.mrcook.app/v1/recipes/:recipeId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mrcook.app/v1/recipes/:recipeId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mrcook.app/v1/recipes/:recipeId"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mrcook.app/v1/recipes/:recipeId")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mrcook.app/v1/recipes/:recipeId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "018ff556-a36a-7cb8-95a1-a2ac02da3e93",
"title": "Spicy Bacon Cheddar Cheeseburger with Pickles",
"ingredients": [
"500 grams ground beef",
"4 slices bacon",
"4 slices cheddar cheese",
"4 hamburger buns",
"4 tablespoons mayonnaise",
"4 leaves lettuce",
"1 tomato, sliced",
"8 slices pickles",
"..."
],
"instructions": [
"Season the ground beef with salt, pepper, and cayenne pepper or hot sauce. Mix well until evenly distributed.",
"Form the beef into 4 patties, slightly larger than the buns.",
"...",
"Cover with the top bun and serve immediately."
],
"description": "Add a spicy kick to the classic American cheeseburger by introducing some heat to the flavors. This burger features a juicy beef patty with a melted cheddar cheese and crispy bacon, combined with a spicy twist to elevate the taste.",
"servings": "4 servings",
"preparationTime": 15,
"cookingTime": 15,
"cuisine": "American",
"language": "en"
}
}