DietlyAPI questions
Where do I get an API key?
Create a free account in the API dashboard. Create a named API key in Settings (it is shown once), then send it as Authorization: Bearer YOUR_API_KEY. Public food reads also work anonymously at the Starter per-IP limit.
Why is my search result undefined?
GET /search returns a bare JSON array, not an object containing results. Use const results = await response.json() and handle [] as a normal no-match result.
What should I do with 401 and 429 responses?
For 401, verify the Bearer header and confirm the key was not rotated. For 429, read Retry-After, wait that many seconds, and use capped backoff. The integration guide covers the full error flow.
Can I use DietlyAPI commercially?
Pro and Scale include commercial API use. Starter is for non-commercial projects. Open Food Facts attribution is required wherever its data is publicly displayed on every plan; see the API Terms.
How do I manage or cancel an API subscription?
Open Plan & billing in the API dashboard, then use the secure Stripe portal to update payment details, download invoices or cancel. Access continues until the end of the current billing period.
What information should I include in a support request?
Include the endpoint, approximate UTC time, HTTP status and a redacted request example. Never send your full API key; its first six characters are enough to identify it. For incorrect food data, include the food ID or barcode and the field that appears wrong.
Frequently asked questions
How do I log a meal?
Tap the green + button on the diary, pick a meal slot, and search for your food. Tap a result to adjust the serving and log it. Foods you log often appear in the Eat it again row for one-tap logging.
Can I save a whole meal and log it again later?
Yes - open a meal slot in your diary, choose Save meal, and give it a name. Next time, find it under Saved Meals in food search and log all its items with one tap.
How do streaks work? What is a streak freeze?
Your streak grows for every day you track your food. Miss a day? Dietly automatically uses one streak freeze per week to bridge the gap, so an off day doesn't erase your progress.
How are my calorie and macro targets calculated?
Targets are based on your profile (age, sex, height, weight, activity level) and your goal - lose, maintain, or gain weight - including the timeline you chose during onboarding. You can update your profile anytime in Settings and targets recalculate automatically.
How do I manage or cancel my Dietly PRO subscription?
Subscriptions are managed by your app store. On iPhone: iOS Settings → your name → Subscriptions → Dietly. On Android: Play Store → Profile → Payments & subscriptions → Subscriptions. Cancelling stops the next renewal; you keep PRO until the end of the paid period.
Note: deleting the app does not cancel a subscription.
I reinstalled the app - how do I get my purchase back?
Open the paywall and tap Restore purchases. Make sure you're signed in with the same Apple Account or Google Account you used for the original purchase.
How do I get a refund?
Purchases are processed by your app store, so refunds go through them. Apple: visit reportaproblem.apple.com, sign in, and select the Dietly purchase. Google Play: use the Play Store refund process.
Where is my data stored? Can I export it?
Your diary, weights, and profile are stored locally on your device - no account needed, and we can't see them. Export a full copy anytime via Settings → Export data. See our Privacy Policy for details.
How do I turn reminders on or off?
Toggle smart notifications (meal nudges, evening calories-left check-in, and streak alerts) in the app's Settings. You can also manage them in your device's system settings under Notifications → Dietly.
The nutrition info for a food looks wrong.
Our database combines Open Food Facts, Dietly community submissions, and AI-estimated entries, but with millions of foods an occasional error slips through. Email us the food name and what looks off at [email protected] and we'll fix it.
Is Dietly medical advice?
No. Dietly provides general wellness information and estimates only - it's not a medical device and doesn't provide medical advice, diagnosis, or treatment. Please consult a healthcare professional before making significant dietary changes.