Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination in search endpoint #92

Open
MartinMouritzen opened this issue Jan 19, 2023 · 5 comments
Open

Pagination in search endpoint #92

MartinMouritzen opened this issue Jan 19, 2023 · 5 comments

Comments

@MartinMouritzen
Copy link

For the search endpoint, I would love a pagination option.

Right now to create eg. 10 pages of results, I have to request 100 results. It would be nice if I could add a param "offset" or something like that.

Hopefully it should be relatively easy to do in your PHP/SQL

$offset = intval($_REQUEST["offset"]) ? intval($_REQUEST["offset"]) : 0;

SELECT
blah
FROM
search
LIMIT ".$offset.",".$max."

Done deal! (yes, I know it's likely not as simple as that) 😄

@daveajones
Copy link
Contributor

Is this "search/byterm" you are speaking of?

@MartinMouritzen
Copy link
Author

MartinMouritzen commented Feb 28, 2023 via email

@manhphim
Copy link

manhphim commented Oct 4, 2023

I agree. Currently I don't see a way that I can get a paginated response from the API

@marcmaxson
Copy link

In testing /search/byterm/ today: I'm getting 60 feeds returned regardless of what I search for. I know that these searches should return more than 60. Is there a limit somewhere on search results?

@mainrs
Copy link

mainrs commented Feb 10, 2024

In testing /search/byterm/ today: I'm getting 60 feeds returned regardless of what I search for. I know that these searches should return more than 60. Is there a limit somewhere on search results?

There is a 60 item limit on search. I experience the same behavior when searching for popular terms. There is sadly no way to increase the maximum amount as well. Although this is more of a "hot fix". |

My use-case is showing users trending podcasts for a given category as well as "infinite scrolling" for both trending and search.

I've read multiple times that constraint developer time is a problem for the pagination feature. Given that, I'd be willing to spend some time to implement this. I feel like this would enhance products based on the podcastindex.org API immensely! You can contact me using my public GitHub E-Mail!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants