{
  "openapi": "3.0.1",
  "info": {
    "title": "Olympic Medal & Event Results Tables",
    "description": "Returns Olympic medal tables, event podiums, sport medal tables, and country event medal breakdowns.",
    "version": "0.1",
    "x-build-id": "unmfGgqpUGeyenheb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trovevault~olympic-medal-event-results-tables/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trovevault-olympic-medal-event-results-tables",
        "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/trovevault~olympic-medal-event-results-tables/runs": {
      "post": {
        "operationId": "runs-sync-trovevault-olympic-medal-event-results-tables",
        "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/trovevault~olympic-medal-event-results-tables/run-sync": {
      "post": {
        "operationId": "run-sync-trovevault-olympic-medal-event-results-tables",
        "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",
        "required": [
          "games"
        ],
        "properties": {
          "games": {
            "title": "Games",
            "enum": [
              "Milano Cortina 2026",
              "Paris 2024",
              "Beijing 2022",
              "Tokyo 2020",
              "PyeongChang 2018",
              "Rio de Janeiro 2016",
              "Sochi 2014",
              "London 2012",
              "Vancouver 2010",
              "Beijing 2008",
              "Torino 2006",
              "Athens 2004",
              "Salt Lake City 2002",
              "Sydney 2000",
              "Nagano 1998",
              "Atlanta 1996",
              "Lillehammer 1994",
              "Barcelona 1992",
              "Albertville 1992",
              "Seoul 1988",
              "Calgary 1988",
              "Los Angeles 1984",
              "Sarajevo 1984",
              "Moscow 1980",
              "Lake Placid 1980",
              "Montreal 1976",
              "Innsbruck 1976",
              "Munich 1972",
              "Sapporo 1972",
              "Mexico City 1968",
              "Grenoble 1968",
              "Tokyo 1964",
              "Innsbruck 1964",
              "Rome 1960",
              "Squaw Valley 1960",
              "Melbourne 1956",
              "Stockholm 1956",
              "Cortina d'Ampezzo 1956",
              "Helsinki 1952",
              "Oslo 1952",
              "London 1948",
              "St. Moritz 1948",
              "Berlin 1936",
              "Garmisch-Partenkirchen 1936",
              "Los Angeles 1932",
              "Lake Placid 1932",
              "Amsterdam 1928",
              "St. Moritz 1928",
              "Paris 1924",
              "Chamonix 1924",
              "Antwerp 1920",
              "Stockholm 1912",
              "London 1908",
              "St. Louis 1904",
              "Paris 1900",
              "Athens 1896"
            ],
            "type": "string",
            "description": "Olympic Games edition to collect.",
            "default": "Paris 2024"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Optional country name or NOC code such as USA, Portugal, Brazil, France, or Japan. Leave empty for all countries."
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "",
              "3x3 Basketball",
              "Aeronautics",
              "Alpine Skiing",
              "Alpinism",
              "Archery",
              "Architecture",
              "Artistic Gymnastics",
              "Artistic Swimming",
              "Athletics",
              "Badminton",
              "Baseball",
              "Basketball",
              "Basque pelota",
              "Beach Volleyball",
              "Biathlon",
              "Bobsleigh",
              "Boxing",
              "Breaking",
              "Canoe Slalom",
              "Canoe Sprint",
              "Cricket",
              "Croquet",
              "Cross Country Skiing",
              "Curling",
              "Cycling BMX Freestyle",
              "Cycling BMX Racing",
              "Cycling Mountain Bike",
              "Cycling Road",
              "Cycling Track",
              "Diving",
              "Equestrian Dressage",
              "Equestrian Driving",
              "Equestrian Eventing",
              "Equestrian Jumping",
              "Equestrian Vaulting",
              "Fencing",
              "Field Handball",
              "Figure Skating",
              "Football",
              "Freestyle Skiing",
              "Golf",
              "Handball",
              "Hockey",
              "Ice Hockey",
              "Jeu de Paume",
              "Judo",
              "Karate",
              "Lacrosse",
              "Literature",
              "Luge",
              "Marathon Swimming",
              "Modern Pentathlon",
              "Motorboating",
              "Music",
              "Nordic Combined",
              "Painting",
              "Polo",
              "Racquets",
              "Rhythmic Gymnastics",
              "Roque",
              "Rowing",
              "Rugby",
              "Rugby Sevens",
              "Sailing",
              "Sculpture",
              "Shooting",
              "Short Track Speed Skating",
              "Skateboarding",
              "Skeleton",
              "Ski Jumping",
              "Snowboarding",
              "Softball",
              "Speed Skating",
              "Sport Climbing",
              "Surfing",
              "Swimming",
              "Table Tennis",
              "Taekwondo",
              "Tennis",
              "Trampoline Gymnastics",
              "Triathlon",
              "Tug-Of-War",
              "Volleyball",
              "Water Polo",
              "Weightlifting",
              "Wrestling"
            ],
            "type": "string",
            "description": "Sport or discipline to include.",
            "default": ""
          },
          "medals": {
            "title": "Medals",
            "uniqueItems": true,
            "type": "array",
            "description": "Medal types to include.",
            "items": {
              "type": "string",
              "enum": [
                "gold",
                "silver",
                "bronze"
              ],
              "enumTitles": [
                "Gold",
                "Silver",
                "Bronze"
              ]
            },
            "default": [
              "gold",
              "silver",
              "bronze"
            ]
          },
          "maxEvents": {
            "title": "Max Events",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum medal events to process after filters. Increase for full-Games exports.",
            "default": 400
          },
          "includeTeamMembers": {
            "title": "Include Team Members",
            "type": "boolean",
            "description": "Open event pages to extract members for medal-winning team events. This is slower because event pages are fetched politely.",
            "default": false
          },
          "includeFullEventStandings": {
            "title": "Include Full Event Standings",
            "type": "boolean",
            "description": "Open event pages to return full event standings, not only medal rows. This is slower and should be used with sport or country filters.",
            "default": false
          },
          "maxEventDetails": {
            "title": "Max Event Details",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum event pages to open when team members or full standings are enabled.",
            "default": 25
          },
          "datasetId": {
            "title": "Append To Dataset ID",
            "type": "string",
            "description": "Optional existing Apify dataset ID where all output rows are also appended with an entityType field."
          },
          "runId": {
            "title": "Run ID",
            "type": "string",
            "description": "Optional workflow identifier copied into output rows."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}