New in 2.4: Test runs you can trust See what's new →

List events with filtering, sorting, search and pagination

GEThttps://api.testingapis.com/api/Events

Query parameters (all optional):

limit: page size, 1-100 (default: all records).

page: 1-based page number; only applies together with limit.

offset: number of records to skip (used when page is not given).

sort: property name to sort by, e.g. sort=title.

order: asc (default) or desc.

q: case-insensitive search across title, name, body, description and text fields.

Any other property name filters by exact, case-insensitive value, e.g. ?department=engineering.

Totals are returned in the X-Total-Count, X-Page, X-Per-Page and X-Total-Pages response headers.

Responses

200
The matching records (an empty array when nothing matches).

Example

Request
curl -X GET "https://api.testingapis.com/api/Events?limit=2"
Run in Studio
Response200 OK
X-Total-Count: 18
X-Page: 1
X-Per-Page: 2
X-Total-Pages: 9

[
  {
    "id": 1,
    "name": "DevConf 2026",
    "category": "conference",
    "venue": "Moscone Center",
    "city": "San Francisco",
    "startsAt": "2026-10-14T09:00:00Z",
    "endsAt": "2026-10-16T18:00:00Z",
    "price": 499.0,
    "capacity": 5000,
    "ticketsSold": 4312,
… (3 more lines)

Code examples

JavaScript (fetch)
const response = await fetch("https://api.testingapis.com/api/Events?limit=2");
console.log(response.status, await response.text());
Python (requests)
import requests

response = requests.request(
    "GET",
    "https://api.testingapis.com/api/Events?limit=2",
    allow_redirects=False,
)
print(response.status_code, response.text)
Java (HttpClient)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newBuilder()
            .followRedirects(HttpClient.Redirect.NEVER)
            .build();

        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://api.testingapis.com/api/Events?limit=2"))
            .method("GET", HttpRequest.BodyPublishers.noBody())
            .build();

        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.statusCode() + " " + response.body());
    }
}