Home Safety Hub API
Access the most comprehensive home safety provider database via our public REST API. Search by location, niche, certification, and price. Powered by Supabase with PostGIS for geo-spatial queries.
Authentication
All API requests require a public anon key passed in the
apikey header.
This key provides read-only access enforced by Row Level Security (RLS) policies.
Endpoints
/rpc/search_providers Full-text and geo-spatial search across all active providers. Supports filtering by niche, city, certifications, price range, and proximity to coordinates.
/providers List all active providers with optional filtering via PostgREST query parameters.
/niches Retrieve all service niches (radon, mold, asbestos, well water, foundation).
/city_pages Discover which cities have provider listings. Returns city metadata including provider counts, location coordinates, and niche coverage.
Rate Limits
Rate Limit
100
requests per minute
Max Results
100
per request
Access
Read
only (RLS enforced)