Created as a helper function to return org list results one page at a time. Can be used in its own right, however.

get_results_by_page(
  ..page_num = 1,
  ..search_terms,
  ..affiliation,
  ..org_type,
  ..country_code,
  ..country_name,
  ..include_non_active = "false"
)

Arguments

..page_num

Return a specific page number. Enter as an integer - if not set, defaults to 1.

..search_terms

Query term to narrow results if desired. Separate multiple terms with "|" to search on an OR basis. Will search all indexed fields.

..affiliation

Specific search term for an affiliation. The API determines closeness of match - only those deemed close enough ('chosen') returned. Will only search name, label and alias fields. You cannot combine affiliation searches with filters.

..org_type

Only return specified type of organisation. Any of "Education", "Healthcare", "Company", "Archive", "Nonprofit", "Government", "Facility" or "Other".

..country_code

Filter to specific countries as per the ISO 3166 alpha-2 list. Can combine with ..org_type filter.

..country_name

Alternatively, filter by country code instead of name. Can combine with ..org_type filter.

..include_non_active

Option to include 'inactive' or 'withdrawn' entities. Must be 'true' or 'false'.

Value

A dataframe holding the first page of results from the API.