Python quickstart: nutrition data in 10 lines
You can search Dietly's public nutrition catalog with one GET request to https://api.getdietly.com/search. The response is a JSON array of foods, not an object with a results property. Install requests, run the example below, and you have a working nutrition lookup. The rest of this page turns that single call into something dependable: a client class, correct field handling, and retries that respect the rate limit.
Make your first request
The only required parameter is q (minimum two characters). Use limit to cap results between 1 and 50. Ten is plenty while you explore.
import requests







