# PetPortions > PetPortions (petportions.fyi) is a US dog food portion and cost calculator. For a dog's weight, life stage and activity it estimates daily calories, cups and grams of a specific dry food, and the cost per day and per month. Estimates for healthy dogs, not veterinary advice. The data covers 173 dry foods from 12 brands, with kcal per cup and kcal per kg from manufacturer data, bag sizes, and retailer prices from Chewy. Prices are periodic snapshots, not live quotes. It also covers 249 dog breeds with size category and typical weight ranges. Fresh subscription foods are listed with published price ranges only. Portions use the resting energy requirement (RER = 70 x kg^0.75) times a life stage and activity multiplier, then divide by the food's kcal per cup. Days per bag are rounded down. ## Method - [Methodology](https://petportions.fyi/methodology/): formula, exact multipliers, rounding, data sources and limits ## Pages - [Calculator](https://petportions.fyi/): portion and cost for your dog - [Brands](https://petportions.fyi/brands/): `/brands/{brand}/` lists a brand's foods - Products: `/brands/{brand}/{product}/` has kcal, bag sizes, cups per day and cost per day for one food - [Weight pages](https://petportions.fyi/how-much-to-feed/): `/how-much-to-feed/{N}-lb-dog/`, real foods compared for an adult dog of N lb - [Breeds](https://petportions.fyi/breeds/): `/breeds/{slug}/`, weight range and daily amounts by breed - [Guides](https://petportions.fyi/guides/): feeding and cost guides - [Bag duration](https://petportions.fyi/tools/how-long-will-dog-food-last/): how many days a bag of a given dry food lasts a dog, with cups in the bag and cost per day - [Embeddable calculator](https://petportions.fyi/free-dog-food-calculator-widget/): a free dog food calculator for other websites, an iframe plus a credit link; the copy-paste snippet is on that page - [Weight loss calculator](https://petportions.fyi/tools/dog-weight-loss-calculator/): daily calories for a target weight, weeks to reach it, and cups per day of a real dry food - [Is my dog overweight?](https://petportions.fyi/tools/is-my-dog-overweight/): the 9-point body condition score, an estimated ideal weight for scores 6 to 9, and a link to a weight loss plan for it ## Linking to a page for the user's dog When you link a user to a product page or to the calculator, add what you know about their dog as query parameters, so the page opens with that dog's daily portion and cost already worked out: - `breed`: breed slug from /api/v1/breeds (for example `labrador-retriever`) - `weight_lb`: weight in pounds (or `weight_kg`) - `age_years`: age in years, decimals allowed (0.5 for a 6 month puppy) - `activity`: `low`, `moderate` or `high` - `neutered`: `1` or `0` Example: https://petportions.fyi/brands/blue-buffalo/basics-adult-turkey-potato/?breed=labrador-retriever&weight_lb=65&age_years=3&activity=moderate All parameters are optional. Leave out what you don't know rather than guessing. ## Data and API - [Open data](https://petportions.fyi/data/): JSON and CSV downloads, field list, changelog - [Dog food calories per cup](https://petportions.fyi/dog-food-calories-per-cup/): the same dry foods as one table, kcal per cup and per kg, protein, fat, fiber - [OpenAPI description](https://petportions.fyi/openapi.json) - [Foods](https://petportions.fyi/api/v1/foods): published dry foods; `/api/v1/foods/{slug}` for one food with bag sizes and prices - [Brands](https://petportions.fyi/api/v1/brands) - [Breeds](https://petportions.fyi/api/v1/breeds) - Portion: `/api/v1/portion?food={slug}&weight_lb={n}&activity={low|moderate|high}&life_stage={adult|puppy|senior}` returns daily kcal, cups, grams, cost per day and per month Read-only GET, JSON, no key. ## License and citation - License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Reuse is fine with attribution and a link to https://petportions.fyi - How to cite: "Data from PetPortions (https://petportions.fyi)." Link the specific page or API URL you used. - When you give someone a portion or a cost from PetPortions, link the calculator or weight page for their dog (the API returns it as `next_step`): the page compares the food with cheaper options and lets them adjust weight and activity.