FoodAwarebeta

FoodAware Public API

Version 1 · Base URL: https://foodaware.io/api/v1

Authentication

All endpoints require a Bearer token:

Authorization: Bearer fa_live_<your_key>

Generate keys at foodaware.io/settings/api-keys. Free tier allows 1,000 requests per day.

GET /v1/places

Search and list food establishments.

GET /api/v1/places?q=chipotle&city=chicago&page=1&per_page=20

Query parameters:

ParameterTypeDescription
qstringName search (case-insensitive partial match)
citystringFilter by city
pageintegerPage number (default: 1)
per_pageintegerResults per page (max 100, default 20)
{
  "data": [
    {
      "id": "uuid",
      "name": "Chipotle Mexican Grill",
      "address": "123 Main St",
      "city": "Chicago",
      "state": "IL",
      "lat": 41.878,
      "lng": -87.629,
      "category": "restaurant"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 20,
    "total": 1,
    "total_pages": 1
  }
}

GET /v1/places/:id

Full detail for a single place with optional includes.

GET /api/v1/places/uuid?include_menu=true&include_inspections=true&include_supply=true
ParameterTypeDescription
include_menubooleanAttach menu items and recent price changes
include_inspectionsbooleanAttach 10 most recent inspection events
include_recallsbooleanAttach relevant recall events
include_supplybooleanAttach supply chain / shipment events

GET /v1/alerts

Query the alert feed for status changes, delays, recalls, and price events.

GET /api/v1/alerts?type=price&place_id=uuid&since=2025-01-01T00:00:00Z
ParameterTypeDescription
place_iduuidFilter to a single establishment
typestringdelay · price · inspection · recall · closed
sinceISO 8601Return alerts after this timestamp
untilISO 8601Return alerts before this timestamp
page / per_pageintegerPagination (max 100 per page)

GET /v1/supply

Supply chain event feed — shipments, inventory, commodity shortages, and origin tracking. This endpoint powers Wagyu provenance tracking, import delay alerts, and upstream supplier intelligence. Currently in early access.

GET /api/v1/supply?commodity=wagyu_a5&origin_country=JP&status=in_transit
ParameterTypeDescription
commoditystringe.g. wagyu_a5 · chicken · produce
origin_countrystringISO 2-letter country code
statusstringin_transit · at_customs · delivered · delayed
place_iduuidFilter by restaurant or distributor

Early access: supply write access requires a partner integration. Email api@foodaware.io to connect your logistics provider (Flexport, NLBC, USDA FSIS, etc.).

Rate limits

Rate limit headers are returned on every response:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 847
X-RateLimit-Reset: 1735689600   # Unix timestamp

Exceeding the limit returns HTTP 429. The window resets every 24 hours.

Error format

{
  "error": "Descriptive message here."
}
ParameterTypeDescription
401Missing or invalid API key
403Key lacks required scope
404Resource not found
429Rate limit exceeded
500Internal server error