DDDailyDog/ API docs

DailyDog API · v1.1.11

NYC enforcement records, over one JSON API

Restaurant inspection grades and violation histories, building violations with real penalty dollars, compliance deadlines, and contractor enforcement dockets — assembled from official city records and scored the same way DailyDog's own reports are. 37 endpoints, one envelope, integer-cent money.

What it's for

Three record systems, one key. Each card lists the endpoints that serve it.

Buildings

Owners, managers, lenders, brokers, insurers, proptech

  • Screen a portfolio by BBL for open violations and unpaid judgments
  • Pull a building's open DOB/ECB records with real penalty dollars
  • Track its compliance calendar — facade, boiler, gas piping, LL97

Restaurants

Delivery & review apps, food-safety teams, landlords, journalists

  • Show the posted grade and full inspection history for any CAMIS
  • Monitor grades and closures; map vermin citations city-wide
  • Browse every establishment by borough, cuisine, grade, or risk

Contractors

GCs, owners vetting a hire, insurers, compliance teams

  • Vet a company's OATH docket before you sign — defaults, fines due
  • Monitor your own summonses for hearing dates and reopen windows
  • Rank the city's contractors by unpaid fines or ticket volume

Quickstart

The request on the right runs as-is: it uses the public test key, which answers from the fixture city (200 requests per IP per day, fixture data only). Swap in your live key and the same code returns real city records.

  1. 1 · Get a key

    Keys are commissioned, not self-serve: tell us what you're building and your expected volume, and we come back with pricing same-day. Your key then appears — with live usage — in Portal → Developers. The plaintext is shown once (we store only a SHA-256 fingerprint), along with a paired dd_test_ key for development and CI. Keep keys server-side — never ship them in a browser or app bundle.

  2. 2 · Make your first call

    GET /api/v1/restaurants/search — search restaurants. Send the key as a bearer token. Prefer a live console? Every endpoint in the reference has one.

  3. 3 · Read the response

    Successes wrap the payload in { "data": … }; paginated lists add meta.nextCursor. Errors are { "error": { "code", "message" } } with a real HTTP status. Check the X-RateLimit-Remainingheader to watch your quota. The fields you'll use first:

    camisDOHMH permit number — the establishment's id.
    gradePosted grade: A|B|C|Z|P|N (Z/P = pending, N = not yet graded).
    scoreLatest inspection score — LOWER is better; 0–13 is the A band.
    riskLevelLOW | MODERATE | HIGH | SEVERE.
    riskScore0–100, higher is worse.
    openViolationsItems open right now (latest-cycle citations).
    lastInspectedAtMost recent inspection.

    Every field, for every object: glossary.

request · cURL
curl "https://www.dailydog.ai/api/v1/restaurants/search?q=diner" \
  -H "Authorization: Bearer dd_test_d23d83e5ee04c87b1fee30680033c31aa0ef7985"
response (fixture city)
{
  "data": [
    {
      "camis": "90000005",
      "name": "MIDNIGHT DINER",
      "address": "700 EXAMPLE CONCOURSE",
      "borough": "Bronx",
      "zip": "10451",
      "cuisine": "American",
      "grade": "C",
      "score": 38,
      "closed": false,
      "riskLevel": "HIGH",
      "riskScore": 58,
      "lastInspectedAt": "2026-06-05",
      "latitude": 40.827,
      "longitude": -73.925,
      "openViolations": 3
    }
  ]
}

Authentication

Base URL https://www.dailydog.ai/api — every path starts /v1. Send the key on every request, either way:

either header works
Authorization: Bearer dd_live_<40 hex chars>
X-Api-Key: dd_live_<40 hex chars>
  • dd_live_ keys read real city records; dd_test_ keys ride the same auth, envelopes, and pagination but answer from the fixture city. GET /v1/me reports which one you hold.
  • A missing, malformed, or revoked key gets 401 unauthorized. Lost or leaked a key? Tell us — we revoke it and issue a new one (plaintext is never recoverable).
  • No key needed for: /v1/health, /v1/openapi.json.
  • Community-report and profile endpoints also identify the end user's device with an X-Device-Id header (a per-install id; we store only a salted hash). Required on 6 endpoints — the reference marks each.

Rate limits, errors & conventions

Data sources & freshness

Every fact comes from an official New York City record system — mostly NYC Open Data. Most endpoints query the city live on each request, so a response is as current as the city's own publication (agencies typically post daily, often days after the event). Scores, risk levels, and deadline math are DailyDog's; the underlying facts are the city's.

Restaurants

Profiles, inspections, violations, nearby, and browse query the city's dataset live on every request. Name search reads a mirror of the inspection dataset re-synced daily (falls back to live). The city republishes inspection results roughly daily, typically a few days after the inspection.

City feeds

Live queries against the city dataset on every request.

Meta & stats

Cuisines and violation codes are cached 24 hours; stats 6 hours; boroughs are a static list.

Properties

Every single-lot call queries the city live (at most 1,000 rows per dataset per lot). Batch profiles are cached 6 hours. Deadlines are computed live from the building's current profile and records.

Contractors

Live queries on every request. A company's docket covers up to 25 spellings and 2,000 summonses.

Community reports

Real time — reads reflect writes immediately.

  • DailyDog community reports & profiles — User-submitted; never city data

Versioning & changelog

/v1is stable: changes are additive only (new endpoints, optional params, response fields), so ignore keys you don't recognize. A breaking change would ship as /v2 alongside v1. Full policy.

  • v1.1.11 · August 7, 2026 Erasure keeps its promise — and an audit copy
  • v1.1.10 · August 7, 2026 Erase your profile
  • v1.1.9 · August 5, 2026 Report caps ride the device

Full changelog →

Support

Questions, a new key, more headroom, or a record that looks wrong? Contact the API team. Include the endpoint, the time (UTC), and the response body — never your full key (its first 12 characters, e.g. dd_live_a1b2, identify it). Live status: the health endpoint (also the dot in the header).