{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Model Leaderboard: LMArena Rankings, Prices & Releases",
    "description": "ESPN for AI: daily LLM standings from the LMArena leaderboard (text, coding, webdev, vision, image, video, agent arenas) with week-over-week rank changes, matched to OpenRouter API prices and context, plus new model releases and Hugging Face trending models.",
    "version": "0.1",
    "x-build-id": "V8gYx1MidQMuSihkb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-co~ai-model-leaderboard/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-co-ai-model-leaderboard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/api-co~ai-model-leaderboard/runs": {
      "post": {
        "operationId": "runs-sync-api-co-ai-model-leaderboard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/api-co~ai-model-leaderboard/run-sync": {
      "post": {
        "operationId": "run-sync-api-co-ai-model-leaderboard",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "sections": {
            "title": "What to get",
            "type": "array",
            "description": "Default: all three.",
            "items": {
              "type": "string",
              "enum": [
                "standings",
                "releases",
                "trending"
              ],
              "enumTitles": [
                "Leaderboard standings (LMArena)",
                "New model releases (OpenRouter)",
                "Trending open models (Hugging Face)"
              ]
            },
            "default": [
              "standings",
              "releases",
              "trending"
            ]
          },
          "arenas": {
            "title": "Arenas",
            "type": "array",
            "description": "Which LMArena leaderboards to read. Default: Text.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "text_style_control",
                "webdev",
                "vision",
                "search",
                "document",
                "text_to_image",
                "image_edit",
                "text_to_video",
                "image_to_video",
                "video_edit",
                "agent"
              ],
              "enumTitles": [
                "Text (chat LLMs)",
                "Text, style control",
                "WebDev (coding apps)",
                "Vision",
                "Search",
                "Document",
                "Text-to-image",
                "Image edit",
                "Text-to-video",
                "Image-to-video",
                "Video edit",
                "Agent"
              ]
            },
            "default": [
              "text"
            ]
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Leaderboard categories, e.g. 'overall', 'coding', 'math', 'creative_writing', 'hard_prompts', 'instruction_following', 'multi_turn', 'longer_query', 'expert', 'english', 'spanish', 'chinese'. Image arenas have 'photorealistic', 'portraits', 'text_rendering'; WebDev has 'webdev-react', 'webdev-html'. If a category does not exist in an arena, the error row lists the ones that do.",
            "default": [
              "overall"
            ],
            "items": {
              "type": "string"
            }
          },
          "topN": {
            "title": "Top N models per leaderboard",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many ranked models to return per arena and category.",
            "default": 20
          },
          "compareDaysAgo": {
            "title": "Compare with N days ago",
            "minimum": 0,
            "maximum": 45,
            "type": "integer",
            "description": "Adds previous rank, rank change, score change and new entries versus the leaderboard published N days earlier. 0 turns it off.",
            "default": 7
          },
          "matchOpenRouterPrices": {
            "title": "Add API prices and context (OpenRouter)",
            "type": "boolean",
            "description": "Matches each ranked model with OpenRouter and adds input and output price per 1M tokens, context length and the model ID.",
            "default": true
          },
          "releasesWithinDays": {
            "title": "New releases within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Models added to OpenRouter in this window, newest first.",
            "default": 14
          },
          "maxReleases": {
            "title": "Max releases",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "0 skips releases.",
            "default": 25
          },
          "trendingLimit": {
            "title": "Hugging Face trending models",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many trending models to return. 0 skips them.",
            "default": 15
          },
          "trendingPipeline": {
            "title": "Trending: task filter",
            "enum": [
              "all",
              "text-generation",
              "image-text-to-text",
              "text-to-image",
              "text-to-video",
              "text-to-speech",
              "automatic-speech-recognition",
              "feature-extraction",
              "image-to-image"
            ],
            "type": "string",
            "description": "Only trending models for this task.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. You are only charged per row.",
            "default": 500
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}