User account creation retrieval for particular timestamp

Hi, I need a help in choosing api. The purpose is to track the user account creation. Could you please share me the details of api that will return us the user accounts created at a particular timestamp. I tried with /admin/api/2022-04/users.json api but its returning all the users created at that shop. But we need the users created within specifict time interval like passing created at min and max timestamp.

You can use the /admin/api/2022-04/customers.json API endpoint to fetch customers created within a specific time interval by using the created_at_min and created_at_max query parameters.

`GET /admin/api/2022-04/customers.json?created_at_min=2022-01-01T00:00:00Z&created_at_max=2022-01-31T23:59:59Z`

In this example, the API will return customers created between January 1, 2022, and January 31, 2022.

Hi, Thanks for the reply. But I dont need the customer data, I need user data. User is one who has access and more permissions in admin panel. /admin/api/2022-04/users.json this api will return the users data but the problem is I am not able to fetch for specific time interval ie., not able to pass created_at_min and max time parameters.

@Bavithra Sorry for the confusion. Unfortunately, the Shopify API does not provide a direct way to filter users by the created_at attribute. However, you can still achieve this by fetching all the users using the /admin/api/2022-04/users.json endpoint and then filtering the results based on the created_at attribute programmatically.

Hi @okur90 , i thought of that, but there is no created_at date field in user api response.

https://shopify.dev/docs/api/admin-rest/2023-01/resources/user

Thanks,

Bavithra