Geocode your data and perform trade area analysis.

This component is still under support but it will not be further developed. We don’t recommend starting new projects with it as it will eventually become deprecated. Instead, learn more about our new APIs here

What is Data Services API?

The CARTO Data Services API offers a set of location based services that can be used to programatically customize subsets of data for your visualizations.

To understand the fundamentals of Data Services API, read the guides. To view the source code, browse the open-source repository in GitHub and contribute. Otherwise, read the full reference API, or find different support options.

Guides

Quick reference guides for learning how to use Data Services API features.

Reference

Browse the interactive API documentation to search for specific Data Services API methods, arguments, and sample code that can be used to build your applications.

Check Full Reference API
1
2
3
4
5
6
7
8
9
10
# Geocoding
curl -X GET \
https://username.carto.com/api/v2/sql?q=SELECT count(*) FROM cities

# Isoline
https://{username}.carto.com/api/v2/sql?q=INSERT INTO {table} (the_geom) SELECT  the_geom FROM cdb_isodistance('POINT(-3.70568 40.42028)'::geometry, 'car', ARRAY[300, 600, 900]::integer[])&api_key={api_key}

# Demographic
https://{username}.carto.com/api/v2/sql?q=SELECT * FROM
OBS_GetDemographicSnapshot(CDB_LatLng(40.80, -73.960))

Support

Get help or learn about known issues.