RestaurantRadar
Export CSV

Data Sources

Configure API connectors · Set keys in .env.local on the server

DataSF works without a token — anonymous requests are rate-limited to ~1 req/s. Add DATASF_APP_TOKEN for higher limits. Register free at data.sfgov.org.
Connected Sources
SourceStatusEnv KeyEndpointDocs

DataSF Business Registrations

San Francisco open data — restaurant NAICS codes 722110–722410

AnonymousDATASF_APP_TOKENhttps://data.sfgov.org/resource/g8m3-pdis.jsonDocs →

DataSF Building Permits

SF building permits — restaurant/kitchen/hood keyword filter

AnonymousDATASF_APP_TOKENhttps://data.sfgov.org/resource/i98e-djp9.jsonDocs →

SF Health Permits

SF Department of Public Health food facility permits

PlannedSF_HEALTH_API_KEY

California ABC Licenses

Alcoholic Beverage Control — pending/active restaurant liquor licenses

Mock DataABC_API_KEYDocs →

Google Places API

Enrich leads with Maps listing status, rating, phone, website

Mock DataGOOGLE_PLACES_API_KEYDocs →

LLM Classifier (OpenAI / compatible)

AI classification — falls back to rule-based if key missing

OptionalOPENAI_API_KEY
All API keys are read from server environment variables. Never hard-code secrets in source code.
.env.local Example
# DataSF (free, no key required for basic access)
DATASF_APP_TOKEN=your_token_here

# Google Maps enrichment
GOOGLE_PLACES_API_KEY=your_key_here
GOOGLE_GEOCODING_API_KEY=your_key_here

# LLM Classification (optional — rule-based fallback)
OPENAI_API_KEY=your_key_here
LLM_MODEL=gpt-4o-mini

# Database (optional — uses in-memory mock if not set)
DATABASE_URL=postgresql://user:pass@host/db