• Register

ACTIVE Network API Forums

API Forum

RSS Feed

Sorting results

    • Alliance for a Healthier MN
    • Topic created 15 years ago

    Is there a way to sort by any of the other fields besides relevance and date?

    Currently, the API docs only show relevance, date_asc and date_desc as the sortable fields. Can sorting be done by title or location?

    Message edited by Alliance for a Healthier MN 15 years ago

  1. active Admin15 years ago

    Only data and relevance sorting are supported at this time unfortunately.

  2. Alliance for a Healthier MN15 years ago

    Ok. I will probably have to role my own sorting. Thank you.

  3. Alliance for a Healthier MN15 years ago

    Actually. As I went through, I noticed it looks like there is a max result set on the active.com end capped at 100. Is there any way to get around that?

    For instance, if my query's total results are 150, can I set the "num" variable to a number like 10000 to return all 150 results. Currently, if I do this it only returns a maximum of 100 results.

  4. active Admin15 years ago

    You're correct, you can only get 100 results per "page". To get results 101 - 200, you'll have to specify "&page=2" in your query. You'll probably have to query a couple of pages worth of data before applying your custom sorting algorithm.

[ Page 1 of 1 ]