TestingAPIs is still being built. If something breaks, email support@testingapis.com.

List companies with filtering, sorting, search and pagination

GEThttps://api.testingapis.com/api/CompaniesSign in to see this endpoint's URL

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/Companies?limit=2" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
X-Total-Count: 11
X-Page: 1
X-Per-Page: 2
X-Total-Pages: 6

[
  {
    "id": 1,
    "name": "Nimbus Cloud Systems",
    "industry": "Technology",
    "founded": 2008,
    "website": "https://nimbuscloud.example.com",
    "headquarters": {"city": "San Francisco", "country": "USA"},
    "revenue": 1250000000,
    "employeeCount": 4200
  },
  {
… (3 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.