Retrieve standard segment IDs via API | Community
Skip to main content
johannesw114391
New Participant
April 3, 2019
Solved

Retrieve standard segment IDs via API

  • April 3, 2019
  • 2 replies
  • 2311 views

Hello everybody,

I want to retrieve segmented data via the Adobe Analytics API. I have a script providing me with the segment IDs I need for structuring my API calls, however, they only provide me the IDs of the custom segments I created or somebody else created and shared with me:

library(RSiteCatalyst)

SCAuth("[MY_CREDENTIALS]", "[SHARED_SECRET]")

segments <- GetSegments("[REOPORTSUITE]")

print(segments)

I still need the standard segments like "Return Visits", "First Time Visits" etc, though. Unfortunately, until now I was not able to find information the API call I need in order to obtain those segments' IDs.

Can anyone tell me how to get these IDs?

Thanks a lot in advance,

Jonis

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ankitsh

Hi Jonis,

API's does not return the OOB segments, however you can create a copy of the standard segment from the UI and than you should be able to retrieve those from API's.

I think this is a useful resource too GET Shared Segments from Analytics API 2.0 

-Ankit

2 replies

johannesw114391
New Participant
April 4, 2019

Thank you very much for the quick response! This worked.

ankitshAccepted solution
Employee
April 3, 2019

Hi Jonis,

API's does not return the OOB segments, however you can create a copy of the standard segment from the UI and than you should be able to retrieve those from API's.

I think this is a useful resource too GET Shared Segments from Analytics API 2.0 

-Ankit