# Endpoint activity and uptime (/docs/api/catalog/activity_get)

Per-endpoint uptime (share of calls without a vendor-side failure), p50/p95 latency and volume over time for a capability or provider, plus the top public apps using it.

`GET /v1/catalog/activity`

```json
{
  "operationId": "activity_get",
  "summary": "Endpoint activity and uptime",
  "description": "Per-endpoint uptime (share of calls without a vendor-side failure), p50/p95 latency and volume over time for a capability or provider, plus the top public apps using it.",
  "tags": [
    "catalog"
  ],
  "parameters": [
    {
      "schema": {
        "type": "string",
        "pattern": "^[a-z]+(\\.[a-z0-9_]+)+$"
      },
      "required": false,
      "name": "capability",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
      },
      "required": false,
      "name": "provider",
      "in": "query"
    },
    {
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 90,
        "default": 30
      },
      "required": false,
      "name": "days",
      "in": "query"
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "object": {
                "type": "string",
                "enum": [
                  "activity"
                ]
              },
              "source": {
                "type": "string",
                "enum": [
                  "live",
                  "unavailable",
                  "sample"
                ]
              },
              "days": {
                "type": "integer",
                "minimum": 0
              },
              "interval_seconds": {
                "type": "integer",
                "minimum": 0
              },
              "generated_at": {
                "type": "string",
                "format": "date-time"
              },
              "endpoints": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "endpoint_id": {
                      "type": "string"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "provider_name": {
                      "type": "string"
                    },
                    "capability": {
                      "type": "string"
                    },
                    "calls": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hits": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "vendor_errors": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "uptime": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 1
                    },
                    "p50_ms": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "p95_ms": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "series": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ts": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "calls": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "hits": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "vendor_errors": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "uptime": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 0,
                            "maximum": 1
                          },
                          "p50_ms": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0
                          }
                        },
                        "required": [
                          "ts",
                          "calls",
                          "hits",
                          "vendor_errors",
                          "uptime",
                          "p50_ms"
                        ]
                      }
                    }
                  },
                  "required": [
                    "endpoint_id",
                    "provider",
                    "provider_name",
                    "capability",
                    "calls",
                    "hits",
                    "vendor_errors",
                    "uptime",
                    "p50_ms",
                    "p95_ms",
                    "series"
                  ]
                }
              },
              "top_apps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "calls": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "url",
                    "calls"
                  ]
                }
              }
            },
            "required": [
              "object",
              "source",
              "days",
              "interval_seconds",
              "generated_at",
              "endpoints",
              "top_apps"
            ]
          }
        }
      }
    },
    "default": {
      "description": "Error",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "enum": [
                      "invalid_request",
                      "unauthorized",
                      "insufficient_balance",
                      "max_cost_exceeded",
                      "scope_denied",
                      "budget_blocked",
                      "not_found",
                      "idempotency_mismatch",
                      "invalid_meta",
                      "rate_limited",
                      "upstream_error",
                      "response_buffer_limit",
                      "provider_capacity_unavailable",
                      "grid_saturated",
                      "upstream_timeout",
                      "conflict",
                      "internal_error",
                      "account_frozen",
                      "strict_filters",
                      "plan_limit_reached",
                      "validation_failed",
                      "deadline_exceeded",
                      "cancelled"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "request_id": {
                    "type": "string"
                  },
                  "call_id": {
                    "type": "string"
                  },
                  "retry_after_ms": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "details": {
                    "type": "object",
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "message"
                ]
              }
            },
            "required": [
              "error"
            ]
          }
        }
      }
    }
  }
}
```
