[GH-ISSUE #386] Add change region feature #302

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

Originally created by @sigma67 on GitHub (Apr 27, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/386

Discussed in https://github.com/sigma67/ytmusicapi/discussions/377

Originally posted by maxrave-dev April 13, 2023
I build a backend using your API but my server is in US, and data return only of US. I see Youtube Music and Youtube also have change region feature, so can you add it to your API.
Thank you
Best Regard

We can add a new initialization parameter region to YTMusic that allows setting the gl flag in the headers which control the region setting of Youtube Music.

Feel free to comment if you want to tackle this.

Originally created by @sigma67 on GitHub (Apr 27, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/386 ### Discussed in https://github.com/sigma67/ytmusicapi/discussions/377 <div type='discussions-op-text'> <sup>Originally posted by **maxrave-dev** April 13, 2023</sup> I build a backend using your API but my server is in US, and data return only of US. I see Youtube Music and Youtube also have change region feature, so can you add it to your API. Thank you Best Regard</div> We can add a new initialization parameter `region` to `YTMusic` that allows setting the `gl` flag in the headers which control the region setting of Youtube Music. Feel free to comment if you want to tackle this.
kerem 2026-02-27 22:59:59 +03:00
Author
Owner

@sigma67 commented on GitHub (Jun 15, 2023):

fixed in 2c99445

<!-- gh-comment-id:1593533738 --> @sigma67 commented on GitHub (Jun 15, 2023): fixed in 2c99445
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#302
No description provided.