Qarta API (Layers API)
Overviewβ
Qarta is Quarticle's geospatial intelligence platform, providing APIs for location-based analysis, portfolio reporting, and risk assessment. The Layers API gives developers programmatic access to powerful geospatial capabilities including geocoding, spatial analysis, risk reporting, and point enrichment.
Key Capabilitiesβ
Qarta provides six core capability areas:
π Location Servicesβ
- Geocoding - Convert addresses to geographic coordinates (latitude/longitude)
- Reverse Geocoding - Convert coordinates to readable addresses
- Place Autocomplete - Search suggestions for address queries
π Portfolio Analysisβ
- Points Selection - Retrieve point data within geographic shapes (polygons)
- Buffer Selection - Retrieve data within circular buffer zones around a location
- Entries Selection - Retrieve detailed entry/record data with spatial filtering
- Accumulation Reports - Aggregate and summarize data by column across geographic areas
β οΈ Risk Reportingβ
- Point Risk - Generate detailed risk assessment PDFs/HTML for a specific location
- Point-Buffer Risk - Generate risk reports with accumulated data in buffer zones
π Point Enrichmentβ
- Single Point Enrichment - Enrich a single point with geospatial layer data
- Batch Enrichment - Enrich multiple points in one request with layer information
πΊοΈ Web Services (WMS/WFS)β
- Web Map Service (WMS) - Stream map tiles, legends, and feature information
- Web Feature Service (WFS) - Query geographic features using OGC standards
- π GeoServer Web Services Guide
π‘ Live Eventsβ
- Live Event Enrichment - Process and enrich live event data with geofencing filters
API Base URLβ
https://graph.quarticle.ro
Authenticationβ
All endpoints require API key authentication via the Authorization header:
Authorization: YOUR_API_KEY
See Authentication Guide for setup instructions.
API Versionsβ
Qarta supports two API versions:
| Version | Description | Filter Model |
|---|---|---|
| V1 | Original API with simple filters | {field, value} |
| V2 | Enhanced API with nested/recursive filters | Recursive filter trees |
V2 introduces a more powerful filter model that supports nested conditions. See V1 vs V2 Guide for migration details.
Output Formatsβ
Different endpoints support various output formats:
- JSON - Default response format (application/json)
- CSV - Tabular data export via
Accept: text/csvheader (entries/points endpoints) - PDF - Risk reports in PDF format
- HTML - Risk reports as HTML documents
- PNG - Map images and legend graphics (WMS)
- XML - WMS/WFS capabilities documents
- GeoJSON - Geographic features (native format for shape inputs)
Core Conceptsβ
Geographic Shapesβ
Qarta accepts geographic shapes as GeoJSON features:
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [[[lon, lat], [lon, lat], ...]]
},
"properties": {}
}
All coordinates must be in WGS84 (EPSG:4326) format: [longitude, latitude].
Buffersβ
Buffer zones are circular areas around a point. Specify by:
{
"type": "Point",
"coordinates": [lon, lat],
"radiuses": [1000, 5000, 10000] // meters
}
Filtersβ
Filters narrow down results based on data attributes:
V1 Format:
[
{"field": "oe_id", "value": "someValue"},
{"field": "property_type", "value": "residential"}
]
V2 Format (nested):
[
{
"field": "oe_id",
"value": "someValue",
"filters": [
{"field": "property_type", "value": "residential"}
]
}
]
The source Parameterβ
Most portfolio endpoints require a source parameter that identifies which data layer to query. A source represents a provisioned dataset in your account β for example, a specific insurance portfolio, property catalog, or risk dataset.
- Each account may have one or more sources provisioned
- The source value is a string identifier (e.g.,
"portfolio_01") - To discover available sources and their configuration, call the Provision endpoint:
curl -X GET "https://graph.quarticle.ro/graph/api/v1/reports/portfolio/provision" \
-H "Authorization: YOUR_API_KEY"
The response contains a provisioning object keyed by source name, with each source listing its available columns, filters, point configuration, and report capabilities:
{
"provisioning": {
"portfolio_01": {
"columns": [
{ "field": "insured_value", "type": "number" },
{ "field": "property_type", "type": "string" }
],
"filters": [
{ "field": "oe_id", "label": "Organization", "required": true, "values": ["org_1", "org_2"] }
],
"reports": {
"accumulation": { "enabled": true }
}
}
}
}
Use the source name as the source parameter in all subsequent portfolio, entries, and points API calls.
Quick Linksβ
- Getting Started - Authenticate and make your first API call
- V1 vs V2 Guide - Understand the differences between API versions
- CSV Export Guide - How to download data as CSV
- Spatial Data Guide - Working with GeoJSON and coordinates
- GeoServer Web Services - WMS and WFS OGC-compliant services
- Python SDK - Fully-typed Python client covering all endpoints
- Postman Collection - Pre-configured requests for testing all endpoints
- Use Cases - Real-world integration examples
Use Casesβ
Common Integration Patternsβ
Risk Assessment
- Get risk factors for properties using point risk endpoint
- Generate detailed PDF reports for client presentations
Portfolio Analysis
- Define geographic areas of interest
- Query points or entries within those areas
- Accumulate key metrics (count, sum, average)
- Export results as CSV for reporting
Location Intelligence
- Accept user addresses via autocomplete
- Geocode to coordinates
- Enrich with environmental layer data
- Retrieve relevant insights
Data Enrichment
- Load batch of locations
- Enrich points with layer data
- Aggregate risk metrics
- Export as CSV
See Use Cases section for detailed examples of each pattern.
Error Handlingβ
All errors return a consistent JSON format:
{
"errorMessage": {
"message": "Description of what went wrong"
}
}
Common HTTP status codes:
- 400 - Bad request (invalid parameters)
- 401 - Unauthorized (missing/invalid API key)
- 403 - Forbidden (shape parameter issues)
- 500 - Server error (internal problem)
See Error Guide for detailed error information.
Supportβ
- Postman Collection - Interactive documentation for all 36 endpoints
- Postman Collection - Pre-configured requests for testing
- GitHub Issues - Report bugs and request features
- Contact Support - Get help from our team
Next Stepsβ
- Get Started - Set up authentication and make your first call
- Explore Use Cases - See practical examples of common workflows
- Download Postman Collection - Test endpoints in Postman
- Review Postman Collection - Browse all 36 endpoints with detailed documentation