Segmentation reference in Adobe Analytics API 2.0 | Community
Skip to main content
New Member
August 24, 2024
Question

Segmentation reference in Adobe Analytics API 2.0

  • August 24, 2024
  • 1 reply
  • 672 views

Hello Community,

 

Good Day!

 

I stumbled upon an Adobe Analytics API 1.4 documentation 

URL: https://developer.adobe.com/analytics-apis/docs/1.4/guides/reporting/report-description/segments/

 

In the document, We can do something like search a specific value/s based on evar element. Sample below

"segments": [
{
    "element": "eVar1",
    "classification": "Group Name",
    "search": { "type": "OR", "keywords": ["Administrator", "Manager", "Director"] }
}
]
 
I want to ask, is there an equivalent of the above in Adobe Analytics API 2.0?
As I'm checking, we need the segmentId inside the globalFilter like below
 
"globalFilters":[
{
 {
     "type":"segment",
     "segmentId":"53adb46be4b0a2a175bf38c4"
  }
}
]
 
We need to add the specific evar value/s on the Reports API request same as the version v1.4 as we do not know the segmentIds of the segments. 
 
Appreciate the help. Thank you!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 26, 2024

Here is a little known feature... but Workspace uses API 2.0, and the APIs that are used to build to your tables are all available to you.

 

First, you have to turn on debugging in the help menu:

 

 

This will add a new icon:

 

If you click on this, a menu will pop up asking if you want to look at the call for the table or the sparkline, choose the table

 

 

Then, you will be presented with timestamps... some breakdowns require multiple requests:

 

 

When you choose one, a new window will open showing you the API call in multiple formats that you can copy, and use as is, or modify. This will include the segments that are part of the call.

New Member
August 27, 2024

Thanks for this one @jennifer_dungan 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 27, 2024

You're welcome 🙂 This method is great for both learning the structure of the APIs, as well as getting the exact segments you need (and where they need to be added)