For Pagination, the API I am trying to connect to ...
# help-connector-development
d
For Pagination, the API I am trying to connect to starts at 1 instead of 0 and gives 200 rows. next row starts at 201 but airbyte is setting it to 200. Is it possible to tell it to start at 1?
k
A message from kapa.ai
Yes, it is possible to configure Airbyte to start pagination at 1 instead of 0. This can be done using the Connector Builder in the Pagination configurations. For example, if you are using the Page Increment method, you can set the "Start from page" field to
1
. Here is an example configuration: - Mode:
Page Increment
- Page size:
200
(or the largest limit that the API supports) - Start from page:
1
- Inject page size into outgoing HTTP request: - Inject into:
request_parameter
- Field name:
page_size
- Inject page number into outgoing HTTP request: - Inject into:
request_parameter
- Field name:
page
This configuration will cause your connector to make requests to the API starting from page 1 and fetch 200 records per page. The page number will be automatically incremented by 1 for each subsequent request, and the process will continue until it receives fewer records than the page size you configured. For more information, you can refer to the [Pagination methods](https://docs.airbyte.com/connector-development/connector-builder-ui/pagination) section in the Airbyte documentation.
d
I should note this is for offset as this api does not have a page parameter