Firecrawl Alexandria

DataSF open data portal

San Francisco's open data portal (data.sf.gov, a Socrata site): typed Department of Building Inspection building permits (search by address, parcel, contractor, type, status and dates, poll for new and changed permits, read one permit with its contractors, architects and engineers, rank contractors by permits and valuation), plus search the dataset catalog, read a dataset's metadata and columns, query and count rows of any dataset with SoQL ($select/$where/$order/$group/$q and bare field filters, including spatial functions), and list the portal's category and tag facets.

1 Firecrawl tool uses DataSF open data portal

Try DataSF open data portal now.

Choose an example or ask your own question.

DataSF open data portal
TRY ASKING
1Request
string

Exact portal category as returned by `facets` (for example `Housing and Buildings`).

string

Opaque `next_cursor` from the previous page; send it with the same search parameters.

string

Look up one asset by 4x4 id (for example `3i4a-hu95`) or by a data.sf.gov / data.sfgov.org URL containing it. Unknown ids are not_found.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "data-sf-gov",
    capability: "open-data/datasets",
    options: {
      dataset_id: "3i4a-hu95",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from DataSF open data portal.

count
1
next_cursor
null
observed_at_ms
1790056196312
portal
data.sf.gov
query
null
source_url
https://api.us.socrata.com/api/catalog/v1?search_context=data.sf.gov&ids=3i4a-hu95&limit=20&offset=0
total_count
1
api_urlattributionattribution_linkcategorycolumnscreated_atdata_updated_atdescriptiondomaindownload_countidlicenselinkmetadata_updated_atnamepage_views_totalparent_idspermalinkprovenancetagstypeupdated_at
data.sf.gov/resource/3i4a-hu95.jsonCity and County of San Francisco Planning Departmentsfplanning.org/zoningGeographic Locations and Boundariesdata.sf.gov31093i4a-hu95Open Data Commons Public Domain Dedication and Licensedata.sf.gov/Geographic-Locations-and-Boundaries/Zoning-Map-Zoning-Districts/3i4a-hu95Zoning Map - Zoning Districts17577[]data.sf.gov/d/3i4a-hu95officialzoningdevelopmentplanningdataset

City and County of San Francisco, Department of Building Inspection, via DataSF. Open Data Commons Public Domain Dedication and License (PDDL). (https://data.sf.gov/d/i98e-djp9)

Quality, speed and cost, last 24 hours, across every agent call to DataSF open data portal through Alexandria.

Fewer than 20 calls in the last 24 hours, so there is not enough to report yet.

Browse the library
//
Get started
//
Give your agent DataSF open data portal.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options