# Get a third-party service

Get one vendor's status changes in a time window, optionally narrowed to a region or service.

[endpoint]
method = "GET"
base_url = "https://incidents.betterstack.com"
path = "/api/v2/third-party-services/{id}"

[[path_param]]
name = "id"
required = true
type = "string"
description = "The vendor's `id` from the list, such as `aws`, its name, or one of its aliases."

[[query_param]]
name = "from"
type = "string"
description = "Start of the window, an ISO 8601 time with a time zone. Defaults to 24 hours before `to`."

[[query_param]]
name = "to"
type = "string"
description = "End of the window, an ISO 8601 time with a time zone. Defaults to now."

[[query_param]]
name = "region"
type = "string"
description = "A region or group to narrow to, such as `us-east-1`. Narrow AWS, Azure and Cloudflare, which report a change somewhere on most days."

[[query_param]]
name = "service"
type = "string"
description = "Words every service's name must contain, such as `EC2`. A change's `service` shows the names to match."

[[query_param]]
name = "team_id"
type = "string"
description = "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = "Returns the third-party service."
body = '''
{
  "data": {
    "id": "aws",
    "type": "third_party_service",
    "attributes": {
      "name": "AWS",
      "aliases": [
        "Amazon"
      ],
      "category": "Cloud",
      "status": "degraded",
      "services_not_operational": 3,
      "status_page_url": "https://health.aws.amazon.com/health/status",
      "status_unknown": false,
      "status_read_at": "2026-11-22T10:41:00Z",
      "status_page_rows": [
        {
          "status_page_id": "123",
          "status_page_name": "Acme status",
          "name": "AWS: us-east-1",
          "status": "operational"
        }
      ],
      "from": "2026-11-21T10:00:00Z",
      "to": "2026-11-22T10:00:00Z",
      "region": "us-east-1",
      "service": "EC2",
      "services_total": 5806,
      "services_matched": 12,
      "groups": [
        {
          "name": "us-east-1",
          "status": "degraded",
          "services": 220,
          "services_not_operational": 2
        }
      ],
      "changes_total": 2,
      "changes_truncated": false,
      "changes": [
        {
          "service": "EC2 (us-east-1)",
          "status": "degraded",
          "started_at": "2026-11-22T08:10:00Z",
          "ended_at": null
        }
      ]
    }
  }
}
'''

[[response]]
status = 401
description = "The API token is missing or invalid."
body = '''
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
'''

[[response]]
status = 403
description = "Your role doesn't allow viewing this, or the token can't be used for this API."

[[response]]
status = 404
description = "No vendor's `id`, name or alias matches the ID exactly. The message lists the tracked vendors."
body = '''
{
  "errors": "No third party service matches 'AWS east'. To search by part of a name, use the name filter on GET /api/v2/third-party-services. Tracked: AWS, GitHub."
}
'''

[[response]]
status = 422
description = "The `from` or `to` parameter isn't an ISO 8601 time with a time zone, or `to` isn't after `from`."
body = '''
{
  "errors": "To must be after from."
}
'''
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the third-party service, such as `aws`."

[[param]]
name = "type"
type = "string"
description = "Always `third_party_service`."

[[param]]
name = "name"
type = "string"
description = "The vendor's name."

[[param]]
name = "aliases"
type = "array of strings"
description = "Other names the vendor goes by. The list's `name` filter and the `id` of a single vendor match them too."

[[param]]
name = "category"
type = "string"
description = "The kind of service, as the status page editor groups vendors."

[[param]]
name = "status"
type = "string"
description = "The vendor's headline status, as its own status page states it, such as `operational`, `degraded` or `downtime`. A vendor can read `operational` with a few services down, which `services_not_operational` shows."

[[param]]
name = "services_not_operational"
type = "integer"
description = "How many of the services or locations the vendor lists aren't operational now."

[[param]]
name = "status_page_url"
type = "string"
description = "The vendor's own status page."

[[param]]
name = "status_unknown"
type = "boolean"
description = "`true` when Better Stack couldn't read the vendor's status page lately, or hasn't yet."

[[param]]
name = "status_read_at"
type = "datetime or null"
description = "When Better Stack last read the vendor's status page. `null` before the first read. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."

[[param]]
name = "status_page_rows"
type = "array of objects"
description = "The rows the organization's own status pages show for this vendor, each with the status the page shows for it."

[[param]]
name = "status_page_rows[].status_page_id"
type = "string"
description = "The ID of the status page that shows the row."

[[param]]
name = "status_page_rows[].status_page_name"
type = "string"
description = "The status page's company name."

[[param]]
name = "status_page_rows[].name"
type = "string"
description = "The row's name, such as `AWS: us-east-1`."

[[param]]
name = "status_page_rows[].status"
type = "string"
description = "The status the row shows, such as `operational`, `degraded` or `downtime`."

[[param]]
name = "from"
type = "datetime"
description = "Start of the window the changes overlap. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."

[[param]]
name = "to"
type = "datetime"
description = "End of the window the changes overlap. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."

[[param]]
name = "region"
type = "string or null"
description = "The region the changes were narrowed to, or `null` when they weren't."

[[param]]
name = "service"
type = "string or null"
description = "The service the changes were narrowed to, or `null` when they weren't."

[[param]]
name = "services_total"
type = "integer"
description = "How many services or locations the vendor lists."

[[param]]
name = "services_matched"
type = "integer"
description = "How many of them `region` and `service` matched."

[[param]]
name = "groups"
type = "array of objects"
description = "The vendor's regions or groups, to narrow to one with `region`."

[[param]]
name = "groups[].name"
type = "string"
description = "The region's or group's name, such as `us-east-1`."

[[param]]
name = "groups[].status"
type = "string"
description = "The region's or group's status, such as `operational` or `degraded`."

[[param]]
name = "groups[].services"
type = "integer"
description = "How many services the region or group lists."

[[param]]
name = "groups[].services_not_operational"
type = "integer"
description = "How many of its services aren't operational now."

[[param]]
name = "changes_total"
type = "integer"
description = "How many status changes overlap the window."

[[param]]
name = "changes_truncated"
type = "boolean"
description = "`true` when only the newest 50 changes are listed. Narrow the window, `region` or `service` to see the rest."

[[param]]
name = "changes"
type = "array of objects"
description = "The status changes of the matched services that overlap the window, newest first."

[[param]]
name = "changes[].service"
type = "string"
description = "The service that changed status, such as `EC2 (us-east-1)`."

[[param]]
name = "changes[].status"
type = "string"
description = "The status the service changed to, such as `degraded`."

[[param]]
name = "changes[].started_at"
type = "datetime"
description = "When the change started. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."

[[param]]
name = "changes[].ended_at"
type = "datetime or null"
description = "When the change ended. `null` while it's ongoing. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."
[/params]

#### Example cURL

[code-tabs]
```shell
[label Get a third-party service]
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/third-party-services/aws \
  --header "Authorization: Bearer $TOKEN"
```
```shell
[label One region in a time window]
curl --request GET \
  --url "https://incidents.betterstack.com/api/v2/third-party-services/aws?region=us-east-1&from=2026-11-22T09:30:00Z&to=2026-11-22T10:30:00Z" \
  --header "Authorization: Bearer $TOKEN"
```
[/code-tabs]
