Product

Integrations & API

Build Forkcast into your own apps and automations. Use one API key to create budget-friendly meal plans, discover supported stores and ingredients, and retrieve grocery prices.

Get your API key

API access requires an active Forkcast Plus plan. Create and revoke keys in your profile; each secret is shown only once, so store it somewhere safe.

Manage API keys →

Base URL

All public API requests use this base URL and return JSON.

https://forkcast.ca/api/public/v1

Authentication

Send your key in the Authorization header on every request. Keep it on your server or in a private automation; never expose it in public code.

Authorization: Bearer YOUR_API_KEY

You can also send the key in an X-API-Key header.

Endpoints

GET/me

Check that your key works and see the endpoints available to it.

curl https://forkcast.ca/api/public/v1/me \
  -H "Authorization: Bearer YOUR_API_KEY"

GET/stores

List supported grocery stores, their region, currency and live-price availability.

  • region — optional: us or ca. Omit it to list every store.
curl "https://forkcast.ca/api/public/v1/stores?region=ca" \
  -H "Authorization: Bearer YOUR_API_KEY"

GET/ingredients

List ingredient IDs, names, categories, units, package sizes and tags. Use these IDs when requesting prices.

curl https://forkcast.ca/api/public/v1/ingredients \
  -H "Authorization: Bearer YOUR_API_KEY"

GET/prices

Retrieve package prices for up to 200 ingredients at one store and postal code.

  • store — a store key returned by the stores endpoint.
  • zip — a ZIP or postal code used to find cached store prices.
  • items — optional comma-separated ingredient IDs. Omit it to retrieve all ingredients.

Each result is marked live or estimate. This endpoint reads cached prices; it does not start a new store-price search.

curl "https://forkcast.ca/api/public/v1/prices?store=walmart&zip=10001&items=eggs,milk" \
  -H "Authorization: Bearer YOUR_API_KEY"

POST/plan

Run the same planner used by Forkcast. The response includes the selected meals, weekly total, realistic minimum and a priced grocery list.

Send a JSON body with settings. Optional pantry and recentPlans arrays let you exclude items you own and reduce repetition from recent weeks.

curl -X POST https://forkcast.ca/api/public/v1/plan \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "settings": {
      "store": "walmart",
      "zip": "10001",
      "budget": 115,
      "adults": 2,
      "kids": 0,
      "diet": "none",
      "meals": { "lunch": true, "dinner": true }
    },
    "pantry": ["rice", "olive_oil"]
  }'

Planner requests create a fresh result and never change your saved Forkcast meal plan or grocery list.

Errors

Errors return a JSON object with an error message.

  • 400 — the request body, store or parameters are invalid.
  • 401 — the API key is missing, invalid or revoked.
  • 402 — the key owner needs an active Forkcast Plus plan.

Need a hand?

Tell us what you are building and where your integration is stuck.

Contact Forkcast support →