How to get the value of events from API 2.0? | Community
Skip to main content
January 28, 2022
Solved

How to get the value of events from API 2.0?

  • January 28, 2022
  • 2 replies
  • 1435 views

Hi Everyone, I am trying to extract data from the API to store it in a DB

But I am having trouble to find out how to get the value of the events filter by date, I am using Swagger and for example I can get a list of all Events using the next endpoint: https://analytics.adobe.io/api/[client id]/metrics?rsid=[report suite id]

but this only shows the name of the event and the description, but not the actual value

 

Then I tryed using the endpoint of a specific event with https://analytics.adobe.io/api/[client id]/metrics/event01?rsid=[report suite id]

but it also only showed this: 

{
"id": "metrics/event01",
"title": "String",
"name": "String",
"type": "int",
"extraTitleInfo": "event01",
"category": "Conversion",
"support": ["String"],
"allocation": true,
"precision": 0,
"calculated": false,
"segmentable": true,
"supportsDataGovernance": true,
"description": "String",
"polarity": "positive"
}

 

How can I get the actual value for the events and filter for date?

 

Thanks in advance!

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 Pankaj_Sabharwal

Hi @josueo 

 

You can pull data from Adobe Analytics API using python. Make sure you are an existing user in Adobe Analytics and have access to Adobe Developer Console. Here’s the complete step-by-step guide that’ll help you in pulling data using python

 

Blog link : https://jasonchiu.com/posts/how-to-pull-data-from-the-adobe-analytics-api-(2.0)-using-python/

 

Another way would be creating a free form table in the analytics workspace and then debugging the UI to copy/paste JSON requests directly into any API client to return data. Here’s a demonstration of the same.

https://experienceleague.adobe.com/docs/analytics-learn/tutorials/apis/using-analysis-workspace-to-build-api-2-requests.html


 Do let me know if you need any further help.

 

Thanks

2 replies

Adobe Employee
January 31, 2022

I found the helpful document which the explain of your question from on stackoverflow.

Please check the link above!

Pankaj_SabharwalAccepted solution
Level 5
February 1, 2022

Hi @josueo 

 

You can pull data from Adobe Analytics API using python. Make sure you are an existing user in Adobe Analytics and have access to Adobe Developer Console. Here’s the complete step-by-step guide that’ll help you in pulling data using python

 

Blog link : https://jasonchiu.com/posts/how-to-pull-data-from-the-adobe-analytics-api-(2.0)-using-python/

 

Another way would be creating a free form table in the analytics workspace and then debugging the UI to copy/paste JSON requests directly into any API client to return data. Here’s a demonstration of the same.

https://experienceleague.adobe.com/docs/analytics-learn/tutorials/apis/using-analysis-workspace-to-build-api-2-requests.html


 Do let me know if you need any further help.

 

Thanks