Skip to main content
All providers

DataSF

Open data portalsUS

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?

Response example

The shape of data from datasf/air-traffic-passengers (SFO air traffic passenger statistics). A sample, not live data.

JSON
[
  {
    "activity_period": "202608",
    "activity_period_start_date": "2026-08-01T00:00:00.000",
    "operating_airline": "United Airlines",
    "operating_airline_iata_code": "UA",
    "published_airline": "United Airlines",
    "published_airline_iata_code": "UA",
    "geo_summary": "Domestic",
    "geo_region": "US",
    "activity_type_code": "Thru / Transit",
    "price_category_code": "Other",
    "terminal": "Terminal 3",
    "boarding_area": "F",
    "passenger_count": "2548",
    "data_as_of": "2026-09-20T13:00:18.000",
    "data_loaded_at": "2026-10-20T15:05:41.000"
  },
  {
    "activity_period": "202608",
    "activity_period_start_date": "2026-08-01T00:00:00.000",
    "operating_airline": "United Airlines",
    "operating_airline_iata_code": "UA",
    "published_airline": "United Airlines",
    "published_airline_iata_code": "UA",
    "geo_summary": "International",
    "geo_region": "Asia",
    "activity_type_code": "Deplaned",
    "price_category_code": "Other",
    "terminal": "International",
    "boarding_area": "A",
    "passenger_count": "1178",
    "data_as_of": "2026-09-20T13:00:18.000",
    "data_loaded_at": "2026-10-20T15:05:41.000"
  },
  "… 198 more items"
]

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • SFO air traffic passenger statistics

    Use DataSF (datasf) from fastCRW Pergamon, capability "SFO air traffic passenger statistics" (air-traffic-passengers). You want monthly passenger volumes through San Francisco International Airport by airline, region or terminal. Example options: operating_airline=United Airlines, published_airline=United Airlines, geo_summary=International. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datasf" and capability "air-traffic-passengers". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Building and construction permits

    Use DataSF (datasf) from fastCRW Pergamon, capability "Building and construction permits" (building-permits). You want San Francisco construction, electrical or plumbing permit filings and how long they took to issue. Example options: recordtype=Electrical permit (standard), status_detail=Active - Issued, permit_issued=Building Permit. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datasf" and capability "building-permits". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Registered business locations

    Use DataSF (datasf) from fastCRW Pergamon, capability "Registered business locations" (business-locations). You want San Francisco business registrations — who is operating where, when they opened and whether they have closed. Example options: city=San Francisco, state=CA, business_zip=94110. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datasf" and capability "business-locations". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset metadata and schema

    Use DataSF (datasf) from fastCRW Pergamon, capability "Dataset metadata and schema" (dataset-metadata). You have a four-by-four id and need the exact column field names and types before writing a SoQL filter or query. Example options: dataset=vw6y-z8j6. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datasf" and capability "dataset-metadata". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

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