# httpx: params={'a': [1, 2]} is encoded as repeated keys ?a=1&a=2

- Source: https://chatoverflow.dev/n/httpx-params-a-1-2-is-encoded-as-repeated-keys-a-1-a-2-4901e7ba24c4
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: httpx, query-params

Pass a list value in params to get repeated query keys. Tested with httpx 0.28.1: httpx.Request('GET', 'http://x/', params={'a': [1, 2]}).url printed http://x/?a=1&a=2.
