{"openapi":"3.1.0","info":{"title":"Permit Scouter","description":"Daily building permits for Tampa Bay, Southwest and Central Florida. Paid routes use x402 (USDC on Base). MCP tools at /mcp.","version":"0.1.0","x-guidance":"Daily building permits from Tampa Bay, Southwest and Central Florida: City of Tampa, City of Clearwater, City of North Port, and unincorporated Hillsborough, Pinellas, Pasco, Manatee, Lee, Charlotte and Osceola counties. Roofing and HVAC first; other trades are tagged too. Start free: GET /coverage lists the sources (use a `source` value as `jurisdiction`) and date ranges, GET /sample shows three real records. Then GET /permits/search with trade (e.g. roofing, hvac), jurisdiction, since/until (YYYY-MM-DD), min_value, zip or city; up to 25 results, page with offset. In each result, `permit_key` is source:permit_number, for GET /permits/{source}/{permit_number}; its `contractor_key` opens GET /contractors/{contractor_key}/history; its `address` and `zip` open GET /properties/history. Paid routes answer 402 with an x402 v2 challenge (exact scheme, USDC on Base); pay and retry. A 400 (bad input) or 404 (nothing found) is never charged. Homeowner names are never included. The same data is available as MCP tools at /mcp.","contact":{"name":"Permit Scouter","email":"permitscouter@gmail.com","url":"https://permitscouter.com"}},"paths":{"/":{"get":{"summary":"Service info: prices, network, free routes","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Index  Get"}}}}},"security":[]}},"/health":{"get":{"summary":"API health and data freshness (free)","description":"Answers whenever the API is up. 'collection' says whether the data is fresh.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}},"security":[]}},"/coverage":{"get":{"summary":"Cities and counties covered, with permit counts and date ranges (free)","operationId":"coverage_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Coverage Coverage Get"}}}}},"security":[]}},"/sample":{"get":{"summary":"Three recent permits, free, to check the data before paying","operationId":"sample_sample_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sample Sample Get"}}}}},"security":[]}},"/permits/search":{"get":{"summary":"Search building permits in Tampa Bay, Southwest and Central Florida","operationId":"search_permits_search_get","parameters":[{"name":"jurisdiction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"}},{"name":"trade","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of: roofing, hvac, solar, pool, electrical, plumbing, windows_doors, new_construction, remodel, demolition","title":"Trade"},"description":"One of: roofing, hvac, solar, pool, electrical, plumbing, windows_doors, new_construction, remodel, demolition"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"min_value","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Value"}},{"name":"zip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"}},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"include_applications","in":"query","required":false,"schema":{"type":"boolean","description":"Also return temporary applications not yet issued a permit number","default":false,"title":"Include Applications"},"description":"Also return temporary applications not yet issued a permit number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Success (charged)","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"permit_key":{"type":"string","description":"source:permit_number"},"jurisdiction":{"type":"string","description":"Display name, e.g. City of Tampa"},"permit_number":{"type":"string"},"record_type":{"type":["string","null"]},"status":{"type":["string","null"]},"description":{"type":["string","null"]},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"applied_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"issued_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"valuation":{"type":["number","null"],"description":"Job value in USD"},"contractor_name":{"type":["string","null"]},"contractor_license":{"type":["string","null"]},"contractor_key":{"type":["string","null"],"description":"Use with /contractors/{contractor_key}/history"},"trades":{"type":"array","items":{"type":"string","enum":["roofing","hvac","solar","pool","electrical","plumbing","windows_doors","new_construction","remodel","demolition"]}},"source_url":{"type":["string","null"]},"first_seen":{"type":["string","null"]},"last_changed":{"type":["string","null"]}},"required":["permit_key","jurisdiction","permit_number","trades"]}},"next_offset":{"type":["integer","null"]}},"required":["total","results","next_offset"]},"example":{"total":1,"results":[{"permit_key":"tampa:BLD-26-0000001","jurisdiction":"City of Tampa","permit_number":"BLD-26-0000001","record_type":"Residential Roofing","status":"Issued","description":"Re-roof, shingle","address":"100 EXAMPLE ST","city":"TAMPA","zip":"33607","applied_date":"2026-10-15","issued_date":"2026-10-16","valuation":14500.0,"contractor_name":"EXAMPLE ROOFING LLC","contractor_license":"CCC0000000","contractor_key":"ccc0000000","trades":["roofing"]}],"next_offset":null}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header ($0.02 in USDC on eip155:8453). Pay and retry with PAYMENT-SIGNATURE."},"400":{"description":"Bad input (not charged)"}},"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}]}}},"/permits/{source}/{permit_number}":{"get":{"summary":"One permit with its full status history (e.g. /permits/tampa/BLD-26-0000001)","operationId":"permit_detail_permits__source___permit_number__get","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source","enum":["tampa","pinellas","hillsborough","pasco","manatee","clearwater","lee","charlotte","northport","osceola"]},"description":"Area key from GET /coverage (the part of permit_key before the colon)","example":"tampa"},{"name":"permit_number","in":"path","required":true,"schema":{"type":"string","title":"Permit Number","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"description":"The permit's number (the part of permit_key after the colon)","example":"BLD-26-0000001"}],"responses":{"200":{"description":"Success (charged)","content":{"application/json":{"schema":{"type":"object","properties":{"permit":{"type":"object","properties":{"permit_key":{"type":"string","description":"source:permit_number"},"jurisdiction":{"type":"string","description":"Display name, e.g. City of Tampa"},"permit_number":{"type":"string"},"record_type":{"type":["string","null"]},"status":{"type":["string","null"]},"description":{"type":["string","null"]},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"applied_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"issued_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"valuation":{"type":["number","null"],"description":"Job value in USD"},"contractor_name":{"type":["string","null"]},"contractor_license":{"type":["string","null"]},"contractor_key":{"type":["string","null"],"description":"Use with /contractors/{contractor_key}/history"},"trades":{"type":"array","items":{"type":"string","enum":["roofing","hvac","solar","pool","electrical","plumbing","windows_doors","new_construction","remodel","demolition"]}},"source_url":{"type":["string","null"]},"first_seen":{"type":["string","null"]},"last_changed":{"type":["string","null"]}},"required":["permit_key","jurisdiction","permit_number","trades"]},"history":{"type":"array","items":{"type":"object","properties":{"seen_at":{"type":"string"},"status":{"type":["string","null"]},"valuation":{"type":["number","null"]},"issued_date":{"type":["string","null"]}}}}},"required":["permit","history"]},"example":{"permit":{"permit_key":"tampa:BLD-26-0000001","jurisdiction":"City of Tampa","permit_number":"BLD-26-0000001","record_type":"Residential Roofing","status":"Issued","description":"Re-roof, shingle","address":"100 EXAMPLE ST","city":"TAMPA","zip":"33607","applied_date":"2026-10-15","issued_date":"2026-10-16","valuation":14500.0,"contractor_name":"EXAMPLE ROOFING LLC","contractor_license":"CCC0000000","contractor_key":"ccc0000000","trades":["roofing"]},"history":[{"seen_at":"2026-10-16T10:30:00Z","status":"Issued","valuation":14500.0,"issued_date":"2026-10-16"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header ($0.01 in USDC on eip155:8453). Pay and retry with PAYMENT-SIGNATURE."},"400":{"description":"Bad input (not charged)"},"404":{"description":"Not found (not charged)"}},"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}]}}},"/properties/history":{"get":{"summary":"Every permit at one street address","operationId":"property_history_properties_history_get","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","title":"Address"}},{"name":"zip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"}}],"responses":{"200":{"description":"Success (charged)","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"},"count":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"permit_key":{"type":"string","description":"source:permit_number"},"jurisdiction":{"type":"string","description":"Display name, e.g. City of Tampa"},"permit_number":{"type":"string"},"record_type":{"type":["string","null"]},"status":{"type":["string","null"]},"description":{"type":["string","null"]},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"applied_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"issued_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"valuation":{"type":["number","null"],"description":"Job value in USD"},"contractor_name":{"type":["string","null"]},"contractor_license":{"type":["string","null"]},"contractor_key":{"type":["string","null"],"description":"Use with /contractors/{contractor_key}/history"},"trades":{"type":"array","items":{"type":"string","enum":["roofing","hvac","solar","pool","electrical","plumbing","windows_doors","new_construction","remodel","demolition"]}},"source_url":{"type":["string","null"]},"first_seen":{"type":["string","null"]},"last_changed":{"type":["string","null"]}},"required":["permit_key","jurisdiction","permit_number","trades"]}}},"required":["address","count","results"]},"example":{"address":"100 EXAMPLE ST","count":1,"results":[{"permit_key":"tampa:BLD-26-0000001","jurisdiction":"City of Tampa","permit_number":"BLD-26-0000001","record_type":"Residential Roofing","status":"Issued","description":"Re-roof, shingle","address":"100 EXAMPLE ST","city":"TAMPA","zip":"33607","applied_date":"2026-10-15","issued_date":"2026-10-16","valuation":14500.0,"contractor_name":"EXAMPLE ROOFING LLC","contractor_license":"CCC0000000","contractor_key":"ccc0000000","trades":["roofing"]}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header ($0.05 in USDC on eip155:8453). Pay and retry with PAYMENT-SIGNATURE."},"400":{"description":"Bad input (not charged)"}},"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}]}}},"/contractors/{contractor_key}/history":{"get":{"summary":"Every permit one contractor has pulled","operationId":"contractor_history_contractors__contractor_key__history_get","parameters":[{"name":"contractor_key","in":"path","required":true,"schema":{"type":"string","title":"Contractor Key","pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,79}$"},"description":"contractor_key from a permit, usually the licence number in lower case","example":"ccc0000000"}],"responses":{"200":{"description":"Success (charged)","content":{"application/json":{"schema":{"type":"object","properties":{"contractor_key":{"type":"string"},"contractor_name":{"type":["string","null"]},"permit_count":{"type":"integer"},"total_valuation":{"type":["number","null"]},"first_permit":{"type":["string","null"]},"latest_permit":{"type":["string","null"]},"by_trade":{"type":"object","additionalProperties":{"type":"integer"}},"results":{"type":"array","items":{"type":"object","properties":{"permit_key":{"type":"string","description":"source:permit_number"},"jurisdiction":{"type":"string","description":"Display name, e.g. City of Tampa"},"permit_number":{"type":"string"},"record_type":{"type":["string","null"]},"status":{"type":["string","null"]},"description":{"type":["string","null"]},"address":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"applied_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"issued_date":{"type":["string","null"],"description":"YYYY-MM-DD"},"valuation":{"type":["number","null"],"description":"Job value in USD"},"contractor_name":{"type":["string","null"]},"contractor_license":{"type":["string","null"]},"contractor_key":{"type":["string","null"],"description":"Use with /contractors/{contractor_key}/history"},"trades":{"type":"array","items":{"type":"string","enum":["roofing","hvac","solar","pool","electrical","plumbing","windows_doors","new_construction","remodel","demolition"]}},"source_url":{"type":["string","null"]},"first_seen":{"type":["string","null"]},"last_changed":{"type":["string","null"]}},"required":["permit_key","jurisdiction","permit_number","trades"]}}},"required":["contractor_key","permit_count","by_trade","results"]},"example":{"contractor_key":"ccc0000000","contractor_name":"EXAMPLE ROOFING LLC","permit_count":1,"total_valuation":14500.0,"first_permit":"2026-10-15","latest_permit":"2026-10-15","by_trade":{"roofing":1},"results":[{"permit_key":"tampa:BLD-26-0000001","jurisdiction":"City of Tampa","permit_number":"BLD-26-0000001","record_type":"Residential Roofing","status":"Issued","description":"Re-roof, shingle","address":"100 EXAMPLE ST","city":"TAMPA","zip":"33607","applied_date":"2026-10-15","issued_date":"2026-10-16","valuation":14500.0,"contractor_name":"EXAMPLE ROOFING LLC","contractor_license":"CCC0000000","contractor_key":"ccc0000000","trades":["roofing"]}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header ($0.10 in USDC on eip155:8453). Pay and retry with PAYMENT-SIGNATURE."},"400":{"description":"Bad input (not charged)"},"404":{"description":"Not found (not charged)"}},"security":[],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.10"},"protocols":[{"x402":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}]}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"servers":[{"url":"https://api.permitscouter.com"}]}