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

# Crawler Requests vs Previous Period

> Get requests per crawler in the range and in the preceding range of the same length. Returns one row per requested crawler, zero-filled when it has no requests. Projects with no recorded crawler logs return an empty array.



## OpenAPI

````yaml /v2/openapi.json get /analytics/crawlers/comparison
openapi: 3.0.0
info:
  title: Promptwatch API v2
  description: >-
    API v2 for customer integrations with Promptwatch monitoring platform. This
    version provides improved structure, additional endpoints, and enhanced
    functionality.
  version: 2.0.0
  contact:
    name: Promptwatch Support
    email: support@promptwatch.com
    url: https://promptwatch.com
  license:
    name: Commercial
    url: https://promptwatch.com/terms-and-conditions
servers:
  - url: https://server.promptwatch.com/api/v2
    description: Promptwatch API v2
security: []
tags:
  - name: Authentication
    description: API key validation and authentication
  - name: Content
    description: >-
      AI content generation and content refresh. Create content asynchronously
      and poll for results.
  - name: Content Agent
    description: >-
      Content Agent (automated content) lifecycle: project settings, scheduled
      slots, review (accept/decline), and publish.
  - name: Content Gap
    description: Content gap analysis and recommendations
  - name: Publishing
    description: >-
      Publish content to a connected CMS, or record a live URL, and track the
      published page
  - name: IndexNow
    description: Submit pages to search engines through IndexNow and track each submission
  - name: Models
    description: Available LLM models
  - name: Monitors
    description: Monitor management and CRUD operations
  - name: Page Tracker
    description: Track URLs and inspect citation stats, responses, and prompts
  - name: Prompts
    description: Prompt management and operations
  - name: Query Fanouts
    description: ChatGPT query fanout keywords
  - name: Responses
    description: LLM response data and analytics
  - name: Tags
    description: Tag management for prompts
  - name: Topics
    description: Topic management for prompts
  - name: Actions
    description: Action items (GEO suggestions and tasks)
  - name: Personas
    description: Persona configuration for monitors
  - name: Brands
    description: Brand management for competitive analysis
  - name: Brand Book
    description: Brand name, website, aliases, and the copy used to describe the brand
  - name: Visibility
    description: >-
      Brand visibility time series, competitor heatmaps, and performance
      heatmaps
  - name: Events
    description: >-
      Dated project events such as prompts added and actions completed, for
      annotating time series
  - name: Citations
    description: Citation analytics from AI responses
  - name: Analytics
    description: Visitor analytics, AI crawler logs, sentiment, and brand visibility trends
  - name: Search Insights
    description: >-
      Google Search Console and Bing Webmaster performance for the project
      website
  - name: Projects
    description: Project management (organization-level keys only)
  - name: Usage
    description: Plan usage and limits (organization-level keys only)
  - name: Sitemap
    description: Sitemap feeds, crawler settings, crawl progress, and discovered URLs
  - name: Site Health
    description: Deprecated. Legacy SEO issue pages. Use Site Audit for the current checks.
  - name: Site Audit
    description: >-
      Site audit runs, issue lists, link and content insights, and per-URL
      history
  - name: Socials
    description: >-
      Social media citations (Reddit posts, YouTube videos, LinkedIn posts, and
      Instagram posts) found in LLM responses
  - name: Ads Radar
    description: Sponsored ads captured in AI answers
  - name: Shopping
    description: Product appearances in AI shopping answers and tracked products
