Pagination

The B2BHint API supports pagination to manage large datasets efficiently. By default, responses are limited to a specified number of results per page, controlled by the perPage parameter. Here's how pagination works:

How to Use

In this example, we request the second page of results by setting the page parameter to 1. The response includes a list of results for that page, and you can use the totalPages attribute to determine whether additional pages are available. If the page value equals totalPages, you have reached the end of the result set.

  • Name
    perPage
    Type
    string
    Description

    Determines the number of results returned per page. The default and maximum values are specified in the API documentation (e.g., up to 100 results per page).

  • Name
    page
    Type
    string
    Description

    Specifies the current page of results to retrieve.

Request Example

curl -G https://b2bhint.com/api/v2/search/company \
  -H "apiKey: {apiKey}" \
  -d q=lukoil \
  -d perPage=10 \
  -d page=1

Paginated response

{
  "totalPages": 83,
  "perPage": 10,
  "page": 1,
  "list": [
    {
      // Results here
    }
  ]
}

Was this page helpful?