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

# devto_analytics

> Run the devto_analytics tool. Returns a clean, normalized JSON shape. Bring your own key — connect devto first via POST /v1/connections.



## OpenAPI

````yaml /openapi.json post /v1/devto_analytics
openapi: 3.1.0
info:
  title: fetchbean API
  version: v1
  description: >-
    One key for external tools and durable agent work products, with HTTP,
    hosted MCP, exact file artifacts, and spend controls.
servers:
  - url: https://api.fetchbean.com
security:
  - apiKeyAuth: []
paths:
  /v1/devto_analytics:
    post:
      tags:
        - Tools
      summary: devto_analytics
      description: >-
        Run the devto_analytics tool. Returns a clean, normalized JSON shape.
        Bring your own key — connect devto first via POST /v1/connections.
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              properties:
                report:
                  anyOf:
                    - const: totals
                      type: string
                    - const: past_day
                      type: string
                    - const: historical
                      type: string
                    - const: referrers
                      type: string
                    - const: follower_engagement
                      type: string
                    - const: top_contributors
                      type: string
                    - const: dashboard
                      type: string
                    - const: heatmap
                      type: string
                start:
                  description: YYYY-MM-DD, for historical.
                  type: string
                end:
                  type: string
                article_id:
                  type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        A caller-generated key for safely retrying this execution after a
        network failure. Reusing the same key with the same operation and input
        returns the original result; reusing it for a different call is
        rejected.
      schema:
        type: string
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            billable:
              type: boolean
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your fetchbean API key (fb_…). Keys are not accepted through
        Authorization.

````