paths:
  /analytics/crawlers/comparison:
    get:
      tags:
        - Analytics
      summary: Crawler Requests vs Previous Period
      description: >-
        Get requests per crawler in the range and in the preceding range of the
        same length. Returns one row per requested crawler, zero-filled when it
        has no requests. Projects with no recorded crawler logs return an empty
        array.
      operationId: getCrawlerComparisonStats
      parameters:
        - schema:
            type: string
            format: date
          in: query
          name: startDate
          required: false
          description: Start date for analytics data (YYYY-MM-DD). Max range 92 days.
        - schema:
            type: string
            format: date
          in: query
          name: endDate
          required: false
          description: End date for analytics data (YYYY-MM-DD). Max range 92 days.
        - schema:
            anyOf:
              - type: string
                enum:
                  - openai-gptbot
                  - openai-searchbot
                  - openai-chatgpt-user
                  - openai-adsbot
                  - anthropic-claudebot
                  - anthropic-claude-user
                  - anthropic-claude-user-unverified
                  - anthropic-claude-search-bot
                  - anthropic-claude-web
                  - perplexity-bot
                  - perplexity-user
                  - cohere-ai
                  - mistral-ai-user
                  - mistral-ai-index
                  - deepseek-bot
                  - x-ai-grok-bot
                  - x-ai-grok-search
                  - x-ai-grok-deep-search
                  - google-extended
                  - google-mobile-agent
                  - google-desktop-agent
                  - meta-web-indexer
                  - meta-external-agent
                  - meta-external-fetcher
                  - meta-facebook-bot
                  - exa-searchbot
                  - exa-user
              - type: array
                minItems: 1
                items:
                  type: string
                  enum:
                    - openai-gptbot
                    - openai-searchbot
                    - openai-chatgpt-user
                    - openai-adsbot
                    - anthropic-claudebot
                    - anthropic-claude-user
                    - anthropic-claude-user-unverified
                    - anthropic-claude-search-bot
                    - anthropic-claude-web
                    - perplexity-bot
                    - perplexity-user
                    - cohere-ai
                    - mistral-ai-user
                    - mistral-ai-index
                    - deepseek-bot
                    - x-ai-grok-bot
                    - x-ai-grok-search
                    - x-ai-grok-deep-search
                    - google-extended
                    - google-mobile-agent
                    - google-desktop-agent
                    - meta-web-indexer
                    - meta-external-agent
                    - meta-external-fetcher
                    - meta-facebook-bot
                    - exa-searchbot
                    - exa-user
          in: query
          name: crawlers
          required: true
          description: >-
            Crawler(s) to compare; required. Repeat for multiple:
            crawlers=openai-chatgpt-user&crawlers=perplexity-user. Allowed:
            openai-gptbot, openai-searchbot, openai-chatgpt-user, openai-adsbot,
            anthropic-claudebot, anthropic-claude-user,
            anthropic-claude-user-unverified, anthropic-claude-search-bot,
            anthropic-claude-web, perplexity-bot, perplexity-user, cohere-ai,
            mistral-ai-user, mistral-ai-index, deepseek-bot, x-ai-grok-bot,
            x-ai-grok-search, x-ai-grok-deep-search, google-extended,
            google-mobile-agent, google-desktop-agent, meta-web-indexer,
            meta-external-agent, meta-external-fetcher, meta-facebook-bot,
            exa-searchbot, exa-user.
        - schema:
            type: string
          in: query
          name: path
          required: false
          description: Filter by specific page path
        - schema:
            type: string
            enum:
              - exact
              - partial
          in: query
          name: pathMatch
          required: false
          description: >-
            Path matching mode: 'exact' for exact match, 'partial' for prefix
            match (default: 'partial')
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    crawler:
                      type: string
                      description: Crawler key
                    requests:
                      type: integer
                      description: Requests in the selected range
                    requestsPrevious:
                      type: integer
                      description: Requests in the preceding range of the same length
                    requestsChangePercentage:
                      type: number
                      description: Change from the preceding range, in percent
                  required:
                    - crawler
                    - requests
                    - requestsPrevious
                    - requestsChangePercentage
                  additionalProperties: false
                example:
                  - crawler: openai-chatgpt-user
                    requests: 1840
                    requestsPrevious: 1520
                    requestsChangePercentage: 21.05
                  - crawler: perplexity-user
                    requests: 410
                    requestsPrevious: 455
                    requestsChangePercentage: -9.89
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Bad Request
                  code: DATE_RANGE_TOO_LARGE
                  message: Date range cannot exceed 92 days
                properties:
                  error:
                    type: string
                    description: Error label
                  code:
                    type: string
                    description: Optional machine-readable code (e.g. DATE_RANGE_TOO_LARGE)
                  message:
                    type: string
                    description: Reason the request was rejected
                required:
                  - error
                  - message
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Unauthorized
                  message: Missing or invalid X-API-Key header.
                properties:
                  error:
                    type: string
                    description: Error category (often aligned with HTTP semantics)
                  code:
                    type: string
                    description: Optional machine-readable code
                  message:
                    type: string
                    description: Human-readable explanation
                  details:
                    type: object
                    description: Optional structured detail (e.g. validation)
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - CRAWLER_ANALYTICS_PROJECT_NOT_FOUND
                      - CRAWLER_ANALYTICS_EVENTS_FETCH_FAILED
                      - INTERNAL_ERROR
                    example: CRAWLER_ANALYTICS_PROJECT_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                    example: Project not found
                required:
                  - code
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - CRAWLER_ANALYTICS_PROJECT_NOT_FOUND
                      - CRAWLER_ANALYTICS_EVENTS_FETCH_FAILED
                      - INTERNAL_ERROR
                    example: CRAWLER_ANALYTICS_PROJECT_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                    example: Project not found
                required:
                  - code
                  - message
                additionalProperties: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get yours from the Promptwatch dashboard
        under Settings > API Keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.