The Ingredients Parser API allows developers to extract ingredient lists from any text. It can quickly and accurately identify and extract ingredient lists from a wide range of sources, including recipes, food labels, and product packaging, and it can return the ingredients in a structured format, making it easy to use in a variety of applications.
{"ingredients":[{"error_code":null,"input":"3 to 4 tbsp whole milk","quantity":"3","unit":"tablespoon","name":"whole milk","quantity_end":"4","size":null,"suggested_amount":null,"comments":null},{"error_code":null,"input":"8 large Granny Smith apples - peeled, cored and sliced","quantity":"8","unit":null,"name":"Granny Smith apples","quantity_end":null,"size":"large","suggested_amount":null,"comments":"peeled, cored and sliced"},{"error_code":null,"input":"1 can (10-ounce) tomato sauce","quantity":"1","unit":"can","name":"tomato sauce","quantity_end":null,"size":null,"suggested_amount":"10 ounce","comments":null}],"error":{"code":null,"message":null}}
curl --location --request POST 'https://zylalabs.com/api/946/ingredients+parser+api/765/parser' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"ingredients": [
"3 to 4 tbsp whole milk",
"8 large Granny Smith apples - peeled, cored and sliced",
"1 can (10-ounce) tomato sauce"
]
}'
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 Ingredients Parser API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
The Ingredients Parser API is a powerful tool that allows developers to easily extract ingredient lists from any text. Whether you're working on a recipe app, a nutrition tracking platform, or a grocery delivery service, this API can help you quickly and accurately identify and extract ingredient lists from a wide range of sources, including recipes, food labels, and product packaging.
One of the key benefits of this API is its ability to return ingredients in a structured format, making it easy to use in a variety of applications. The API can parse ingredients in multiple languages and can return them in a machine-readable format, allowing developers to easily integrate the data into their own systems.
This API also allows for the identification and extraction of allergens, this feature is particularly useful for food and nutrition-related apps that need to provide allergen information to users. The API can detect allergens based on the ingredient lists, and it can return this information in a structured format, making it easy for developers to integrate allergen information into their apps.
With its ability to extract ingredients from a wide range of sources and its support for multiple languages, the Ingredients Parser API is a powerful tool that can help developers create better food and nutrition-related apps and services. Whether you're working on a recipe app, a nutrition tracking platform, or a grocery delivery service, this API can help you quickly and accurately identify and extract ingredient lists, providing your users with the information they need to make better food choices.
Pass the ingredients list to the API and receive the ingredients parsed on the response. Simple as that.
Recipe websites and apps: The Ingredients Parser API can be integrated into recipe websites and apps to extract ingredient lists from recipe text, making it easy for users to see what ingredients they need to buy before they start cooking.
Nutrition tracking apps: The API can be used to extract ingredient lists from food labels and packaging, allowing users to easily track the nutritional information of the food they eat.
Meal planning apps: The API can be used to extract ingredient lists from recipes and food labels, making it easy for users to plan out their meals for the week and ensure they have all the necessary ingredients on hand.
Allergen detection apps: The API can be used to detect allergens based on ingredient lists, helping people with allergies or food sensitivities make safe food choices.
Grocery delivery apps: The API can be integrated into grocery delivery apps to extract ingredient lists from recipes and food labels, making it easy for users to order the ingredients they need for a specific dish.
Food research and analysis: The API can be used by researchers and food industry professionals to extract and analyze ingredient lists from a wide range of sources, providing valuable insights into food trends and consumer preferences.
Besides API call limitations per month, there are no other limitations.
The Ingredients Parser API returns structured data in JSON format, including parsed ingredient lists. Each ingredient entry contains details such as quantity, unit, name, size, and any additional comments related to preparation.
Key fields in the response data include "input" (original ingredient text), "quantity" (amount), "unit" (measurement unit), "name" (ingredient name), "size" (size descriptor), and "comments" (preparation notes).
The response data is organized as a JSON object with two main sections: "ingredients," which is an array of individual ingredient objects, and "error," which provides error details if applicable. Each ingredient object contains specific fields for easy access.
The API provides information on ingredient names, quantities, units of measurement, sizes, and preparation comments. It also identifies allergens based on the extracted ingredient lists, enhancing food safety for users.
Users can customize their requests by providing different ingredient strings to the API. The API automatically parses the input and returns structured data, allowing flexibility in the types of ingredient lists processed.
Typical use cases include integrating the API into recipe apps to display ingredient lists, nutrition tracking apps for analyzing food labels, and allergen detection apps to help users avoid harmful ingredients based on their allergies.
Data accuracy is maintained through a robust parsing algorithm that utilizes machine learning techniques. Continuous updates and improvements to the algorithm help ensure high-quality extraction of ingredient information from diverse sources.
Standard data patterns include variations in ingredient formats, such as quantities with ranges (e.g., "3 to 4 tbsp") and descriptors (e.g., "large Granny Smith apples"). The API effectively handles these variations to provide structured outputs.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund