CartoDB-SQL-API/doc/API.md

23 lines
1.4 KiB
Markdown
Raw Normal View History

2015-10-22 17:43:14 +08:00
# SQL API
2016-05-26 06:43:30 +08:00
Carto's SQL API allows you to interact with your tables and data inside Carto, as if you were running SQL statements against a normal database. The database behind Carto is PostgreSQL so if you need help with specific SQL statements or you want to learn more about it, visit the [official documentation](http://www.postgresql.org/docs/9.1/static/sql.html).
2014-07-09 20:13:40 +08:00
There are two main situations in which you would want to use the SQL API:
2014-07-09 20:13:40 +08:00
- You want to **insert, update** or **delete** data. For example, you would like to insert a new column with a latitude and longitude data.
2014-07-09 20:13:40 +08:00
- You want to **select** data from public tables in order to use it on your website or in your app. For example, you need to find the 10 closest records to a particular location.
2014-07-09 20:13:40 +08:00
Remember that in order to access, read or modify data in private tables, you will need to authenticate your requests. When a table is public, you can do non-authenticated queries that read data, but you cannot write or modify data without authentication.
2015-10-22 17:43:14 +08:00
## Documentation
2015-10-22 19:25:47 +08:00
* [Authentication](authentication.md)
* [Making calls to the SQL API](making_calls.md)
* [Handling geospatial data](handling_geospatial_data.md)
* [Query optimizations](query_optimizations.md)
* [SQL Batch API](sql_batch_api.md)
2015-10-22 19:25:47 +08:00
* [API version number](version.md)
* [Libraries in different languages](libraries_support.md)
* [Other Tips and Questions](tips_and_tricks.md)