'Is there is any way to pass multiple values for a single key in the API URL

I am testing an API which is returning data for a single value passed query expression ex :- https://xyz/abc/latest/result?q=PersonId=11111111

but when I pass another personID ex :- https://xyz/abc/latest/result?q=PersonId=11111111&q=PersonId=2222222

it is still returning the data for the personID=11111111.

Can anyone suggest any idea to me - In fetching the data for multiple persons in one shot? Thanks in advance



Solution 1:[1]

It will depend on the API implementation, but I would suggest you to try with comma separated values on the desired parameter. I.e: https://xyz/abc/latest/result?q=PersonId=11111111,2222222

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Viizgar