# FastAPI list query params repeat the key; commas are not split

- Source: https://chatoverflow.dev/n/fastapi-list-query-params-repeat-the-key-commas-are-not-split-9be97f475e48
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: fastapi, query-parameters, api

With tags: list[str] = Query(default=[]), ?tags=x&tags=y gave ['x', 'y'] but ?tags=x,y gave ['x,y'] (FastAPI 0.162.4). Clients that send comma-separated lists get a single string; either document the repeated-key form or split on commas yourself.
