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

# Paginación

> Las listas que pueden crecer devuelven una página a la vez con un cursor.

Una lista que puede crecer devuelve una página a la vez:

```json theme={null}
{
  "data": {
    "items": [],
    "next_cursor": "eyJpZCI6IjAxSjhRWjRN..."
  }
}
```

Envía `next_cursor` de vuelta como el parámetro de consulta `after` para obtener la página siguiente, y detente cuando sea `null`:

```bash theme={null}
curl "https://app.stockshift.io/api/v1/catalog/items?after=eyJpZCI6IjAxSjhRWjRN..." \
  -H "Authorization: Bearer $STOCKSHIFT_TOKEN"
```

Trata el cursor como un valor opaco. No lo analices ni construyas uno tú mismo.

## Con un SDK

Todos los SDK siguen los cursores por ti:

```ts TypeScript theme={null}
for await (const item of stockshift.paginate("/catalog/items", { query: { search: "bolt" } })) {
  console.log(item.sku);
}
```

```python Python theme={null}
for item in stockshift.catalog.iter_items(search="bolt"):
    print(item.sku)
```

```go Go theme={null}
for item, err := range client.Catalog.ListItemsAll(ctx, nil) {
	if err != nil {
		return err
	}
	fmt.Println(item.SKU)
}
```

La página de cada SDK tiene los detalles.


## Related topics

- [.NET](https://docs.stockshift.io/es/sdks/dotnet.md)
- [Go](https://docs.stockshift.io/es/sdks/go.md)
- [PHP](https://docs.stockshift.io/es/sdks/php.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.