# 400 Bad Request: Missing required query parameter 'limit'

- **ID:** `api/http-400-missing-required-query-parameter`
- **Domain:** api
- **Category:** request_error
- **Verification:** ai_generated
- **Fix Rate:** 95%

## Root Cause

The API endpoint requires a specific query parameter that was not included in the request URL.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| REST API v1 | active | — | — |
| OpenAPI 3.0 | active | — | — |
| FastAPI 0.100+ | active | — | — |
| Django REST Framework 3.14 | active | — | — |

## Workarounds

1. **Add the missing query parameter to the URL. For example, change /api/items to /api/items?limit=10. In JavaScript: fetch('/api/items?limit=' + limit). In Python requests: requests.get('/api/items', params={'limit': 10})** (98% success)
   ```
   Add the missing query parameter to the URL. For example, change /api/items to /api/items?limit=10. In JavaScript: fetch('/api/items?limit=' + limit). In Python requests: requests.get('/api/items', params={'limit': 10})
   ```
2. **Check the API documentation for all required parameters. Use a tool like Postman or curl to test the endpoint: curl -X GET 'https://api.example.com/items?limit=10'** (95% success)
   ```
   Check the API documentation for all required parameters. Use a tool like Postman or curl to test the endpoint: curl -X GET 'https://api.example.com/items?limit=10'
   ```
3. **If using an SDK, verify that the function call includes all required arguments. In some SDKs, the parameter may be optional with a default; check the method signature.** (90% success)
   ```
   If using an SDK, verify that the function call includes all required arguments. In some SDKs, the parameter may be optional with a default; check the method signature.
   ```

## Dead Ends

- **** — The server parses query parameters from the URL, not headers. (90% fail)
- **** — GET requests typically do not have a body; the server expects the parameter in the URL. (95% fail)
- **** — Parameter names are case-sensitive and must match exactly. (85% fail)
