Recipe Scraper API

Recipe Scraper API

The Recipe Scraper API is a web-based tool that allows users to extract recipes from a provided URL. It can be used in recipe applications, meal planning, and other food-related projects to easily access and collect recipe information.

API description

About the API:

The Recipe Scraper API is a powerful tool for anyone looking to collect recipe information from the web. This API allows users to extract recipe information from a provided URL, allowing them to access the recipe's title, ingredients, instructions, and other relevant information. The API returns the data in a structured format, such as JSON, making it easy to parse and display in a user-friendly format.

This API can be integrated into a variety of applications, such as recipe apps, meal planning, and food-related projects. For example, in a recipe app, users can input a recipe URL and the API will extract the recipe's title, ingredients, and instructions, allowing the user to view and save the recipe. Similarly, in meal planning applications, the API can be used to collect recipes from various websites and present them in a structured format for the user to select from.

The API supports multiple languages, so you can use it for different regions and cultures. It also has a feature to extract recipe images, so you can use it for recipe visualization, for example.

In summary, the Recipe Scraper API is a valuable tool for anyone in the food industry. It allows users to extract recipe information from a provided URL, providing access to the recipe's title, ingredients, instructions, and other relevant information. It can be integrated into a variety of applications, such as recipe apps, meal planning, and food-related projects. It's easy to use and returns data in a structured format, and supports multiple languages and image extraction.

 

What this API receives and what your API provides (input/output)?

Pass an URL that contains a recipe to the API. The API will scrape the content and will deliver the information in a structured JSON. 

 

What are the most common uses cases of this API?

  1. Recipe Applications: Users can input a recipe URL and the API will extract the recipe's title, ingredients, and instructions, allowing the user to view and save the recipe.

  2. Meal Planning Applications: The API can be used to collect recipes from various websites and present them in a structured format for the user to select from.

  3. Food Blogs and Websites: Extract recipe information from food blogs and websites to create a recipe database or to feature recipes on a website.

  4. Cooking and Recipe Books Digitalization: Extract recipe information from scanned cooking and recipe books to create a digital recipe database.

  5. Recipe Analysis and Nutritional Information: Extract recipe information from the web to analyze the recipe ingredients and provide nutritional information.

  6. Recipe Search Engine: Use the API to extract recipe information from various websites and use it to power a recipe search engine.

 

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations. 

API Documentation

Endpoints


Pass an URL with a recipe within it. The API will scrape the URL and retrieve the recipe in a structured JSON object.



                                                                            
GET https://zylalabs.com/api/935/recipe+scraper+api/753/get+recipe+from+url
                                                                            
                                                                        

Get Recipe from URL - Endpoint Features
Object Description
url [Required] URL to extract the recipe from.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {
    "status": "success",
    "error": null,
    "error_message": null,
    "recipe": {
        "@type": "Recipe",
        "name": "Margherita Pizza",
        "recipeYield": "2 servings",
        "recipeInstructions": [
            "Preheat the oven to 500 degrees Fahrenheit with a rack in the upper third of the oven. If you\u2019re using a baking stone or baking steel, place it on the upper rack. Prepare dough through step 5.",
            "Place a medium mixing bowl in the sink and pour the canned tomatoes into the bowl, juices and all. Crush the tomatoes by hand. Spread about \u00be cup of the tomato sauce evenly over each pizza, leaving about 1 inch bare around the edges.",
            "If your mozzarella is packed in water, drain off the water and gently pat the mozzarella dry on a clean tea towel or paper towels. If you\u2019re working with large mozzarella balls, tear them into smaller 1-inch balls. Distribute the mozzarella over the pizza, concentrating it a bit more in the center of the pizza, as it will melt toward the edges.",
            "Bake pizzas individually on the top rack until the crust is golden and the cheese is just turning golden, about 10 to 12 minutes (or significantly less, if you\u2019re using a baking stone/steel\u2014keep an eye on it).",
            "Top each pizza generously with fresh basil, followed by a light back-and-forth drizzle of olive oil, a sprinkling of salt, and red pepper flakes, if you wish. Slice and enjoy. Leftover pizza will keep well in the refrigerator for up to 4 days."
        ],
        "recipeIngredient": [
            "1 batch easy whole wheat pizza dough or 1 pound store-bought pizza dough",
            "1 large can (28 ounces) whole San Marzano tomatoes",
            "12 ounces (dry weight) ovoline-type mozzarella or other fresh mozzarella balls, ideally water-packed",
            "Handful of fresh basil, thinly sliced plus small leaves",
            "Additional garnishes: Drizzle of extra-virgin olive oil, flaky sea salt or kosher salt and optional red pepper flakes"
        ],
        "author": "Cookie and Kate",
        "nutrition": {
            "servingSize": "One-fourth of one pizza",
            "calories": "353 calories",
            "sugarContent": "4.4 g",
            "sodiumContent": "702.5 mg",
            "fatContent": "14.7 g",
            "saturatedFatContent": "6.7 g",
            "transFatContent": "0 g",
            "carbohydrateContent": "36.7 g",
            "fiberContent": "7.3 g",
            "proteinContent": "18.5 g",
            "cholesterolContent": "36 mg"
        },
        "description": "",
        "url": "https://cookieandkate.com/margherita-pizza-recipe/",
        "image": "https://cookieandkate.com/images/2021/07/classic-margherita-pizza-225x225.jpg"
    }
}
                                                                                                                                                                                                                    
                                                                                                    

Get Recipe from URL - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/935/recipe+scraper+api/753/get+recipe+from+url?url=https://cookieandkate.com/margherita-pizza-recipe/' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Recipe Scraper API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

๐Ÿš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • โœ”๏ธŽ Only Pay for Successful Requests
  • โœ”๏ธŽ Free 7-Day Trial
  • โœ”๏ธŽ Multi-Language Support
  • โœ”๏ธŽ One API Key, All APIs.
  • โœ”๏ธŽ Intuitive Dashboard
  • โœ”๏ธŽ Comprehensive Error Handling
  • โœ”๏ธŽ Developer-Friendly Docs
  • โœ”๏ธŽ Postman Integration
  • โœ”๏ธŽ Secure HTTPS Connections
  • โœ”๏ธŽ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldโ€™s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected โ€” plus overage fees applied when a developer exceeds a planโ€™s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
1,946ms

Category:


Tags:


Related APIs