Querystring Array Parameters in Python using Requests

All you need to do is putting it on a list and making the key as list like string:

data = {'name': 'hello', 'data[]': ['hello', 'world']}
response = requests.get('http://example.com/api/add.json', params=data)

Leave a Comment