---
schema_version: "1"
id: 296dbec61173c8521bf3ac48d2d85ae1647f8800044d40f922111bab679f5860
title: Query V1 and V2 API
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-query-guide/references/data-cloud-query-api-reference/query-services/c360a-api-queryservices-legacy.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/c360a-api-queryservices-legacy.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 53b5020e93852b68408c307e4d42bba1fef8e79dc33982704da6261b023f6841
products:
  - Data 360 Query Guide
  - Data 360 Developer Documentation
---
# Query V1 and V2 API

Data 360 Query services supports multiple versions of the Data 360 Query API. This page describes the legacy versions of the Data 360 Query API.

**important:** For the best query experience, use query services through the [Data 360 Connect REST API](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/c360a-api-queryservices-overview.md).

::video{src="https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/ryF2yRi6gctEwUdVkLQvdP" title="" type="vidyard"}

## Query API V2

Query API V2 supports SQL query in ANSI standard. The results return as an array of records. The expected input when calling this API is SQL. The input objects include data stream, profile and engagement data model objects, and unified data model objects.

### API V2 Endpoints

- [**POST /api/v2/query**](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v2/c360a-api-query-v2.md)
- [**GET /api/v2/query/{nextBatchId}**](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v2/c360a-api-get-query-v2.md)

## Query API V1

This API allows you to execute SQL queries against data streams, profile or engagement data model objects, and unified data model objects. The Query API V1 supports only synchronous calls, making it suitable for data extraction, external application integration, or interactive querying on the data lake.

### API V1 Endpoints

- [**POST /api/v1/query**](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v1/c360a-api-query.md)

## Related Resources

- [User Roles and Permission Sets in Data 360](https://help.salesforce.com/s/articleView?id=data.c360_a_userpermissions.htm&type=5)
- [Set Up an External Client App](https://help.salesforce.com/s/articleView?id=xcloud.external_client_apps.htm&type=5)
- [Getting Started with Data Cloud API](https://developer.salesforce.com/docs/data/data-cloud-ref/guide/c360a-getting-started-with-cdp.html)
- [API Limits for Profile, Query, and Calculated Insights](https://help.salesforce.com/s/articleView?id=data.c360_a_limits_and_guidelines_cdp.htm&type=5)
- [Data Cloud Query Guide](https://developer.salesforce.com/docs/data/data-cloud-query-guide/guide/query-guide-get-started.html)
