# How can we implement pagination through url query in builder

**URL:** <https://forum.builder.io/t/how-can-we-implement-pagination-through-url-query-in-builder/3736>\
**Category:** Technical Questions\
**Tags:** api, nextjs\
**Created:** [June 19, 2023, 3:44pm UTC](https://forum.builder.io/t/how-can-we-implement-pagination-through-url-query-in-builder/3736 "2023-06-19T15:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hafiz](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@hafiz](https://forum.builder.io/u/hafiz)\
**Post date:** [June 19, 2023, 3:44pm UTC](https://forum.builder.io/t/how-can-we-implement-pagination-through-url-query-in-builder/3736/1 "2023-06-19T15:44:43Z")

</div>

I want to implement query base search and pagination in builder.  
Like If i enter in URL [http://localhost:3000/?serach=user&type=adim&pageNumber=2](http://localhost:3000/?serach=user&type=adim&pageNumber=2)  
I want to generate this url on the base of builder event but I don’t know how can I achieve it

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [June 19, 2023, 5:11pm UTC](https://forum.builder.io/t/how-can-we-implement-pagination-through-url-query-in-builder/3736/2 "2023-06-19T17:11:01Z")

</div>

Hello @hafiz,

You may find help at our forum post [Custom query from code (sorting issue)](https://forum.builder.io/t/custom-query-from-code-sorting-issue/1921)

> [@How can I paginate (or put an offset) into Builder Data I fetch in a page?](https://forum.builder.io/t/how-can-i-paginate-or-put-an-offset-into-builder-data-i-fetch-in-a-page/1574):
>
> I have a Builder Page, where I’m using the new Data feature to bring in data from a content model I also have on Builder: I want to know how I can introduce pagination onto the page - I think I need to know three things: How can I introduce an offset onto the query being made? I don’t see that as an property I can select from, and I don’t know how the custom query works on this feature Depending on that, how can I have the value to be passed to the offset be read from a URL param? G…

> **[Using Custom Targeting - Builder.io](https://www.builder.io/c/docs/custom-targeting-attributes)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually.
