NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To change the maximum number of results returned for a query, add the resultCounter=## parameter to the call. To change the number of results shown per page, add the pageSize=## parameter to the call. All of the Example queries shown on this page can be appended with the resultCounter and pageSize parameters.

For example:

...

languagehtml/xml
titleResult Set and Page Size Example

http://cadsrapi.nci.nih.gov/cadsrapi40/GetXML?query=gov.nih.nci.cadsr.domain.Form&gov.nih.nci.cadsr.domain.Form[@workflowStatusName=RELEASED]&startIndex=0&pageSize=30&resultCounter=300

Logically, if your total results are less than the page size, the first page of results will contain all returned items.

...