Skip to main content
AppSignal provides a GraphQL API that allows you to programmatically query your application data. On this page, you’ll find query examples to help you get started. For write operations, see the mutation examples page. Read the GraphQL API page for more information about the GraphQL endpoint and authentication.
Reading bulk data — metrics, logs, and traces — through the GraphQL API is deprecated. Use the REST API (V2) instead, such as metrics and log search. The GraphQL API does not expose log lines. The metric examples on this page remain for existing integrations.

Fetch deployments

Query

Query variables

Fetch incidents for a deploy

Query

Query variables

Search incidents by tag

Query

Query variables

The following examples use the legacy GraphQL metrics API and remain here for existing integrations.

Fetch error count

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics list endpoint instead.

Query

Query variables

Fetch mean (timeseries)

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics timeseries endpoint instead.

Query

Query variables

Fetch mean (aggregated)

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics list endpoint instead.

Query

Query variables

Fetch incident with sample

Query

Query variables

Fetch uptime monitors and their alerts

Query

Query variables

Fetch uptime monitor status

This example uses the deprecated GraphQL metrics API. For new integrations, use the REST metrics timeseries endpoint instead.

Query

Query variables