{
  "openapi": "3.0.1",
  "info": {
    "title": "World Rugby Rankings & Results Scraper",
    "description": "Scrape official World Rugby data - men's and women's world rankings (current or historical by date), match results and fixtures across international and club rugby, and national team profiles. No login required.",
    "version": "2.0",
    "x-build-id": "nQlJYNty5jyRLA3xt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~world-rugby-rankings-and-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-world-rugby-rankings-and-results-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/dataspryva~world-rugby-rankings-and-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-world-rugby-rankings-and-results-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/dataspryva~world-rugby-rankings-and-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-world-rugby-rankings-and-results-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "rankings",
              "matches",
              "matchDetails",
              "teamProfile",
              "teams",
              "standings"
            ],
            "type": "string",
            "description": "What to fetch: rankings, matches, matchDetails, teamProfile, teams (directory), or standings.",
            "default": "rankings"
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "men",
              "women",
              "both"
            ],
            "type": "string",
            "description": "Which rankings/matches to fetch (mode=rankings, mode=matches). Also disambiguates `teamNames` when a country fields both a men's and a women's team of the same name (mode=teamProfile).",
            "default": "men"
          },
          "rankingDate": {
            "title": "Ranking date (mode=rankings)",
            "type": "string",
            "description": "Historical ranking snapshot date, `YYYY-MM-DD`. Leave blank for the current rankings. World Rugby snaps to the nearest real ranking-update date to the one given (not always on/before it). The actual date used is always returned in the `rankingDate` output field."
          },
          "matchStatus": {
            "title": "Match status (mode=matches)",
            "enum": [
              "all",
              "completed",
              "upcoming",
              "live"
            ],
            "type": "string",
            "description": "Filter matches by status. `live` returns matches currently in progress (first half, half-time, or second half).",
            "default": "all"
          },
          "includeSevens": {
            "title": "Include Rugby Sevens (mode=matches)",
            "type": "boolean",
            "description": "Also include Rugby Sevens matches in addition to full XVs (15-a-side). Default only returns 15s.",
            "default": false
          },
          "dateFrom": {
            "title": "Date from (mode=matches)",
            "type": "string",
            "description": "Start of match date range, `YYYY-MM-DD`. Defaults to 30 days ago when no event IDs are given."
          },
          "dateTo": {
            "title": "Date to (mode=matches)",
            "type": "string",
            "description": "End of match date range, `YYYY-MM-DD`. Defaults to 30 days ahead when no event IDs are given."
          },
          "teamNameContains": {
            "title": "Team name contains (mode=matches / teams)",
            "type": "string",
            "description": "Only keep matches where either team's name contains this text (case-insensitive), or only keep team-directory rows whose name/country contains it. E.g. `Fiji`."
          },
          "competitionContains": {
            "title": "Competition contains (mode=matches)",
            "type": "string",
            "description": "Only keep matches whose competition/tournament name contains this text (case-insensitive), e.g. `Six Nations`."
          },
          "eventIds": {
            "title": "Event IDs (mode=matches / standings)",
            "type": "array",
            "description": "World Rugby event/competition IDs (numeric or UUID), e.g. `1893` for Men's Rugby World Cup 2023 or the Dubai SVNS event ID. In matches mode this filters results server-side; in standings mode it fetches each event's pool tables. Combine with `gender` and `includeSevens` in matches mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchTeamIds": {
            "title": "Filter by team IDs (mode=matches)",
            "type": "array",
            "description": "Only return matches involving these World Rugby team IDs (numeric or UUID). E.g. `39` for South Africa.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchIds": {
            "title": "Match IDs or URLs (mode=matchDetails)",
            "type": "array",
            "description": "World Rugby match IDs or full match page URLs, e.g. `28813` or `https://www.world.rugby/match/28813`. Returns lineups, scoring plays, cards, officials, weather, team stats, and optional player stats.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includePlayerStats": {
            "title": "Include player stats (mode=matchDetails)",
            "type": "boolean",
            "description": "Add a per-player stats array to each match-detail row. This makes each record much larger; leave off unless you need player-level metrics.",
            "default": false
          },
          "teamIds": {
            "title": "Team IDs (mode=teamProfile)",
            "type": "array",
            "description": "World Rugby team IDs, numeric or UUID (see `teamId` in rankings/matches output), e.g. `39` for South Africa.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "teamNames": {
            "title": "National team names (mode=teamProfile)",
            "type": "array",
            "description": "National team names to resolve automatically against the current men's + women's 15s rankings, e.g. `New Zealand`, `Fiji`. For club, province, or sevens teams use Team IDs or the `teams` directory mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "teamType": {
            "title": "Team type (mode=teams)",
            "enum": [
              "all",
              "Country",
              "Club",
              "Province",
              "Representative",
              "Invitational",
              "U20",
              "County",
              "Combined",
              "U19",
              "SuperProvince",
              "U21",
              "ProvincialAcademy"
            ],
            "type": "string",
            "description": "Filter the team directory by team type.",
            "default": "all"
          },
          "teamSport": {
            "title": "Team sport (mode=teams)",
            "enum": [
              "all",
              "mru",
              "wru",
              "mrs",
              "wrs",
              "jmu",
              "jwu",
              "mjs",
              "wjs"
            ],
            "type": "string",
            "description": "Filter the team directory by sport/discipline code.",
            "default": "all"
          },
          "teamCountryCode": {
            "title": "Team country code (mode=teams)",
            "type": "string",
            "description": "Filter the team directory by ISO 3166-1 alpha-3 country code, e.g. `ZAF`, `NZL`, `FRA`."
          },
          "seriesIds": {
            "title": "Series IDs (mode=standings)",
            "type": "array",
            "description": "World Rugby series IDs (numeric or UUID) whose season standings to fetch. Series are things like `HSBC SVNS 3 2027 - MRS`. Use `seriesNames` if you do not know the ID.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "seriesNames": {
            "title": "Series name contains (mode=standings)",
            "type": "array",
            "description": "Case-insensitive substrings matched against the current series list, e.g. `HSBC SVNS 2027`, `Six Nations`, or `*` for every series with standings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}