{"x402Version":2,"name":"Archibase","description":"AI-ready architectural floor plan data: room adjacency graphs, vector schemas, metadata.","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","networks":[{"network":"eip155:8453","name":"Base"},{"network":"eip155:137","name":"Polygon"},{"network":"eip155:42161","name":"Arbitrum One"}],"facilitator":"cdp","paymentHeaders":{"request":["PAYMENT-SIGNATURE","X-PAYMENT"],"challenge":"PAYMENT-REQUIRED","receipt":"PAYMENT-RESPONSE"},"resources":[{"resource":"https://api.archibase.dev/api/v1/plans/search","method":"GET","description":"Search architectural floor plans (floorplans). Returns structured JSON records with room adjacency graphs and links to vector (geometry) schemas.","mimeType":"application/json","price":{"amount":"$0.02","currency":"USD","asset":"USDC"},"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","maxTimeoutSeconds":120,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","network":"eip155:137","amount":"20000","asset":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","maxTimeoutSeconds":120,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","network":"eip155:42161","amount":"20000","asset":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","maxTimeoutSeconds":120,"extra":{"name":"USD Coin","version":"2"}}],"input":{"type":"query","schema":{"type":"object","additionalProperties":false,"properties":{"bedrooms":{"type":"integer","minimum":0,"maximum":20,"description":"Exact bedroom count"},"m2_min":{"type":"number","minimum":0,"maximum":100000,"description":"Minimum net interior area in m² (inclusive)"},"m2_max":{"type":"number","minimum":0,"maximum":100000,"description":"Maximum net interior area in m² (inclusive)"},"sqft_min":{"type":"number","minimum":0,"maximum":1000000,"description":"Same filter in square feet (converted to m²; don't combine with m2_*)"},"sqft_max":{"type":"number","minimum":0,"maximum":1000000,"description":"Same filter in square feet (converted to m²; don't combine with m2_*)"},"style":{"type":"string","maxLength":64,"description":"Architectural style, e.g. \"modern\", \"industrial\""},"built":{"type":"boolean","description":"true = plans of constructed buildings only; false = unbuilt designs only"},"source":{"type":"string","enum":["synthetic","habs","commissioned","dataset","ai_generated"],"description":"Provenance: synthetic, habs, commissioned, dataset, ai_generated"},"building_type":{"type":"string","enum":["residential","office","retail","transport","government","sports","hospitality","healthcare","cultural","education","industrial","mixed","other"],"description":"What the building is used for, e.g. residential, office, retail, transport. Non-residential plans are one floor each"},"include_duplicates":{"type":"boolean","description":"Datasets repeat the same apartment on many floors. Default false returns one plan per layout (see layout_copies); true returns every copy"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Max results (default 25)"},"units":{"type":"string","enum":["metric","imperial"],"description":"Response units. metric (default): total_area_m2 and room areas in m². imperial: total_sqft and room areas in sqft."}}},"example":"?bedrooms=3&m2_min=140&m2_max=230&style=modern (add &units=imperial for sqft)"},"output":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"filters":{"type":"object"},"results":{"type":"array","items":{"type":"object","required":["plan_id","style","bedrooms","bathrooms","adjacency_graph","vector_schema_url","provenance"],"properties":{"plan_id":{"type":"string"},"style":{"type":"string"},"building_type":{"type":"string","enum":["residential","office","retail","transport","government","sports","hospitality","healthcare","cultural","education","industrial","mixed","other"],"description":"What the building is used for. Absent = residential"},"total_area_m2":{"type":"number","description":"Net interior area in m² (metric responses)"},"total_sqft":{"type":"integer","description":"Net interior area in sqft (units=imperial responses)"},"bedrooms":{"type":"integer","description":"Labelled bedrooms plus rooms inferred as bedrooms"},"bedrooms_inferred":{"type":"integer","description":"How many of bedrooms are inferred (rooms the source didn't label; see node inferred_use). Absent = 0"},"bathrooms":{"type":"number"},"adjacency_graph":{"type":"object","description":"Rooms as nodes, connections (door/opening/...) as undirected edges","properties":{"units":{"type":"string","enum":["m2","sqft"],"description":"Unit of node areas"},"nodes":{"type":"array","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string","description":"Room type from the source. \"room\" = a private room the source did not label"},"area":{"type":"number"},"windows":{"type":"integer","description":"Number of windows in this room, when known"},"stairwell":{"type":"boolean","description":"true when this space is a stairwell opening rather than floor: it has no area and is excluded from total_area_m2"},"inferred_use":{"type":"string","enum":["bedroom","entry","unknown"],"description":"Only on type \"room\": our inference, from windows, size and connections"}}}},"edges":{"type":"array","items":{"type":"object","required":["from","to","connection"],"properties":{"from":{"type":"string"},"to":{"type":"string"},"connection":{"type":"string"}}}}}},"layout_copies":{"type":"integer","description":"How many plans in the catalogue share this exact layout (rooms, sizes, connections), this one included. 1 = unique"},"vector_schema_url":{"type":["string","null"],"format":"uri","description":"Paid URL for this plan's vector geometry (see the vector resource); null when none exists"},"provenance":{"type":"object","description":"Where the plan came from and the licence it is sold under","required":["source","built","license"],"properties":{"source":{"type":"string","enum":["synthetic","habs","commissioned","dataset","ai_generated"]},"built":{"type":"boolean","description":"Whether the design was actually constructed"},"license":{"type":"string","enum":["public-domain","CC0-1.0","CC-BY-4.0","HK-CSDI-TOU","owned"]},"author":{"type":"string"},"source_url":{"type":"string","format":"uri"},"attribution":{"type":"string","description":"Credit line you must reproduce when the licence requires it"}}}}}}}}}},{"resource":"https://api.archibase.dev/api/v1/plans/:plan_id/vector","method":"GET","description":"Vector geometry for one floor plan (floorplan): room polygons (ids match the adjacency graph), doors and windows, in metres (or feet with units=imperial).","mimeType":"application/json","price":{"amount":"$0.1","currency":"USD","asset":"USDC"},"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"100000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","maxTimeoutSeconds":120,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","network":"eip155:137","amount":"100000","asset":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","maxTimeoutSeconds":120,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","network":"eip155:42161","amount":"100000","asset":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","payTo":"0xcCEc3a1e65Cad6A6b62BC6bcE8b4284bD9D7815f","maxTimeoutSeconds":120,"extra":{"name":"USD Coin","version":"2"}}],"input":{"type":"path+query","pathParams":{"plan_id":"a plan_id from search results; follow vector_schema_url when it is not null"},"schema":{"type":"object","additionalProperties":false,"properties":{"units":{"type":"string","enum":["metric","imperial"],"description":"metric (default): coordinates in metres; imperial: feet"}}}},"output":{"schema":{"type":"object","required":["plan_id","units","crs","rooms","doors","windows"],"properties":{"plan_id":{"type":"string"},"units":{"type":"string","enum":["m","ft"]},"crs":{"type":"string","description":"Plan-local coordinates: +x east, +y north"},"attribution":{"type":"string","description":"Licence credit you must reproduce (e.g. CC BY)"},"rooms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Matches an adjacency_graph node id"},"type":{"type":"string"},"level":{"type":"integer"},"polygon":{"type":"array","description":"Polygons; each is [outer ring, ...holes]; each ring is [[x, y], ...] closed","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}}}},"doors":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"level":{"type":"integer"},"polygon":{"type":"array","description":"Polygons; each is [outer ring, ...holes]; each ring is [[x, y], ...] closed","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}}}},"windows":{"type":"array","items":{"type":"object","properties":{"level":{"type":"integer"},"polygon":{"type":"array","description":"Polygons; each is [outer ring, ...holes]; each ring is [[x, y], ...] closed","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}}}},"stairs":{"type":"array","description":"Internal stairs, on each level they appear: the flight where they start, the stairwell opening where they arrive","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"integer"},"to_level":{"type":"integer","description":"Set where the stair starts: the level it climbs to (footprint counts as floor area)"},"from_level":{"type":"integer","description":"Set where the stair arrives: the level it comes from (polygon = stairwell opening, excluded from the room's area)"},"room":{"type":"string","description":"Graph node id of the room the stair stands in"},"risers":{"type":"integer"},"start":{"type":"array","items":{"type":"number"},"description":"Bottom of the flight [x, y]; with end, gives the direction up"},"end":{"type":"array","items":{"type":"number"},"description":"Top of the flight [x, y]"},"run":{"type":"number","description":"Horizontal length of the flight (file units)"},"rise":{"type":"number","description":"Total height climbed (file units)"},"polygon":{"type":"array","description":"The stair zone; individual treads are not modelled","items":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}}}}}}}}]}