{
  "openapi": "3.0.1",
  "info": {
    "title": "Valorant Esports Scraper - VLR.gg Matches, Player Stats & Odds",
    "description": "Valorant pro match data from VLR.gg: results, live and upcoming matches, events, maps, round-by-round results, per-map player stats by side, veto and pre-match odds, plus the player stats leaderboard.",
    "version": "1.0",
    "x-build-id": "eMlPcCf5W39G5gBlA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axlymxp~valorant-esports-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axlymxp-valorant-esports-scraper",
        "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/axlymxp~valorant-esports-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axlymxp-valorant-esports-scraper",
        "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/axlymxp~valorant-esports-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axlymxp-valorant-esports-scraper",
        "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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "matches",
              "leaderboard"
            ],
            "type": "string",
            "description": "Matches with optional full detail, or the VLR.gg player stats leaderboard.",
            "default": "matches"
          },
          "feed": {
            "title": "Match feed",
            "enum": [
              "results",
              "upcoming",
              "both"
            ],
            "type": "string",
            "description": "Used when no events or match URLs are given.",
            "default": "results"
          },
          "dateFrom": {
            "title": "Results from (date)",
            "pattern": "^\\s*(|\\d{4}-\\d{1,2}-\\d{1,2}|[Tt][Oo][Dd][Aa][Yy]|[Yy][Ee][Ss][Tt][Ee][Rr][Dd][Aa][Yy]|[+-]\\d{1,4})\\s*$",
            "type": "string",
            "description": "Oldest result date: YYYY-MM-DD, today, yesterday or -N days (default yesterday). Results are read newest first until this date."
          },
          "dateTo": {
            "title": "Results until (date)",
            "pattern": "^\\s*(|\\d{4}-\\d{1,2}-\\d{1,2}|[Tt][Oo][Dd][Aa][Yy]|[Yy][Ee][Ss][Tt][Ee][Rr][Dd][Aa][Yy]|[+-]\\d{1,4})\\s*$",
            "type": "string",
            "description": "Optional newest result date (YYYY-MM-DD, today, yesterday or -N)."
          },
          "events": {
            "title": "Events",
            "type": "array",
            "description": "VLR.gg event URLs or ids (e.g. https://www.vlr.gg/event/2283/valorant-champions-2025): all matches of the event.",
            "items": {
              "type": "string"
            }
          },
          "matchUrls": {
            "title": "Match URLs or ids",
            "type": "array",
            "description": "Specific matches, e.g. https://www.vlr.gg/778513/...",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams (name contains)",
            "type": "array",
            "description": "Keep matches where either team name contains one of these (e.g. Fnatic, Sentinels).",
            "items": {
              "type": "string"
            }
          },
          "eventContains": {
            "title": "Event name contains",
            "type": "array",
            "description": "Keep matches whose event or stage contains one of these (e.g. VCT, Champions, Challengers).",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Full match details",
            "type": "boolean",
            "description": "Fetch each match page: maps with attack/defense halves, round-by-round winners and win types, per-map player stats (rating, ACS, K/D/A, KAST, ADR, HS%, first kills/deaths) for both sides, veto and pre-match odds. One 'match details' charge per match.",
            "default": true
          },
          "region": {
            "title": "Region",
            "enum": [
              "all",
              "na",
              "eu",
              "ap",
              "la",
              "la-s",
              "la-n",
              "oce",
              "kr",
              "mn",
              "gc",
              "br",
              "cn",
              "jp",
              "col"
            ],
            "type": "string",
            "description": "Leaderboard region.",
            "default": "all"
          },
          "timespan": {
            "title": "Timespan",
            "enum": [
              "30d",
              "60d",
              "90d",
              "all"
            ],
            "type": "string",
            "description": "Leaderboard period.",
            "default": "60d"
          },
          "tier": {
            "title": "Tier",
            "enum": [
              "all",
              "vct",
              "vcl",
              "t3",
              "gc",
              "cg"
            ],
            "type": "string",
            "description": "Competition tier.",
            "default": "all"
          },
          "minRounds": {
            "title": "Min rounds played",
            "minimum": 0,
            "type": "integer",
            "description": "Leaderboard: minimum rounds played.",
            "default": 200
          },
          "agent": {
            "title": "Agent",
            "type": "string",
            "description": "Leaderboard: agent name in lowercase (e.g. jett) or all.",
            "default": "all"
          },
          "side": {
            "title": "Side",
            "enum": [
              "all",
              "t",
              "ct"
            ],
            "type": "string",
            "description": "Leaderboard: side.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum rows (matches or leaderboard players). You are charged per row.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed for VLR.gg. Set one only if your runs get blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}