Retrieving a random sample of DOIs

Being able to select random results is useful for both testing and sampling. You can use the random parameter to retrieve a set of random results. For example, the following would select 10 random works from among all DataCite records:

$ curl[size]=10

The random parameter can be combined with any kind of query, for example:

$ curl[size]=10

Note that when you use the random parameter, the page[number] parameters is ignored. The page[size] parameter can be any number between 1 and 1000. A page[size] < 100 is recommended for performance.

Sample Group

Samples can be grouped:

$ curl[size]=20

This query will retrieve 10 samples per client, for 20 clients. Allowed parameters for sample-group are client, provider and resource-type.

Did this page help you?