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

# Get PRs



## OpenAPI

````yaml get /prs
openapi: 3.0.0
info:
  version: 1.0.0
  title: Tusk Analytics API
servers:
  - url: https://use-tusk.uc.r.appspot.com/api/v1/analytics
security: []
paths:
  /prs:
    get:
      tags:
        - Analytics
      summary: Get PRs
      parameters:
        - schema:
            type: string
            description: Start date to filter by (inclusive)
            format: date-time
          required: false
          name: startDate
          in: query
        - schema:
            type: string
            description: End date to filter by (inclusive)
            format: date-time
          required: false
          name: endDate
          in: query
        - schema:
            type: array
            description: Repo IDs to filter by
            items:
              type: number
          required: false
          name: repoIds
          in: query
        - schema:
            type: array
            description: GitHub/GitLab usernames to filter by
            items:
              type: string
          required: false
          name: usernames
          in: query
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    clientId:
                      type: string
                      format: uuid
                    repoId:
                      type: number
                      description: Unique ID for repo
                    repoName:
                      type: string
                      description: Name of repo
                    prNumber:
                      type: number
                      description: PR number
                    prTitle:
                      type: string
                      description: Title of PR
                    prStatus:
                      type: string
                      description: Status of PR
                    prExternalCreatorId:
                      type: string
                      description: GitHub/GitLab username of PR creator
                    latestTestingCommitCheckRunCreatedAt:
                      type: string
                      description: Date and time of latest Tusk run
                      format: date-time
                    latestTestingCommitCheckRunId:
                      type: string
                      description: ID of latest Tusk run
                    hasTests:
                      type: boolean
                      description: Whether the PR had Tusk tests generated on any commit
                    hasFailedTests:
                      type: boolean
                      description: >-
                        Whether the PR had failing Tusk tests (i.e. potential
                        bugs Tusk detected) generated on any commit
                    numTestsIncorporated:
                      type: number
                      description: Number of individual tests incorporated
                    numFailedTestsIncorporated:
                      type: number
                      description: >-
                        Number of individual failing tests incorporated (i.e.
                        potential bugs Tusk detected)
                    totalViews:
                      type: number
                      description: >-
                        Total number of views of Tusk output in GitHub/GitLab or
                        Tusk UI
                  required:
                    - clientId
                    - repoId
                    - repoName
                    - prNumber
                    - prTitle
                    - prStatus
                    - prExternalCreatorId
                    - latestTestingCommitCheckRunCreatedAt
                    - latestTestingCommitCheckRunId
                    - hasTests
                    - hasFailedTests
                    - numTestsIncorporated
                    - numFailedTestsIncorporated
                    - totalViews
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````