Metadata

There are two types of metadata that can be returned as part of the repsonse body from Fans United APIs. Both of them contain information about the pagination functionality.

Parameters:

  • current_page: int. The number of the page.
  • items_per_page: int. The count of the items which the page contains.
  • number_of_pages: long. The largest number of a page that can be requested.
  • total_items: int. The total count of the items that can be obtained for this kind of request.
"meta": {
	"pagination": {
		"current_page": 1,
		"items_per_page": 20,
		"number_of_pages": 5,
		"total_items": 100
	}
}

Parameters:

  • next_page_starts_after: int. A cursor for use in pagination. next_page_starts_after is the number that defines your place in the list.
  • items_per_page: int. The count of the items which the page contains.
"meta": {
	"pagination": {
		"next_page_starts_after":1,
		"items_per_page":1
	}
}