{"openapi":"3.1.0","info":{"title":"Agent Data Platform","version":"0.1.0","description":"Cleaned, queryable Australian open government data for AI agents. Paid operations use x402 (USDC, no signup). Every response includes an attribution object that must be kept."},"servers":[{"url":"https://agent-data-platform.langtools.workers.dev"}],"externalDocs":{"description":"Agent-oriented docs","url":"https://agent-data-platform.langtools.workers.dev/llms.txt"},"tags":[{"name":"nsw-da","description":"NSW Development Applications. Development applications lodged through the NSW Planning Portal: status, dates, cost, dwellings, development types and geocoded addresses. Synced from the source several times a day."}],"paths":{"/v1/nsw-da/summary":{"get":{"operationId":"nsw_da_summary","summary":"Free counts by status, application type and council; also lists valid council names","tags":["nsw-da"],"parameters":[{"name":"council","in":"query","required":false,"description":"Council name, partial case-insensitive match (see by_council in /summary)","schema":{"type":"string"},"example":"Parramatta"},{"name":"status","in":"query","required":false,"description":"Application status, exact match","schema":{"type":"string"},"example":"Determined"},{"name":"application_type","in":"query","required":false,"description":"Application type, exact match","schema":{"type":"string"},"example":"Development Application"}],"responses":{"200":{"description":"Data with attribution: { data, meta, attribution }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataEnvelope"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/nsw-da/applications":{"get":{"operationId":"nsw_da_search_applications","summary":"Search development applications, newest lodgement first. status, application_type, development_type and min_cost require council, suburb or postcode","tags":["nsw-da"],"parameters":[{"name":"council","in":"query","required":false,"description":"Council name, partial case-insensitive match (see by_council in /summary)","schema":{"type":"string"},"example":"Parramatta"},{"name":"suburb","in":"query","required":false,"description":"Suburb of the primary address, case-insensitive","schema":{"type":"string"},"example":"ERMINGTON"},{"name":"postcode","in":"query","required":false,"description":"4-digit postcode of the primary address","schema":{"type":"string"},"example":"2115"},{"name":"lodged_from","in":"query","required":false,"description":"Lodgement date lower bound, yyyy-mm-dd","schema":{"type":"string"},"example":"2026-01-01"},{"name":"lodged_to","in":"query","required":false,"description":"Lodgement date upper bound, yyyy-mm-dd","schema":{"type":"string"},"example":"2026-06-30"},{"name":"status","in":"query","required":false,"description":"Application status, exact match","schema":{"type":"string"},"example":"Determined"},{"name":"application_type","in":"query","required":false,"description":"Application type, exact match","schema":{"type":"string"},"example":"Development Application"},{"name":"development_type","in":"query","required":false,"description":"Development type, partial match","schema":{"type":"string"},"example":"dwelling"},{"name":"min_cost","in":"query","required":false,"description":"Minimum estimated cost of development in AUD","schema":{"type":"string"},"example":"1000000"},{"name":"limit","in":"query","required":false,"description":"Page size, 1-100 (default 20)","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"description":"Number of results to skip, 0-1000 (default 0)","schema":{"type":"string"}}],"responses":{"200":{"description":"Data with attribution: { data, meta, attribution }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataEnvelope"},"example":{"data":[{"pan":"PAN-624302","council_application_number":"DA/178/2026","application_type":"Development Application","status":"Determined","council_name":"City of Parramatta Council","cost_of_development":91300,"cost_is_placeholder":0,"new_dwellings":null,"storeys":null,"lodgement_date":"2026-03-30","determination_date":"2026-08-28","primary_suburb":"ERMINGTON","primary_postcode":"2115","primary_lat":-33.81028812,"primary_lng":151.063792616,"source_last_updated":"2026-09-01T01:03:49.900","primary_address":"5A ATKINS ROAD ERMINGTON 2115","development_types":["Demolition","Subdivision","Supporting Development"]}],"meta":{"limit":20,"offset":0,"has_more":true},"attribution":{"publisher":"NSW Department of Planning, Housing and Infrastructure (NSW Planning Portal)","licence":"CC BY 4.0","licenceUrl":"https://creativecommons.org/licenses/by/4.0/","text":"Contains data from the NSW Planning Portal Online DA Data API, © State of New South Wales, licensed under CC BY 4.0."}}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required (x402). Payment requirements are in the PAYMENT-REQUIRED header; retry with a PAYMENT-SIGNATURE header."},"503":{"description":"Payments not configured on this deployment"}},"x-x402":{"price":"$0.01","scheme":"exact","network":"eip155:8453","payTo":"0x2D6F7D1e969a3C6218599B348EbBBDdc7f583948"}}},"/v1/nsw-da/applications/{pan}":{"get":{"operationId":"nsw_da_get_application","summary":"Full detail of one application by Planning Portal application number (e.g. PAN-624302)","tags":["nsw-da"],"parameters":[{"name":"pan","in":"path","required":true,"description":"Planning Portal application number","schema":{"type":"string"},"example":"PAN-624302"}],"responses":{"200":{"description":"Data with attribution: { data, meta, attribution }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataEnvelope"},"example":{"data":{"pan":"PAN-624302","council_application_number":"DA/178/2026","application_type":"Development Application","status":"Determined","council_name":"City of Parramatta Council","cost_of_development":91300,"cost_is_placeholder":0,"new_dwellings":null,"storeys":null,"lodgement_date":"2026-03-30","determination_date":"2026-08-28","primary_suburb":"ERMINGTON","primary_postcode":"2115","primary_lat":-33.81028812,"primary_lng":151.063792616,"source_last_updated":"2026-09-01T01:03:49.900","primary_address":"5A ATKINS ROAD ERMINGTON 2115","development_types":[{"type_raw":"Demolition","type_normalised":"demolition"},{"type_raw":"Subdivision","type_normalised":"subdivision"},{"type_raw":"Supporting Development","type_normalised":"supporting development"}],"modification_of":null,"existing_lots":1,"proposed_lots":2,"subdivision_types":["Torrens Title"],"determination_authority":"Council","submission_date":"2026-03-23","exhibition_start_date":null,"exhibition_end_date":null,"epi_variation_flag":"N","vpa_flag":"N","sic_flag":"N","locations":[{"seq":0,"full_address":"5A ATKINS ROAD ERMINGTON 2115","street_number1":"5A","street_number2":null,"street_name":"ATKINS","street_type":"ROAD","suburb":"ERMINGTON","postcode":"2115","lat":-33.81028812,"lng":151.063792616,"lots":[{"lot":"4","planLabel":"DP610141"}]}]},"meta":{},"attribution":{"publisher":"NSW Department of Planning, Housing and Infrastructure (NSW Planning Portal)","licence":"CC BY 4.0","licenceUrl":"https://creativecommons.org/licenses/by/4.0/","text":"Contains data from the NSW Planning Portal Online DA Data API, © State of New South Wales, licensed under CC BY 4.0."}}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required (x402). Payment requirements are in the PAYMENT-REQUIRED header; retry with a PAYMENT-SIGNATURE header."},"503":{"description":"Payments not configured on this deployment"}},"x-x402":{"price":"$0.005","scheme":"exact","network":"eip155:8453","payTo":"0x2D6F7D1e969a3C6218599B348EbBBDdc7f583948"}}},"/v1/nsw-da/nearby":{"get":{"operationId":"nsw_da_nearby_applications","summary":"Applications within a radius (max 2000 m) of a coordinate, nearest first","tags":["nsw-da"],"parameters":[{"name":"lat","in":"query","required":true,"description":"Latitude (WGS84)","schema":{"type":"string"},"example":"-33.81"},{"name":"lng","in":"query","required":true,"description":"Longitude (WGS84)","schema":{"type":"string"},"example":"151.06"},{"name":"radius_m","in":"query","required":false,"description":"Radius in metres, 1-2000 (default 500)","schema":{"type":"string"}},{"name":"lodged_from","in":"query","required":false,"description":"Lodgement date lower bound, yyyy-mm-dd","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Max results, 1-100 (default 20)","schema":{"type":"string"}}],"responses":{"200":{"description":"Data with attribution: { data, meta, attribution }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataEnvelope"},"example":{"data":[{"pan":"PAN-624302","council_application_number":"DA/178/2026","application_type":"Development Application","status":"Determined","council_name":"City of Parramatta Council","cost_of_development":91300,"cost_is_placeholder":0,"new_dwellings":null,"storeys":null,"lodgement_date":"2026-03-30","determination_date":"2026-08-28","primary_suburb":"ERMINGTON","primary_postcode":"2115","primary_lat":-33.81028812,"primary_lng":151.063792616,"source_last_updated":"2026-09-01T01:03:49.900","primary_address":"5A ATKINS ROAD ERMINGTON 2115","development_types":["Demolition","Subdivision","Supporting Development"],"distance_m":352}],"meta":{"lat":-33.81,"lng":151.06,"radius_m":500,"count":1},"attribution":{"publisher":"NSW Department of Planning, Housing and Infrastructure (NSW Planning Portal)","licence":"CC BY 4.0","licenceUrl":"https://creativecommons.org/licenses/by/4.0/","text":"Contains data from the NSW Planning Portal Online DA Data API, © State of New South Wales, licensed under CC BY 4.0."}}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required (x402). Payment requirements are in the PAYMENT-REQUIRED header; retry with a PAYMENT-SIGNATURE header."},"503":{"description":"Payments not configured on this deployment"}},"x-x402":{"price":"$0.02","scheme":"exact","network":"eip155:8453","payTo":"0x2D6F7D1e969a3C6218599B348EbBBDdc7f583948"}}}},"components":{"schemas":{"DataEnvelope":{"type":"object","required":["data","meta","attribution"],"properties":{"data":{},"meta":{"type":"object"},"attribution":{"type":"object","properties":{"publisher":{"type":"string"},"licence":{"type":"string"},"licenceUrl":{"type":"string"},"text":{"type":"string"}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}