List todos with filtering, sorting, search and pagination
GET
https://api.testingapis.com/api/TodosCommon filters: completed, priority, userId. Any other property name also works as an exact, case-insensitive filter. Paging and sorting: limit (1-100), page (1-based, needs limit), offset, sort (property name), order (asc or desc) and q (search across title, name, body, description and text fields). Totals are returned in the X-Total-Count, X-Page, X-Per-Page and X-Total-Pages headers.
Responses
- 200
- The matching todos.
- 500
- Unexpected server error.
Example
Request
curl -X GET "https://api.testingapis.com/api/Todos?limit=2"Response200 OK
X-Total-Count: 33
X-Page: 1
X-Per-Page: 2
X-Total-Pages: 17
[
{
"id": 1,
"userId": 101,
"title": "Review pull request #42",
"completed": false,
"priority": "high",
"dueDate": "2025-07-20"
},
{
"id": 2,
"userId": 101,
… (3 more lines)