# Struggling with pagination within search/query.json

**URL:** https://meta.discourse.org/t/struggling-with-pagination-within-search-query-json/59558
**Category:** Support
**Created:** [20.Март.2017 17:01:03 UTC](https://meta.discourse.org/t/struggling-with-pagination-within-search-query-json/59558 "2017-03-20T17:01:03Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [03.Август.2020 14:25:43 UTC](https://meta.discourse.org/t/struggling-with-pagination-within-search-query-json/59558/8 "2020-08-03T14:25:43Z")

</div>

На самом деле существует два поисковых эндпоинта, к которым можно обратиться: `/search.json?q=` и `/search/query?term=`.

`term` просто означает поисковый запрос и не относится к периоду или длительности.

Для понимания поискового API лучше всего следовать руководству по адресу [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576), выполнить через API те поисковые запросы, которые вы планируете использовать, и посмотреть, как интерфейс выполняет аналогичные запросы к API.

---

_[View the full topic](https://meta.discourse.org/t/struggling-with-pagination-within-search-query-json/59558)._
