> ## Documentation Index
> Fetch the complete documentation index at: https://docs.context.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List Monitor Changes

> List the changes a monitor has detected, filterable by time window and tag.

<Badge color="green">0 Credits</Badge>


## OpenAPI

````yaml GET /monitors/{monitor_id}/changes
openapi: 3.0.0
info:
  title: Context API
  description: API for retrieving context data from any website
  version: 1.0.0
servers:
  - url: https://api.context.dev/v1
security: []
tags:
  - name: Monitors
    description: >-
      Monitor pages, sitemaps, and extracted website data for exact or semantic
      changes. The change.detected webhook payload is documented by the
      MonitorsChangeDetectedWebhookPayload schema.
paths:
  /monitors/{monitor_id}/changes:
    get:
      tags:
        - Monitors
      summary: List changes for a monitor
      operationId: listMonitorChanges
      parameters:
        - $ref: '#/components/parameters/MonitorsMonitorId'
        - $ref: '#/components/parameters/MonitorsSince'
        - $ref: '#/components/parameters/MonitorsUntil'
        - $ref: '#/components/parameters/MonitorsLimit'
        - $ref: '#/components/parameters/MonitorsCursor'
        - $ref: '#/components/parameters/MonitorsTagFilter'
      responses:
        '200':
          description: A paginated list of changes for the monitor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorsListChangesResponse'
        '401':
          $ref: '#/components/responses/MonitorsUnauthorized'
        '404':
          $ref: '#/components/responses/MonitorsNotFound'
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import ContextDev from 'context.dev';

            const client = new ContextDev({
              apiKey: process.env['CONTEXT_DEV_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.monitors.listChanges('mon_123');

            console.log(response.data);
        - lang: Python
          source: |-
            import os
            from context.dev import ContextDev

            client = ContextDev(
                api_key=os.environ.get("CONTEXT_DEV_API_KEY"),  # This is the default and can be omitted
            )
            response = client.monitors.list_changes(
                monitor_id="mon_123",
            )
            print(response.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/context-dot-dev/context-go-sdk\"\n\t\"github.com/context-dot-dev/context-go-sdk/option\"\n)\n\nfunc main() {\n\tclient := contextdev.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tresponse, err := client.Monitors.ListChanges(\n\t\tcontext.TODO(),\n\t\t\"mon_123\",\n\t\tcontextdev.MonitorListChangesParams{},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", response.Data)\n}\n"
        - lang: Ruby
          source: |-
            require "context_dev"

            context_dev = ContextDev::Client.new(api_key: "My API Key")

            response = context_dev.monitors.list_changes("mon_123")

            puts(response)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use ContextDev\Client;

            use ContextDev\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('CONTEXT_DEV_API_KEY') ?: 'My
            API Key');


            try {
              $response = $client->monitors->listChanges(
                'mon_123',
                cursor: 'cursor',
                limit: 1,
                since: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
                tag: 'tag',
                until: new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
              );

              var_dump($response);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            context-dev monitors list-changes \
              --api-key 'My API Key' \
              --monitor-id mon_123
components:
  parameters:
    MonitorsMonitorId:
      name: monitor_id
      in: path
      required: true
      schema:
        type: string
      example: mon_123
    MonitorsSince:
      name: since
      in: query
      required: false
      schema:
        type: string
        format: date-time
      example: '2026-06-01T00:00:00Z'
    MonitorsUntil:
      name: until
      in: query
      required: false
      schema:
        type: string
        format: date-time
      example: '2026-06-28T00:00:00Z'
    MonitorsLimit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    MonitorsCursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
    MonitorsTagFilter:
      name: tag
      in: query
      required: false
      schema:
        type: string
      description: Filter to items that have this tag.
      example: pricing
  schemas:
    MonitorsListChangesResponse:
      type: object
      required:
        - data
        - has_more
        - next_cursor
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MonitorsChangeSummary'
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true
      additionalProperties: false
    MonitorsChangeSummary:
      type: object
      title: Change summary
      description: >-
        A lightweight change summary. `mode` is the constant `web`;
        `target_type` and `change_detection_type` describe the change, and which
        optional fields are present depends on them (e.g. sitemap changes
        include `added_url_count`/`removed_url_count`; semantic changes include
        `confidence`/`importance`).
      required:
        - mode
        - id
        - monitor_id
        - target_type
        - change_detection_type
        - title
        - summary
        - detected_at
        - url
      properties:
        mode:
          $ref: '#/components/schemas/MonitorsMode'
        id:
          type: string
          example: chg_123
        monitor_id:
          type: string
          example: mon_123
        target_type:
          $ref: '#/components/schemas/MonitorsTargetType'
        change_detection_type:
          $ref: '#/components/schemas/MonitorsChangeDetectionType'
        title:
          type: string
          example: Acme pricing page changed
        summary:
          type: string
          example: The visible text on the page changed.
        detected_at:
          type: string
          format: date-time
        url:
          type: string
          format: uri
        importance:
          $ref: '#/components/schemas/MonitorsImportance'
        confidence:
          type: number
          minimum: 0
          maximum: 1
        added_url_count:
          type: integer
          minimum: 0
        removed_url_count:
          type: integer
          minimum: 0
        matched_url_count:
          type: integer
          minimum: 0
        tags:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 50
          maxItems: 20
          description: >-
            User-defined tags for grouping and filtering monitors and their
            changes.
          example:
            - pricing
            - competitor
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Error message
        error_code:
          type: string
          enum:
            - INTERNAL_ERROR
            - VALID
            - NOT_FOUND
            - FORBIDDEN
            - USAGE_EXCEEDED
            - RATE_LIMITED
            - UNAUTHORIZED
            - DISABLED
            - INSUFFICIENT_PERMISSIONS
            - TIMEOUT_EXCEEDS_MAXIMUM
            - WEBSITE_ACCESS_ERROR
            - EXTERNAL_PROVIDER_ERROR
            - INPUT_VALIDATION_ERROR
            - REQUEST_TIMEOUT
          description: Error code indicating the type of error
        key_metadata:
          $ref: '#/components/schemas/KeyMetadata'
    MonitorsMode:
      type: string
      title: Monitor mode
      enum:
        - web
      description: >-
        Top-level monitor category. Always `web` today; the concrete behavior is
        described by `target` and `change_detection`.
    MonitorsTargetType:
      type: string
      enum:
        - page
        - sitemap
        - extract
    MonitorsChangeDetectionType:
      type: string
      enum:
        - exact
        - semantic
    MonitorsImportance:
      type: string
      enum:
        - low
        - medium
        - high
    KeyMetadata:
      type: object
      description: >-
        Metadata about the API key used for the request. Included in every
        response whenever a valid API key is provided, even when the response
        status is not 200.
      properties:
        credits_consumed:
          type: integer
          description: The number of credits consumed by this request.
        credits_remaining:
          type: integer
          description: >-
            The number of credits remaining for your organization after this
            request.
      required:
        - credits_consumed
        - credits_remaining
  responses:
    MonitorsUnauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    MonitorsNotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````