Expand my Community achievements bar.

Query service to extract metadata of the audience

Avatar

Level 2

Hi, is there any query in query service to extract the metadata of the audience (e.g. ID, name , attributes and condition)?
I checked but to no avail.

3 Replies

Avatar

Moderator

Can you provide more context?  

 

Are you trying to use the query service to get a list of your audiences inside of AEP with all the meta data?  Or are you trying to get this to then send along with a data collection activity ?

 

Avatar

Moderator

@KelvidPa 

 

From the AI Assistant within AEP:

 

To extract the metadata of an audience, including its ID, name, attributes, and condition, you can use the Adobe Experience Platform Query Service. The Query Service allows you to retrieve specific information about audiences by making a GET request to the /audiences endpoint. This endpoint supports various query parameters to help filter your results and retrieve the desired metadata.12

Here's how you can use the Query Service to extract the metadata of an audience:3

  1. Make a GET request to the /audiences endpoint, specifying the query parameters to filter the results based on your requirements. You can include parameters such as property, name, start, limit, and sort to narrow down the results and retrieve the metadata of the specific audience you're interested in.14

  2. Include the necessary query parameters in the request to filter the audiences based on their attributes, names, or other properties. For example, you can use the property parameter to specify audiences that exactly match an attribute's value, or the name parameter to filter audiences whose names contain the provided value.1

  3. Upon receiving the response from the Query Service, you will be able to extract the metadata of the audience, including its ID, name, attributes, and condition based on the parameters you specified in the request.3

By leveraging the Query Service and its query parameters, you can efficiently extract the metadata of audiences and obtain the specific information you need for analysis, targeting, or other use cases within Adobe Experience Platform.1

 

Avatar

Level 2

Hi @Rudi-Shumpert , I am trying to explore to use query service on platform (not API) to extract the metadata of the audiences. For the list of audiences, which I can extract it from segmentdefinition_snapshot_export. No, I am not send along with a data collection activity.