Skip to main content
All providers

DataSF

Public recordsUS

data.sf.gov

San Francisco's open data portal.

Capabilities (12)

GET /v1/data/datasf/air-traffic-passengers1 credit

Returns 200 monthly SFO passenger counts broken out by operating and published airline, IATA code, domestic/international geo summary and region, enplaned/deplaned/in-transit activity type, price category, terminal and boarding area.

operating_airline?published_airline?geo_summary?geo_region?activity_type_code?terminal?activity_period?
GET /v1/data/datasf/building-permits1 credit

Returns the 200 most recently filed PermitSF records with record number and type, status detail, submitted/issued/completed/expiration dates, review durations in calendar and business days, parcel number and street address.

recordtype?status_detail?permit_issued?postalcode?streetname?parcel_number?
GET /v1/data/datasf/business-locations1 credit

Returns the 200 most recently registered San Francisco business locations with ownership name, DBA name, full business address, registration certificate number, start and end dates and parking/transient-occupancy tax flags.

city?state?business_zip?dba_name?ownership_name?parking_tax?
GET /v1/data/datasf/dataset-metadata1 credit

Returns the full Socrata view record for one dataset: title, description, attribution, licence, category, tags, update cadence, row count and every column with its field name, data type and description.

dataset
GET /v1/data/datasf/datasets1 credit

Searches the City and County of San Francisco open-data catalog and returns matching assets with their four-by-four dataset id, name, description, category, tags, owner, update time and row count.

q?limit?offset?only?categories?tags?order?names?attribution?provenance?
GET /v1/data/datasf/eviction-notices1 credit

Returns the 200 most recent eviction notices filed with the San Francisco Rent Board, each with address, ZIP, filing date and a boolean per statutory ground — non-payment, breach, nuisance, owner move-in, Ellis Act withdrawal, demolition, capital improvement and the rest.

zip?city?non_payment?owner_move_in?ellis_act_withdrawal?nuisance?breach?
GET /v1/data/datasf/fire-incidents1 credit

Returns the 200 most recent San Francisco Fire Department incident records with incident number, address, alarm/arrival/close timestamps, battalion and station area, units and personnel committed, alarm count, primary situation, property use and casualty counts.

battalion?station_area?neighborhood_district?primary_situation?supervisor_district?zipcode?city?
GET /v1/data/datasf/police-incidents1 credit

Returns the 200 most recent SFPD incident reports from 2018 onward, each with incident datetime, category and subcategory, description, resolution, report type, police district and neighborhood.

incident_category?incident_subcategory?police_district?resolution?report_type_description?incident_year?incident_day_of_week?filed_online?
GET /v1/data/datasf/query1 credit

Runs an arbitrary SoQL statement against one DataSF dataset and returns the result rows — SELECT, WHERE, GROUP BY, ORDER BY, LIMIT and OFFSET are all expressed inside the statement.

datasetsoql
GET /v1/data/datasf/rows1 credit

Returns the first 200 rows of any DataSF dataset as a JSON array of objects keyed by column field name.

dataset
GET /v1/data/datasf/service-requests-3111 credit

Returns the 200 most recent SF311 service requests, each with request id, opened and closed timestamps, status, service name and subtype, responsible agency, address, neighborhood, supervisor district and latitude/longitude.

service_name?service_subtype?agency_responsible?status_description?analysis_neighborhood?police_district?supervisor_district?source?
GET /v1/data/datasf/traffic-crashes1 credit

Returns the 200 most recent San Francisco traffic collisions that caused injury, with collision datetime, primary and secondary street, severity, collision type, number killed and injured, weather, lighting, road condition, Vision Zero cause description, neighborhood and coordinates.

collision_severity?type_of_collision?analysis_neighborhood?police_district?supervisor_district?accident_year?lighting?weather_1?

Licence

DataSF terms of use: public data provided as-is for any lawful purpose.

https://datasf.org/opendata/terms-of-use/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: DataSF

Cache: up to 3600s