Forum Discussion

tester3's avatar
tester3
Adept
11 years ago

fetch users after a certain date

Hello,

 

Does anyone know of a way to get users that had registered after a certain date via the API? I tried using the search API, but it doesn't allow greater than/less than comparisons, at least, according to the docs.

 

Thanks

4 Replies

  • dhiraj_gophane's avatar
    dhiraj_gophane
    Leader
    11 years ago

    Just to be more clear on date's format,

     

    API call to get registered users within given timeframe (also gives some limited user metrics)


    Endpoint: http:// community.lithium.com/restapi/vc/users/registered
    Parameters:

    date_start=2013-06-26T00:00Z (you can change the dates)
    date_end=2013-06-26T23:59Z
    restapi.response_style (optional): view
    restapi.format_detail (optional): full_list_element

  • shalini_natesan's avatar
    shalini_natesan
    Adept
    11 years ago
    Hi Dhiraj,

    The URL you provided above http:// community.lithium.com/restapi/vc/users/registered brings all registered users - so i get an output of 265 if i run this in my community. But in my Admin console metrics tab, i have the following values,
    Abandoned Registrations - 71
    Reconciled Registrations - 21
    Completed Registrations - 193

    is there any way i can get the value of Completed Registrations through REST API call?

    Thanks,
    Shalini.