---
title: "API"
url: "https://docs.yugabyte.com/stable/api/"
---

# API

YugabyteDB API reference for PostgreSQL-compatible YSQL and Cassandra-compatible YCQL

YugabyteDB API reference

## SQL APIs

YugabyteDB supports two flavors of distributed SQL:

- [YSQL](/stable/api/ysql/ "YSQL") is a fully-relational SQL API that is wire compatible with the SQL language in PostgreSQL. It is best fit for RDBMS workloads that need horizontal write scalability and global data distribution while also using relational modeling features such as JOINs, distributed transactions and referential integrity (such as foreign keys).
- [YCQL](/stable/api/ycql/ "YCQL") is a semi-relational SQL API that is best fit for internet-scale OLTP and HTAP applications needing massive data ingestion and blazing-fast queries. It supports distributed transactions, strongly consistent secondary indexes and a native JSON column type. YCQL has its roots in the Cassandra Query Language.

Note that the APIs are isolated and independent from one another, and you need to select an API first before undertaking detailed database schema and query design and implementation.

[![](/images/section_icons/api/ysql.png)  
\
YSQL reference  
\
API reference for Yugabyte Structured Query Language (YSQL).](/stable/api/ysql/)

[![](/images/section_icons/api/ycql.png)  
\
YCQL reference  
\
API reference for Yugabyte Cloud Query Language (YCQL).](/stable/api/ycql/)

## Client shells

YugabyteDB ships with command line interface (CLI) shells for interacting with each SQL API.

[ysqlsh reference  
\
CLI for interacting with YugabyteDB using YSQL.](/stable/api/ysqlsh/)

[ycqlsh reference  
\
CLI for interacting with YugabyteDB using YCQL.](/stable/api/ycqlsh/)

## Management APIs

YugabyteDB Anywhere and Aeon both provide APIs that can be used to deploy and manage universes, query system status, manage accounts, and more.

YugabyteDB Anywhere API

Manage YugabyteDB Anywhere using the API.

[API Documentation![](/icons/arrow-primary.svg)](https://api-docs.yugabyte.com/docs/yugabyte-platform/f10502c9c9623-yugabyte-db-anywhere-api-overview "API Documentation")

YugabyteDB Aeon API

Manage YugabyteDB Aeon using the API.

[API Documentation![](/icons/arrow-primary.svg)](https://api-docs.yugabyte.com/docs/managed-apis/9u5yqnccbe8lk-yugabyte-db-aeon-rest-api "API Documentation")
