How to look up the last 10 recent time-series event for a specif Profile | Community
Skip to main content
Luca_Lattarini
Level 9
September 12, 2022
Solved

How to look up the last 10 recent time-series event for a specif Profile

  • September 12, 2022
  • 1 reply
  • 1814 views

Hello guys,

 

I would like to look up the last 10 recent time-series event associated to a specific Prodile Id by using API call, where can I find the correct API call I can perform? 

Thanks

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 AtulChavan

Hi @luca_lattarini ,
you can make use of API which extracts experience events by identity & here is sample request. To extract 'limit' query parameter in request url helps you to extract number of records you want in response.

curl -X GET \
'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.experienceevent&relatedSchema.name=_xdm.context.profile&relatedEntityId=89149270342662559642753730269986316900&relatedEntityIdNS=ECID&fields=endUserIDs,web,channel&startTime=1531260476000&endTime=1531260480000&limit=1' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'

1 reply

AtulChavan
Community Advisor
AtulChavanCommunity AdvisorAccepted solution
Community Advisor
September 12, 2022

Hi @luca_lattarini ,
you can make use of API which extracts experience events by identity & here is sample request. To extract 'limit' query parameter in request url helps you to extract number of records you want in response.

curl -X GET \
'https://platform.adobe.io/data/core/ups/access/entities?schema.name=_xdm.context.experienceevent&relatedSchema.name=_xdm.context.profile&relatedEntityId=89149270342662559642753730269986316900&relatedEntityIdNS=ECID&fields=endUserIDs,web,channel&startTime=1531260476000&endTime=1531260480000&limit=1' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'

Luca_Lattarini
Level 9
September 12, 2022

hello @atulchavan ,

 

Thanks for your answer.

I have a question regarding the end point

https://platform.adobe.io/data/core/ups/access/entities?schema.name=

_xdm.context.experienceevent
&relatedSchema.name=_xdm.context.profile
&relatedEntityId=89149270342662559642753730269986316900
&relatedEntityIdNS=ECID&fields=endUserIDs,web,channel
&startTime=1531260476000
&endTime=1531260480000

 

Why  we dont use schema.name=_xdm.context.profile and &relatedSchema.name=_xdm.context.experienceevent ? 

Thanks

 

Danny-Miller
Adobe Employee
Adobe Employee
September 12, 2022

@luca_lattarini @atulchavan One trick I use so I don't have to change timestamps is "order by":

orderby=-timestamp&limit=10