# SQL Query API

Query Spice Cloud data with federated SQL over the Apache Arrow Flight API or the HTTP API, and find the production endpoints.

The SQL Query API provides powerful capabilities for querying data managed by the Spice.ai Cloud Data Warehouse and connected external data sources using federated SQL queries. Results can be fetched through either the high-performance Apache Arrow Flight API or a standard HTTP API.

## Production Query Endpoints

> **Note**
>
> `flight.spiceai.io` and `data.spiceai.io` reach projects in `us-east-1` only. A project in another region, or on a dedicated cluster, has its own HTTP and Flight hosts. Find them in the project's **Settings** > **Endpoints**, under **Data-Plane**.

### Apache Arrow Flight API

For production use, leverage the high-performance Apache Arrow Flight API, which is optimized for large-scale data workloads. The Spice SDKs default to querying via Arrow Flight.

• Endpoint: `grpc+tls://flight.spiceai.io`

• For additional details, refer to the [Apache Arrow Flight API documentation](https://spice.ai/docs/cloud/api/sql-query/apache-arrow-flight-api).

### HTTP API

The SQL Query API is also accessible via HTTP, offering standard integration for web applications.

• Core Endpoint: `https://data.spiceai.io/v1/sql`

• For more details, consult the [HTTP SQL API documentation](https://spice.ai/docs/cloud/api/sql-query/http-api).
