Cityweft REST API
The built world,
one request away.
Send a polygon, get the buildings, roads, terrain and trees inside it as meshes with metadata, ready for your renderer, your analysis or your database. The same data and pipeline that run the Cityweft platform.
- Worldwide coverage
- Metadata on every object
curl "https://api.cityweft.com/v1/context" \
-H "Authorization: Bearer $CITYWEFT_KEY" \
-H "Content-Type: application/json" \
-d '{
"polygon": [[46.948, 7.4474], [46.9502, 7.4531],
[46.9468, 7.4566], [46.948, 7.4474]],
"settings": { "geometry": ["buildings", "topography"] }
}'{
"geometry": [
{ "type": "buildings", "geometryType": "meshes",
"meshes": [{
"vertices": [12.4, 0, -8.1, 12.4, 21.5, -8.1, …],
"descriptor": {
"address": "Marktgasse 18, 3011 Bern",
"yearBuilt": 1764,
"buildingHeight": 21.5,
"heightBasis": "measured",
"buildingRoofType": "gabled",
"buildingFacadeMaterial": "sandstone",
"heritage": true
}
}, … ] },
{ "type": "topography", "geometryType": "elevationMaps", … }
]
}One response,
the whole city.
Ask for the layers you need. Each arrives as meshes in local metres with a descriptor on every object, so your product can colour, filter and query the city, not only draw it.
- Buildings carry more than 25 fields: height, levels, roof shape and material, use, year built and address where the source has them.
- Every height says where it came from: measured, mapped, derived or estimated.
- Roads come with lanes, width and material; trees with height and crown diameter.
- Terrain as an elevation map, about 94% lighter than a mesh, or as a mesh when you need one.
Your axes,
your coordinates.
Engines want Y up, CAD wants Z. GIS wants lines, renderers want meshes. A few settings shape the response to the code that reads it.
{
"polygon": [ … ],
"settings": {
"geometry": ["buildings", "surface"], // only the layers you need
"upAxis": "Z", // Y for game engines, Z for CAD
"crs": "local", // local metres, UTM or EPSG:3857
"surfaceTypes": ["centerlines"], // roads as lines, for routing and GIS
"treeSource": "hybrid", // standard, hybrid or canopy
"indexedMeshes": true, // shared vertices, lighter JSON
"cropScene": true // cut exactly to your polygon
}
}Your users' data,
through the same API.
Upload aerial scans and 3D models from inside your product. Our pipeline turns point clouds into buildings with real roof shapes, trees and terrain, keeps models whole, and both arrive in the next scene you request.
- 1
Create a dataset
A point cloud (LAS, LAZ, COPC) or a model (Rhino, SketchUp, IFC, Revit, glTF and more).
POST /v1/datasets - 2
Upload in parts
Multipart uploads you can resume, for scans of any size your plan allows.
POST /v1/datasets/{id}/uploads/{idx}/parts - 3
Process
The status moves from queued to processing to ready.
POST /v1/datasets/{id}/process - 4
Use it in a scene
Name the dataset in the next request to lay it over the city or replace the city with it.
POST /v1/context
POST /v1/datasets
{ "kind": "pointcloud", "name": "Harbour survey", "files": [ … ] }
POST /v1/context
{
"polygon": [ … ],
"settings": {
"userData": {
"mode": "overlay",
"datasets": [{ "id": "<dataset id>" }]
}
}
}Dataset status
- uploading
- queued
- processing
- ready
POST /v1/coverageCheck a site before anything is uploaded: area, country and how many buildings and trees we have there. Free, up to 100 km².
Built for production.
The controls an integration needs once real users are on it.
Usage limits per key
Give each key a budget in km², then pause requests or only get notified. Alerts at 50, 75 and 90 percent.
Errors you can act on
Clear codes for a missing key, an empty balance or a spent budget, and a Retry-After header when we need a moment.
Attributions included
Every response lists the sources of the data it contains, ready to show in your product.
A key for testing
Build and test against a development key, then ship with a production one.
Graphisoft built a design-intelligence platform on the Cityweft API.
Architects start their projects with the real site already in place, buildings and terrain included, and skip the manual data prep.
Read the full storyBuilt for
- Intelligent design platformsGenerative, parametric and layout-AI products.
- Real estate & PropTechListings, valuation, and market analytics.
- Risk & climate analysisFlood, fire, and exposure at building scale.
- Telecom & energyNetwork planning and solar potential on real buildings.
Make your first
request today.
Create a key on the platform, follow the quickstart, and talk to the engineers behind the data when you are ready to scale.
Shipping our data inside a product? Licensing for platforms