# 400 Bad Request: Required query parameter 'limit' is missing

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

## Root Cause

API endpoint requires a query parameter that was not provided in the request URL.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| OpenAPI 3.0.3 | active | — | — |
| Spring Boot 3.2.0 | active | — | — |
| Express.js 4.18.0 | active | — | — |
| Django REST Framework 3.14.0 | active | — | — |

## Workarounds

1. **Add the required query parameter to the URL: `curl -X GET 'https://api.example.com/items?limit=10'`** (95% success)
   ```
   Add the required query parameter to the URL: `curl -X GET 'https://api.example.com/items?limit=10'`
   ```
2. **Check the API documentation for the correct parameter name and type, then include it in the request** (90% success)
   ```
   Check the API documentation for the correct parameter name and type, then include it in the request
   ```
3. **If using a client library, ensure you pass the parameter in the query string (e.g., in Axios: `axios.get('/items', { params: { limit: 10 } })`)** (85% success)
   ```
   If using a client library, ensure you pass the parameter in the query string (e.g., in Axios: `axios.get('/items', { params: { limit: 10 } })`)
   ```

## Dead Ends

- **** — Adding the parameter to the request body instead of the query string (80% fail)
- **** — Using a different parameter name (e.g., 'max_results' instead of 'limit') (75% fail)
- **** — Sending the parameter as a header instead of a query parameter (70% fail)
