RandomAPI/Randomuser.me-Node

get single user data when query seed of multiple user with 'results' parameter

Closed this issue · 2 comments

Hi there,

I have notice querying https://randomuser.me/api/?results=5000, for example, that the seed is available for data set, but not inside single user object, so how I can retrieve single user data, when I query https://randomuser.me/api/?results=5000&seed=seedOfDataSet?

I have tried fetching with user.id or user.login.uuid, but not seems to work. They return me other random user.

Thanks in advance.

Hello there,
For that you need to use the seed parameter.
Example:
To get 5 users:
https://randomuser.me/api/?seed=abc&results=5

Captura de pantalla 2021-01-18 a las 9 54 59

Captura de pantalla 2021-01-18 a las 9 56 03

To get a user with the id parameter:
https://randomuser.me/api/?seed=abc&id=INSEE

Captura de pantalla 2021-01-18 a las 9 57 14

Bye.

Currently seeds are associated with the entire dataset and we are unable to associate at a per user level due to how we generate users. We're able to efficiently generate many users by using a seed per dataset vs a seed for every user.

In regard to fetching only INSEE ids, that belongs to the FR nat, so you'd need to query with nat=FR.