Legacy Dev Forum Posts

 View Only

Sign Up

API post /api/v2/analytics/users/details/query incomplete

  • 1.  API post /api/v2/analytics/users/details/query incomplete

    Posted 06-05-2025 18:28

    EA002 | 2023-10-05 14:46:07 UTC | #1

    Question, i'm not sure if this is an isolated case or not. But when we call /api/v2/analytics/users/details/query we're not getting the complete list of users. The users are random and please see code below:

    import requests gcapiurl = 'https://api.usw2.pure.cloud' base = '/api/v2/analytics/users/details/query' apiurl=gcapiurl + base gcaccesstoken = '[API Key here]' requestheaders={'Accept':'application/json','Content-Type': 'application/json','Authorization': 'bearer ' + gcaccesstoken,} requestbody={ 'interval': '2023-10-01T00:00:00/2023-10-04T00:00:00' }

    r = requests.post(apiurl, headers=requestheaders, json = requestbody) print(f"{r.json()}")


    Eos_Rios | 2023-10-05 14:51:25 UTC | #2

    Results are paginated, you have to cycle through them to get everybody.

    See paging spec portion of request body - POST /api/v2/analytics/users/details/query


    EA002 | 2023-10-05 14:52:34 UTC | #3

    Thanks for the reference @EosRios. Checking it now. :slightsmile:


    system | 2023-11-05 14:53:22 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 22381