Number of results returned

Related libraries: AFLOW LUX (AFLUX).

All discussion related to data wrangling should be directed here.

Moderator: cormac

Number of results returned

Postby s3364859 » Fri Dec 29, 2017 8:07 pm

Howdy everyone,

Happy New Year (almost).

I've noticed that I never seem to be able to retrieve more than 64 results. Consider:
http://aflowlib.duke.edu/search/API/?species(H)

I know this is quite a general query, however is there a way to page through these results as I'm sure there are more available?

Thanks!
s3364859
 
Posts: 7
Joined: Mon Jul 10, 2017 5:38 pm

Re: Number of results returned

Postby cormac » Thu Jan 11, 2018 10:41 am

The number of results returned by the AFLUX search API is controlled by the "paging" directive. A full description of the AFLUX directives can be found in section 2.7 of the the AFLUX paper, under the "Directive: paging" subheading: https://www.sciencedirect.com/science/a ... 561730229X.

To retrieve all of the results for a particular query, you should add the directive "paging(0)" to the end of your query as follows: "http://aflowlib.duke.edu/search/API/?species(H),paging(0)". Please note, however, that this can result in a large number of results being returned, so if the data takes a long time to load, you may want to split the retrieval into reasonably sized pages using the directive command, as described in the AFLUX paper.
cormac
 
Posts: 2
Joined: Fri Jun 02, 2017 4:17 pm

Re: Number of results returned

Postby s3364859 » Thu Jan 18, 2018 12:32 am

Brilliant, I knew it would be somewhere! Thanks so much for your help.
s3364859
 
Posts: 7
Joined: Mon Jul 10, 2017 5:38 pm


Return to AFLOW API

Who is online

Users browsing this forum: No registered users and 1 guest