Data tools / FX, rates, news, weather and knowledge
Use when you need building or construction permits in San Francisco, New York City or Seattle: permit id, type, description, status, address, cost and issue date from each city's own open-data portal, filtered by permit type text, street and issue date range, newest first, with the dataset and licence named. $0.03 per call (USDC or USDT). Or pay by stablecoin transfer with a one-time quote: see /pay.
&payfirst=1 to the call, send exactly the amount it names (about $0.03 plus a few millionths of a dollar), then repeat the call with "e=<token>. A transfer without a quote token is never matched to a call; see /pay.curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/v1/permits?city=sf&permit_type=kitchen&date_range=2024-01-01%2C2026-06-21&maxItems=5'| Parameter | Required | What it is |
|---|---|---|
city | yes | sf, nyc or seattle |
permit_type | no | Text match on permit type or description, e.g. kitchen |
address | no | Text match on the street, e.g. Market |
date_range | no | Issued from,to: YYYY-MM-DD,YYYY-MM-DD |
maxItems | no | 1..50 |
Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.
Top-level fields of the JSON answer, read from the example below:
count (number)items (list): type, source, permitId, permitType, description, status, address, city, estimatedCost, issuedDatequery (object): city, permit_type, address, date_range, maxItemssource (object): name, portal, dataset_id, dataset_url, request_url, licence, licence_urlas_of (string)query_time_ms (number)cached (boolean)note (string){
"count": 2,
"items": [
{
"type": "permit",
"source": "sf",
"permitId": "202606042504",
"permitType": "otc alterations permit",
"description": "reconfigure hall bath layout, relocate kitchen, add 1 bathroom, wic, laundry room, office on 2nd fl without structural alteration",
"status": "issued",
"address": "2320 15th Av",
"city": "San Francisco",
"estimatedCost": 50000,
"issuedDate": "2026-06-18",
"filedDate": "2026-06-04",
"extra": {
"revised_cost": "110000.0",
"zipcode": "94116"
}
}
],
"query": {
"city": "sf",
"permit_type": "kitchen",
"address": null,
"date_range": "2024-01-01,2026-06-21",
"maxItems": 2
},
"source": {
"name": "Building Permits (DataSF, Department of Building Inspection)",
"portal": "https://data.sf.gov",
"dataset_id": "i98e-djp9",
"dataset_url": "https://data.sf.gov/d/i98e-djp9",
"request_url": "https://data.sf.gov/resource/i98e-djp9.json?%24select=permit_number%2Cpermit_type_definition%2Cdescription%2Cstatus%2Cestimated_cost%2Cissued_date%2Cfiled_date%2Cstreet_number%2Cstreet_number_suffix%2Cstreet_name%2Cstreet_suffix%2Crevised_cost%2Czipcode&%24where=issued_date+IS+NOT+NULL+AND+issued_date+between+%272024-01-01T00%3A00%3A00%27+and+%272026-06-21T23%3A59%3A59.999%27+AND+%28upper%28permit_type_definition%29+like+%27%25KITCHEN%25%27+OR+upper%28description%29+like+%27%25KITCHEN%25%27%29&%24order=issued_date+DESC%2Cpermit_number+DESC&%24limit=2",
"licence": "Open Data Commons Public Domain Dedication and License (PDDL)",
"licence_url": "https://opendatacommons.org/licenses/pddl/1-0/"
},
"as_of": "2026-12-01T17:43:10.512Z",
"query_time_ms": 5207,
"cached": false,
"note": "Rows as each city's open-data portal holds them, read at as_of (no app token), newest issued first; text filters are case-insensitive. SF lists a permit once per address. Not affiliated with any city or with Tyler Technologies (Socrata)."
}Free sample, no payment: /v1/permits/sample. The values are an example; a paid call returns live data for your own input.
Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/fx-rates-news-weather-data, tool building_permits. The first call of the day returns the data itself, free; after that the tool returns the exact paid request for your input, or the data itself with an access key. The core tools are also on https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp, and any tool can be called there by name.
Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools · Trust and limits