GitLab Api : Get merge_requests not working as intended

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

https://gitlab.com/api/v4/projects/[PROJECT_ID]/merge_requests?state=merged&target_branch=[TARGET_BRANCH] Return first 20 entries where the above state and target_branch are not applicable, and i need to manually parse the required requests from the response. Also https://gitlab.com/api/v4/projects/[PROJECT_ID]/merge_requests?state=merged&target_branch=[TARGET_BRANCH]&page=2 Returns nothing, even if in headers x_total_pages says i have other pages

Can you help me with what am i missing here?

Edited by 🤖 GitLab Bot 🤖