> ## 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.

# openrouter_rankings

> Run the openrouter_rankings tool. Returns a clean, normalized JSON shape.



## OpenAPI

````yaml /openapi.json post /v1/openrouter_rankings
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/openrouter_rankings:
    post:
      tags:
        - Tools
      summary: openrouter_rankings
      description: >-
        Run the openrouter_rankings tool. Returns a clean, normalized JSON
        shape.
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              type: object
              properties:
                start_date:
                  description: YYYY-MM-DD (UTC), inclusive. Defaults to 30 days back.
                  type: string
                end_date:
                  description: YYYY-MM-DD (UTC), inclusive.
                  type: string
                period:
                  anyOf:
                    - const: day
                      type: string
                    - const: week
                      type: string
                    - const: month
                      type: string
                modality:
                  anyOf:
                    - const: text
                      type: string
                    - const: image
                      type: string
                    - const: image_output
                      type: string
                    - const: audio
                      type: string
                    - const: tool_calling
                      type: string
                context_bucket:
                  anyOf:
                    - const: 1K
                      type: string
                    - const: 10K
                      type: string
                    - const: 100K
                      type: string
                    - const: 1M
                      type: string
                    - const: 10M
                      type: string
                category:
                  anyOf:
                    - const: programming
                      type: string
                    - const: roleplay
                      type: string
                    - const: marketing
                      type: string
                    - const: marketing/seo
                      type: string
                    - const: technology
                      type: string
                    - const: science
                      type: string
                    - const: translation
                      type: string
                    - const: legal
                      type: string
                    - const: finance
                      type: string
                    - const: health
                      type: string
                    - const: trivia
                      type: string
                    - const: academia
                      type: string
                language_type:
                  anyOf:
                    - const: natural
                      type: string
                    - const: programming
                      type: string
      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.

````