> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zapier.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use pagination in triggers

> By default, Zapier triggers fetch new or recently updated data to start Zaps, and only need to find the most recently added items. Triggers can also be used to populate [dynamic dropdown fields](/integrations/build/add-fields#dynamic-dropdown), and there they need to find all possible items to populate the field.

These triggers used for populating dynamic dropdown fields will often find dozens or hundreds of items. Many APIs let you split the results into pages. The first API call will return the first set of results — often 20 to 100. The items from this result would be seen as options in the dynamic dropdown field. If you want additional entries, you can make a new API call requesting page 2 and get the next set of results, iterating through the pages until the API has sent every possible option.

<Frame>
  {" "}

  <img src="https://mintcdn.com/zapier-82f0e938/FKPl8SjhZXHXKd0_/images/f59291e5a74d1977648850f84513e33e.webp?fit=max&auto=format&n=FKPl8SjhZXHXKd0_&q=85&s=da18230fd58c644c3ecfe9ad14e48191" width="958" height="1016" data-path="images/f59291e5a74d1977648850f84513e33e.webp" />

  {" "}
</Frame>

## 1. Enable pagination

* Log into the [Platform UI](https://zapier.com/app/developer).
* Select your **integration**.
* In the *Build* section in the left sidebar, click on the trigger that should power the dynamic dropdown field. This can be an existing trigger or a new trigger you set as *Hidden* if its only purpose is to power the dynamic dropdown.
* Go to the **API Configuration** tab
* In the **Configure your API Request** section, select the **Support Paging** checkbox, which should only be applied to triggers built to power dynamic dropdown menus. This enables Zapier's `bundle.meta.page` value which tracks the pages Zapier has loaded, along with a Load more option in the user-facing Zapier editor's dropdown menus.

<Frame>
  {" "}

  <img src="https://mintcdn.com/zapier-82f0e938/88BoWUuO1MROWn5-/images/4680b6dd27b3db71b8364177e351fdd5.webp?fit=max&auto=format&n=88BoWUuO1MROWn5-&q=85&s=75d9a8ec4b6064ebfd0c1c63ef1ffbf2" width="905" height="153" data-path="images/4680b6dd27b3db71b8364177e351fdd5.webp" />

  {" "}
</Frame>

* In the API Endpoint section, click *Show Options* to include `bundle.meta.page` in your API call as Zapier does not include that automatically, then add a new URL Param for your API's paging option (or optionally add it to your HTTP Headers if your API expects the paging value there). Use the page request field name from your API on the left, and `{{bundle.meta.page}}` on the right to have Zapier pull in the correct page value.

  <Frame>
    {" "}

    <img src="https://mintcdn.com/zapier-82f0e938/1jtyk4mqAs_J-p30/images/2492cb37ec953861cceaf243c0625285.webp?fit=max&auto=format&n=1jtyk4mqAs_J-p30&q=85&s=7d940f4c2046a93fdf63fdde774cb269" width="1504" height="1411" data-path="images/2492cb37ec953861cceaf243c0625285.webp" />

    {" "}
  </Frame>

Note that Zapier's `bundle.meta.page` value uses zero-based numbering. The first time Zapier fetches data from your API, it uses a page value of 0, followed by 1 the second time, and so on. If your API expects the first API call to request page 1, with 2 for the second page and so on, you'll need to [switch to code mode](/integrations/build/code-mode) and add `+ 1` to `bundle.meta.page`. So pagination in the code would look like the below (substituting `page` with the correct field name your API uses for pagination):

`'page': bundle.meta.page + 1`

<img src="https://mintcdn.com/zapier-82f0e938/ziHY4Q2Lym35bUQM/images/8e7923caa73ff68ea6061d61ad37e451.webp?fit=max&auto=format&n=ziHY4Q2Lym35bUQM&q=85&s=e3afbcd2509fecfca972875e7d816688" alt="Zapier pagination code mode" width="956" height="648" data-path="images/8e7923caa73ff68ea6061d61ad37e451.webp" />

* Test the API Request in the Platform UI and check the HTTP tab to see the request Zapier sent your app. Zapier should show a `page=0` value (or the correct term for pages in your API) under the Request Params header by default, or `page=1` if you're customizing the page requests to start at 1.

<Frame>
  {" "}

  <img src="https://mintcdn.com/zapier-82f0e938/MptVjeuYuatFg3LM/images/78b76bad2188b7594325c2c6bb85f121.webp?fit=max&auto=format&n=MptVjeuYuatFg3LM&q=85&s=92751d2cb36ff4d37ebdda80dd7f0af5" width="1047" height="1138" data-path="images/78b76bad2188b7594325c2c6bb85f121.webp" />

  {" "}
</Frame>

## 2. Test pagination

To test your paginating trigger:

* Build an action in the Platform UI that uses this trigger in a dynamic dropdown.

<Frame>
  {" "}

  <img src="https://mintcdn.com/zapier-82f0e938/2ebL4bG5uJP5JVc0/images/d7d14e885062e466c4bcbbab8dcfd535.webp?fit=max&auto=format&n=2ebL4bG5uJP5JVc0&q=85&s=11c5023c9ee0e99f90066878e8b2f666" width="2014" height="1943" data-path="images/d7d14e885062e466c4bcbbab8dcfd535.webp" />

  {" "}
</Frame>

* Make a new Zap in the user-facing Zap editor that uses your action with the dynamic dropdown field. Click the dropdown field, scroll to the end, and click the **Load More** button. Repeat until it loads the last options, which will show a *We couldn't find any more choices* prompt.

<Frame>
  {" "}

  <img src="https://mintcdn.com/zapier-82f0e938/ziHY4Q2Lym35bUQM/images/b2d1a5bf597c95f8615ca009ee7d66c6.webp?fit=max&auto=format&n=ziHY4Q2Lym35bUQM&q=85&s=0dec03879cf03f4a92eced7f2b381d49" width="1546" height="1290" data-path="images/b2d1a5bf597c95f8615ca009ee7d66c6.webp" />

  {" "}
</Frame>

***

*Need help? [Tell us about your problem](https://developer.zapier.com/contact) and we'll connect you with the right resource or contact support.*
