Skip to content

Retrieve profiles of query

Request

Retrieve the profiles of a query.

Security
TdApikeyAuth
Path
audienceIdinteger, (int64)required

Audience ID of the segment

queryIdstringrequired

ID of query

Query
pagenumber, >= 1
curl -i -X GET \
  'https://api-cdp.treasuredata.com/audiences/{audienceId}/segments/queries/{queryId}/customers?page=1' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

successful operation

Bodyapplication/json
errorstring or null

Error message

namesArray of strings or null

Column names

Example:
[ "cdp_customer_id", "email" ]
queryIdstring

ID of query

Example:"970937b9-98b1-45b1-ba9b-10905846476e"
rowsArray of items or null

Array of profiles

Example:
[ [ "003171af29a5f0ac890fed022d9e5366dea5d68e", "a@example.com" ] ]
typestring
Enum:"rows""end""killed""error""pending"
Response
{ "error": "string", "names": [ "cdp_customer_id", "email" ], "queryId": "970937b9-98b1-45b1-ba9b-10905846476e", "rows": [ [] ], "type": "rows" }