{
  "openapi": "3.0.1",
  "info": {
    "title": "Athletics Rankings, Athletes & Calendar",
    "description": "Athletics data: world rankings by event, athlete profiles with personal bests and honours, competition calendar, results and world records. Data from World Athletics.",
    "version": "0.1",
    "x-build-id": "EQbBVqZlJSgngb3x7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapermaster~athletics-rankings-athletes-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapermaster-athletics-rankings-athletes-calendar",
        "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/scrapermaster~athletics-rankings-athletes-calendar/runs": {
      "post": {
        "operationId": "runs-sync-scrapermaster-athletics-rankings-athletes-calendar",
        "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/scrapermaster~athletics-rankings-athletes-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-scrapermaster-athletics-rankings-athletes-calendar",
        "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": "Mode",
            "enum": [
              "rankings",
              "athlete",
              "calendar",
              "results",
              "records"
            ],
            "type": "string",
            "description": "What to extract: world rankings, athlete profiles, the competition calendar, competition results, or records.",
            "default": "rankings"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of result rows to return.",
            "default": 25
          },
          "event": {
            "title": "Event",
            "type": "string",
            "description": "Rankings: event slug as used in World Athletics URLs (100m, 400m, marathon, high-jump, 110mh, overall-ranking ...). Results and records: part of the event name, e.g. '100 Metres'.",
            "default": "100m"
          },
          "sex": {
            "title": "Sex",
            "enum": [
              "men",
              "women"
            ],
            "type": "string",
            "description": "Men or women. Used by rankings (required), and as an optional filter for results and records.",
            "default": "men"
          },
          "regionType": {
            "title": "Rankings region type",
            "enum": [
              "world",
              "area",
              "countries"
            ],
            "type": "string",
            "description": "Rankings only. World list, an area, or a single country.",
            "default": "world"
          },
          "region": {
            "title": "Rankings region",
            "type": "string",
            "description": "Rankings only. For 'area': africa, asia, europe, north and central america, oceania, south america. For 'countries': a lowercase three-letter code such as usa, ken, jam."
          },
          "rankDate": {
            "title": "Rankings date",
            "type": "string",
            "description": "Rankings only. A weekly ranking date as YYYY-MM-DD (for example 2026-09-29). Leave empty for the latest list."
          },
          "includeMovement": {
            "title": "Compute place movement",
            "type": "boolean",
            "description": "Rankings only. Also read the previous week's list to compute place movement. Costs a few extra page loads.",
            "default": true
          },
          "athletes": {
            "title": "Athlete URLs or IDs",
            "type": "array",
            "description": "Athlete mode. Profile URLs (https://worldathletics.org/athletes/jamaica/oblique-seville-14737998) or numeric athlete IDs (14737998).",
            "items": {
              "type": "string"
            }
          },
          "searchNames": {
            "title": "Search athletes by name",
            "type": "array",
            "description": "Athlete mode. Names to look up; the best matches are fetched as full profiles.",
            "items": {
              "type": "string"
            }
          },
          "searchResultsPerName": {
            "title": "Matches per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Athlete mode. How many search matches to fetch per name.",
            "default": 1
          },
          "includeResultsByYear": {
            "title": "Include results of the latest season",
            "type": "boolean",
            "description": "Athlete mode. Adds the athlete's results list for the season shown on the profile page.",
            "default": true
          },
          "year": {
            "title": "Calendar year",
            "minimum": 1896,
            "maximum": 2100,
            "type": "integer",
            "description": "Calendar mode. Year of the competitions.",
            "default": 2025
          },
          "area": {
            "title": "Calendar area",
            "type": "string",
            "description": "Calendar mode, optional. Africa, Asia, Europe, North and Central America, Oceania or South America."
          },
          "country": {
            "title": "Calendar country",
            "type": "string",
            "description": "Calendar mode, optional. Country name (Kenya) or three-letter code (KEN)."
          },
          "category": {
            "title": "Calendar category",
            "type": "string",
            "description": "Calendar mode, optional. Ranking category code, for example OW, DF, GW, A, B, C, D, E, F."
          },
          "discipline": {
            "title": "Calendar discipline",
            "type": "string",
            "description": "Calendar mode, optional. For example Road Running, Track and Field, Race Walking, Combined Events."
          },
          "query": {
            "title": "Calendar text search",
            "type": "string",
            "description": "Calendar mode, optional. Free-text filter on competition name."
          },
          "competitions": {
            "title": "Competitions",
            "type": "array",
            "description": "Results mode. Competition IDs or URLs containing eventId=ID (IDs appear in the calendar mode output).",
            "items": {
              "type": "string"
            }
          },
          "recordType": {
            "title": "Record type",
            "type": "string",
            "description": "Records mode. For example 'World Records', 'World U20 Records', 'Olympic Games Records', 'World Championships in Athletics Records', 'World Best Performances'.",
            "default": "World Records"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}