[GH-ISSUE #248] search limit issue #190

Closed
opened 2026-02-27 22:08:31 +03:00 by kerem · 1 comment
Owner

Originally created by @Catto-Got-That-Hatto on GitHub (Dec 21, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/248

Hey been using this library for a few days, its great but the limit parameter doesn't seem to be working for me.

>>> len(YTMusic().search("Crab Rave", filter="songs")
20
>>> len(YTMusic().search("Crab Rave", filter="songs", limit=1))
20

Python - 3.10.1
ytmusicapi - 0.19.5

Originally created by @Catto-Got-That-Hatto on GitHub (Dec 21, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/248 Hey been using this library for a few days, its great but the `limit` parameter doesn't seem to be working for me. ```py >>> len(YTMusic().search("Crab Rave", filter="songs") 20 >>> len(YTMusic().search("Crab Rave", filter="songs", limit=1)) 20 ``` `Python - 3.10.1` `ytmusicapi - 0.19.5`
kerem closed this issue 2026-02-27 22:08:31 +03:00
Author
Owner

@sigma67 commented on GitHub (Dec 21, 2021):

https://ytmusicapi.readthedocs.io/en/latest/faq.html#why-is-ytmusicapi-returning-more-results-than-requested-with-the-limit-parameter

Server side minimum is 20, so you'll always get multiple of 20

<!-- gh-comment-id:998821566 --> @sigma67 commented on GitHub (Dec 21, 2021): https://ytmusicapi.readthedocs.io/en/latest/faq.html#why-is-ytmusicapi-returning-more-results-than-requested-with-the-limit-parameter Server side minimum is 20, so you'll always get multiple of 20
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#190
No description provided.