Expand my Community achievements bar.

SOLVED

getting page level data from Analytics API

Avatar

Level 8

Hello Team,

I am new to Adobe Analytics dashboard, API 2.0.  From the free form table, using the debugger I got this API

https://appservice-reporting3-2.omniture.com/reporting/1.0/analytics/users/reports/ranked?locale=en_...

by passing necessary information in the Headers section, I was getting the result. Wanted to check, is this API the latest?  i mean 2.0?   

cc @Jennifer_Dungan 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I should also mention, this is a good resource for the API 2.0:

 

https://developer.adobe.com/analytics-apis/docs/2.0/apis/

 

This of course doesn't build anything for you, which is why the debugger in workspace is so great, but you can poke around here to see a lot of options that are available in the API.

View solution in original post

6 Replies

Avatar

Community Advisor

Hi, 

 

I am not sure what that link that you posted is.. but the fact that it has "omniture" (which is a name Adobe has spent a lot of time getting rid of in older legacy products, and I can see no reason why they would reference it in the API 2.0 which was designed long after Omniture was a thing), and the fact that it says "1.0" in the string, this seems to be very old....

 

Where in the debugger did you find this?

Avatar

Level 8

Hi @Jennifer_Dungan 

I got the API from the cURL request section.

 

3.PNG

 

Avatar

Community Advisor

Oh, that's interesting... I guess I've never looked into the cURL request... I've always used Postman and JSON (and even at that, we aren't actively using the APIs, so I don't check all that often. In fact, the last time we were using APIs was using version 1.4... ).... but when I check my cURL, I also see "omniture" and "1.0".

 

Since Workspace is built on API 2.0, I have to assume this should be the latest version... perhaps part of the cURL method continues to use part of the old infrastructure?

Avatar

Correct answer by
Community Advisor

I should also mention, this is a good resource for the API 2.0:

 

https://developer.adobe.com/analytics-apis/docs/2.0/apis/

 

This of course doesn't build anything for you, which is why the debugger in workspace is so great, but you can poke around here to see a lot of options that are available in the API.

Avatar

Level 8

Hi @Jennifer_Dungan 

Able to get all the data using this post API call.

 

https://analytics.adobe.io/api/abcdef/reports

In the body section, mention this.

{
  "rsid": "rsidOfYourCompany",
  "dimension": "variables/prop23",
"globalFilters": [
        { 
            "type": "segment",
            "segmentId": "Visits_from_Mobile_Devices"
        },
        {
            "type": "dateRange",
            "dateRange": "2024-02-01T00:00:00.000/2024-03-01T00:00:00.000",
            "dateRangeId": "thisMonth"
        }
    ],
  "settings": {
        "countRepeatInstances": true,
        "includeAnnotations": true,
        "limit": 50,
        "page": 0,
        "nonesBehavior": "exclude-nones"
    },
  "statistics":{
"functions": [
"col-max",
"col-min"
]
},
  "metricContainer": {
        "metrics": [
            {
                "columnId": "0",
                "id": "metrics/pageviews"
            },
            {
                "columnId": "1",
                "id": "metrics/occurrences",
                "sort": "desc"
            }
        ]
    },
}
Thanks a lot @Jennifer_Dungan   for your help

 

Avatar

Community Advisor

You're very welcome. Glad you got it working!