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

# Get Monitor Run

> Gets a specific monitor run.



## OpenAPI

````yaml get /v0/monitors/{monitor}/runs/{id}
openapi: 3.1.0
info:
  title: Websets
  description: ''
  version: '0'
  contact: {}
servers:
  - url: https://api.exa.ai/websets/
    description: Production
security: []
tags: []
paths:
  /v0/monitors/{monitor}/runs/{id}:
    get:
      tags:
        - Monitors Runs
      summary: Get Monitor Run
      description: Gets a specific monitor run.
      operationId: monitors-runs-get
      parameters:
        - name: monitor
          required: true
          in: path
          description: The id of the Monitor to get the run for
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Monitor run details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorRun'
          headers:
            X-Request-Id:
              schema:
                type: string
              description: Unique identifier for the request.
              example: req_N6SsgoiaOQOPqsYKKiw5
              required: true
      security:
        - api_key: []
      x-codeSamples:
        - lang: javascript
          label: JavaScript
          source: >-
            // npm install exa-js

            import Exa from 'exa-js';

            const exa = new Exa('YOUR_EXA_API_KEY');


            const run = await exa.websets.monitors.runs.get('monitor_id',
            'run_id');


            console.log(`Monitor run: ${run.id} - ${run.status}`);
        - lang: python
          label: Python
          source: |-
            # pip install exa-py
            from exa_py import Exa
            exa = Exa('YOUR_EXA_API_KEY')

            run = exa.websets.monitors.runs.get('monitor_id', 'run_id')

            print(f'Monitor run: {run.id} - {run.status}')
components:
  schemas:
    MonitorRun:
      type:
        - object
      properties:
        id:
          type:
            - string
          description: The unique identifier for the Monitor Run
        object:
          type:
            - string
          enum:
            - monitor_run
          description: The type of object
        status:
          type:
            - string
          enum:
            - created
            - running
            - completed
            - canceled
            - failed
          description: The status of the Monitor Run
        monitorId:
          type:
            - string
          description: The monitor that the run is associated with
        type:
          type:
            - string
          enum:
            - search
            - refresh
          description: The type of the Monitor Run
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the run completed
        failedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the run failed
        failedReason:
          type:
            - string
            - 'null'
          description: The reason the run failed
        canceledAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the run was canceled
        createdAt:
          type:
            - string
          format: date-time
          description: When the run was created
        updatedAt:
          type:
            - string
          format: date-time
          description: When the run was last updated
      required:
        - id
        - object
        - monitorId
        - status
        - type
        - completedAt
        - failedAt
        - failedReason
        - canceledAt
        - createdAt
        - updatedAt
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Exa API key

````