{"id":17602433,"url":"https://github.com/johnwmillr/spoonacularapi","last_synced_at":"2025-07-15T14:08:44.943Z","repository":{"id":57470233,"uuid":"143376413","full_name":"johnwmillr/SpoonacularAPI","owner":"johnwmillr","description":"🥄Python wrapper for the Spoonacular API 🥄","archived":false,"fork":false,"pushed_at":"2024-05-21T16:58:58.000Z","size":43,"stargazers_count":18,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T16:48:21.342Z","etag":null,"topics":["api-wrapper","food","ingredients","recipes","spoonacular","spoonacular-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnwmillr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-03T04:10:43.000Z","updated_at":"2025-04-02T11:17:48.000Z","dependencies_parsed_at":"2024-05-21T18:03:58.517Z","dependency_job_id":"39e0c14e-9ec4-487f-accf-6c51f2de44c1","html_url":"https://github.com/johnwmillr/SpoonacularAPI","commit_stats":{"total_commits":42,"total_committers":3,"mean_commits":14.0,"dds":0.09523809523809523,"last_synced_commit":"17cbbe4d47343ef475b11983d3713877212ac9f8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnwmillr%2FSpoonacularAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnwmillr%2FSpoonacularAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnwmillr%2FSpoonacularAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnwmillr%2FSpoonacularAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnwmillr","download_url":"https://codeload.github.com/johnwmillr/SpoonacularAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886324,"owners_count":21177643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","food","ingredients","recipes","spoonacular","spoonacular-api"],"created_at":"2024-10-22T13:08:17.115Z","updated_at":"2025-04-14T13:12:03.495Z","avatar_url":"https://github.com/johnwmillr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥄 spoonacular 🥄\n---\n[![Build Status](https://travis-ci.org/johnwmillr/SpoonacularAPI.svg?branch=master)](https://travis-ci.org/johnwmillr/SpoonacularAPI)\n[![PyPI version](https://badge.fury.io/py/spoonacular.svg)](https://pypi.org/project/spoonacular/)\n[![Python version](https://img.shields.io/badge/python-3.x-brightgreen.svg)](https://pypi.org/project/spoonacular/)\n\nWant to parse a list of [ingredients](https://rapidapi.com/spoonacular/api/Recipe%20-%20Food%20-%20Nutrition/functions/Parse%20Ingredients) within a recipe? Or are you looking for a random [food joke](https://rapidapi.com/spoonacular/api/Recipe%20-%20Food%20-%20Nutrition/functions/Get%20a%20Random%20Food%20Joke)? These are just two of many endpoints provided by the marvelous [Spoonacular](https://spoonacular.com/) food and recipes API. `spoonacular` provides a simple Python interface to this API.\n\n## Installation\nThe easiest way to start using this package is to install it via [PyPI](https://pypi.python.org/pypi/spoonacular) using `pip`:\n\n`$pip install spoonacular`\n\nThank you to [@sebbekarlsson](https://github.com/sebbekarlsson) for transferring ownership of the original PyPI package name.\n\nIf you'd prefer to clone and install the repository manually, follow these steps:\n\n1. Clone this repo:\n`$git clone https://github.com/johnwmillr/SpoonacularAPI.git`\n2. Enter the cloned directory:\n`$cd SpoonacularAPI`\n3. Install:\n    `$python setup.py install`\n\n## Usage\n\n### API Key\n\nYou'll need to sign up for an account on [RapidAPI](https://rapidapi.com/spoonacular/api/Recipe%20-%20Food%20-%20Nutrition/pricing) to start using `spoonacular`. Spoonacular is a freemium API, so you'll be able to start with 50 free calls a day. Registration requires a credit card number even for the free plan, because users are charged a small amount per call if they go over the daily limit. This package has a basic system in place to try and prevent overrage charges.\n\n### Examples\n\n```python\nimport spoonacular as sp\napi = sp.API(\"your_api_key_here\")\n\n# Parse an ingredient\nresponse = api.parse_ingredients(\"3.5 cups King Arthur flour\", servings=1)\ndata = response.json()\nprint(data[0]['name'])\n\u003e\u003e\u003e\"flour\"\n\n# Detect text for mentions of food\nresponse = api.detect_food_in_text(\"I really want a cheeseburger.\")\ndata = response.json()\nprint(data['annotations'][0])\n\u003e\u003e\u003e{\"annotation\": \"cheeseburger\", \"tag\":\"dish\"}\n\n# Get a random food joke\nresponse = api.get_a_random_food_joke()\ndata = response.json()\nprint(data['text'])\n\u003e\u003e\u003e\"People are a lot less judgy when you say you ate an 'avocado salad' instead of a bowl of guacamole.\"\n```\n\n## Documentation\n - [Spoonacular website](https://spoonacular.com/food-api)\n - [RapidAPI](https://rapidapi.com/spoonacular/api/Recipe%20-%20Food%20-%20Nutrition)\n - [DocScraper](https://github.com/johnwmillr/DocScraper)\n\n## Collaboration\nPlease feel free to collaborate with a pull request or by opening an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnwmillr%2Fspoonacularapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnwmillr%2Fspoonacularapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnwmillr%2Fspoonacularapi/lists"}