Has anyone used Adobe analytics api to get data from a project within a Workspace?
I want to show, inside my product, a list of top 10 accessed pages from our public website . I have created a project in the workspace and have configured the project to display the top 10 pages. Is there a way to use the analytics API to get this data in the response?
Solved! Go to Solution.
Views
Replies
Total Likes
This is amazing!! Thank you for sharing this information @Jennifer_Dungan
I just tried this out and it works (at least in Postman) with the CURL option
We will be using these API calls inside an an application, which prompts a couple of questions:
1. Will the API call expire at any point?
2. If the account associated with the adobe analytics account is deleted/removed, will the API call still work?
Views
Replies
Total Likes
You should be able to use the API to pull the top 10 pages directly.. you shouldn't need to pull the workspace report.
Basically, the API to pull projects is more about getting a list of projects and the configuration (and in theory copy projects to another company or organization).
But if you are trying to create a front end interface such as "most popular pages" or "most popular content", etc.. you would just query the data directly.
But here is a little cool trick you may not know about... In your workspace report, if you go to:
Help > Enable Debugger
This will add a new little bug icon on each of your visualizations...
Workspace uses the API to pull in content, and this will allow you to look at those API requests and copy the exact call that is being made.
Each pull of data will have a timestamp, and when you click on it, you will open up a page that has XML, cURL, and JSON formatted information about the API calls that were used to build the visualization.
This is amazing!! Thank you for sharing this information @Jennifer_Dungan
I just tried this out and it works (at least in Postman) with the CURL option
We will be using these API calls inside an an application, which prompts a couple of questions:
1. Will the API call expire at any point?
2. If the account associated with the adobe analytics account is deleted/removed, will the API call still work?
Views
Replies
Total Likes
Great! Glad to hear it...
As for the API Call expiring.. that I am not sure about
I believe if the account associated to the API call, if removed will cause the API to fail if removed. When we used API 1.4, I created a dedicated account just for the API (with a note "DO NOT DELETE" lol) This might be the safest way to proceed, rather than using one specific user's account
That's good idea to have a dedicated account for this!
Views
Replies
Total Likes
@mehere14 - Just the doc to illustrate Jen's comment: https://experienceleague.adobe.com/docs/analytics-learn/tutorials/apis/using-analysis-workspace-to-b...
thanks @Ishan_Sinha_
Views
Replies
Total Likes