# World Rugby Rankings & Results Scraper (`dataspryva/world-rugby-rankings-and-results-scraper`) Actor

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.

- **URL**: https://apify.com/dataspryva/world-rugby-rankings-and-results-scraper.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, News, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## World Rugby Rankings & Results Scraper

Scrape **World Rugby** (world.rugby) — the official global governing body's rankings, match and competition data. Get current or historical men's and women's world rankings, match results and fixtures across international and club rugby, full match details (lineups, scorers, cards, officials, stats), national team profiles, a 4,700+ team directory, and series or tournament standings including HSBC SVNS.

HTTP-only via World Rugby's public data API. No auth, no proxy, no login.

### What this actor does

- **Six modes:** `rankings`, `matches`, `matchDetails`, `teamProfile`, `teams`, `standings`
- **World rankings:** men's and women's, current or any historical date
- **Match results & fixtures:** completed results, upcoming fixtures and live matches; XVs and Sevens; international and club rugby
- **Match details:** starting lineups and replacements, scorers, cards, officials, team stats, optional player stats
- **Team profiles:** identity, Rugby World Cup history, current ranking, career best/worst ranking and number of ranked matches
- **Team directory:** browse 4,742 national, club, provincial and invitational teams by sport/type/country/name
- **Standings:** season tables for any series (including HSBC SVNS) or pool tables for any tournament event
- **Filters:** gender, date range, match status, event IDs, team IDs, team name, competition name
- **Empty fields are omitted** — every record only contains fields that were actually available for that team/match

### Output: rankings (mode = `rankings`)

- `teamId` — World Rugby team ID
- `teamName`, `teamAbbreviation`, `countryCode`
- `gender` — `men` or `women`
- `rank`, `ratingPoints`
- `previousRank`, `previousRatingPoints` — from the prior ranking update
- `rankChange` — positive = moved up, negative = moved down
- `rankingDate` — the actual ranking-update date the snapshot reflects
- `sourceUrl`
- `recordType: "ranking"`, `scrapedAt`

### Output: matches (mode = `matches`)

- `matchId`, `competition`, `eventPhase` (e.g. `Final`, `Quarter-final`), `matchDescription` (e.g. `Match 48`)
- `gender`, `discipline` (`fifteens` or `sevens`)
- `matchDate`, `matchDateTimeUtc`
- `status` — `completed`, `upcoming`, `live` (match currently in progress), or `cancelled`
- `homeTeam`, `awayTeam`, `homeTeamId`, `awayTeamId`
- `homeScore`, `awayScore` — present once available
- `winner` — team name or `Draw` (completed matches only)
- `venueName`, `venueCity`, `venueCountry`
- `attendance` — reported crowd figure, when World Rugby publishes one
- `sourceUrl`
- `recordType: "match"`, `scrapedAt`

### Output: match details (mode = `matchDetails`)

Everything from `matches`, plus:

- `matchAltId`, `rankingsWeight`
- `homeLineup` / `awayLineup` — player ID, name, shirt number, position, position label, order, `isCaptain`, `isReplacement`
- `scoringPlays` — minute, team, team ID, player, player ID, type (Try / Conversion / Penalty / Drop goal) and points
- `cards` — minute, team, player, `yellow` or `red`
- `officials` — role, name and country (referee, assistant referees, TMO, FPRO)
- `teamStats` — home/away team metrics (carries, tackles, possession, territory, set pieces, etc.)
- `playerStats` — optional per-player metrics when `includePlayerStats: true`
- `weather` — conditions, min/max temperature, wind and pitch when published

### Output: team profile (mode = `teamProfile`)

- `teamId`, `teamName`, `teamAbbreviation`
- `country`, `countryCode`, `teamType` (`Country` / `Club` / `Province` / `Invitational` / …), `sport` (World Rugby's internal sport code)
- `rwcBestFinish`, `rwcBestFinishYears`
- `rwcFinishHistory` — map of Rugby World Cup year → finish (e.g. `"2023": "winner"`)
- `currentRank`, `currentRatingPoints`, `currentRankDate`, `gender` — when the team appears in the current 15s rankings
- `careerBestRank`, `careerBestRatingPoints`, `careerBestRankDate`
- `careerWorstRank`, `careerWorstRatingPoints`, `careerWorstRankDate`
- `matchesRanked` — number of ranked matches in World Rugby's history for the team
- `sourceUrl`
- `recordType: "team"`, `scrapedAt`

### Output: team directory (mode = `teams`)

- `teamId`, `teamName`, `teamAbbreviation`
- `country`, `countryCode`, `teamType`, `sport`
- `sourceUrl`
- `recordType: "team"`, `scrapedAt`

### Output: standings (mode = `standings`)

- `teamId`, `teamName`, `teamAbbreviation`, `countryCode`
- `rank` — omitted when the table has no published position yet
- `standingType` — `series` (season table) or `event` (pool/tournament table)
- `competition` — series or event name
- `season`, `table` (e.g. `Overall`, `Northern Hemisphere`, `Pool A`)
- `seriesId` or `eventId`
- `played`, `won`, `drawn`, `lost`, `pointsFor`, `pointsAgainst`, `triesFor`, `triesAgainst`, `bonusPoints`, `points`
- `eventPoints` — per-event points array for season series
- `sourceUrl`
- `recordType: "standing"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `rankings` | `rankings` / `matches` / `matchDetails` / `teamProfile` / `teams` / `standings` |
| `gender` | string | `men` | `men` / `women` / `both` (mode=rankings, mode=matches) |
| `rankingDate` | string | – | Historical snapshot date `YYYY-MM-DD` (mode=rankings) |
| `matchStatus` | string | `all` | `all` / `completed` / `upcoming` / `live` (mode=matches) |
| `includeSevens` | boolean | `false` | Also include Rugby Sevens matches (mode=matches) |
| `dateFrom` | string | – | Match date range start `YYYY-MM-DD`; defaults to 30 days ago when no event IDs are given (mode=matches) |
| `dateTo` | string | – | Match date range end `YYYY-MM-DD`; defaults to 30 days ahead when no event IDs are given (mode=matches) |
| `teamNameContains` | string | – | Filter matches by team-name substring, or filter team-directory rows by name/country (mode=matches / teams) |
| `competitionContains` | string | – | Filter matches by competition-name substring (mode=matches) |
| `eventIds` | array | – | Event/competition IDs for matches or standings (mode=matches / standings) |
| `matchTeamIds` | array | – | Only matches involving these team IDs (mode=matches) |
| `matchIds` | array | – | Match IDs or match page URLs (mode=matchDetails) |
| `includePlayerStats` | boolean | `false` | Add per-player stats to match-detail rows (mode=matchDetails) |
| `teamIds` | array | – | Team IDs, numeric or UUID (mode=teamProfile) |
| `teamNames` | array | – | National team names, resolved via current 15s rankings (mode=teamProfile); prefilled with `["New Zealand"]` for the platform's daily test run |
| `teamType` | string | `all` | Team-directory type filter (mode=teams) |
| `teamSport` | string | `all` | Team-directory sport code filter (mode=teams) |
| `teamCountryCode` | string | – | ISO 3166-1 alpha-3 country code filter (mode=teams) |
| `seriesIds` | array | – | Series IDs for season standings (mode=standings) |
| `seriesNames` | array | – | Series-name substrings, or `*` for all series (mode=standings) |
| `maxItems` | int | `50` | Hard cap on emitted records (1–10,000) |

#### Example: current men's world rankings

```json
{
  "mode": "rankings",
  "gender": "men",
  "maxItems": 50
}
```

#### Example: historical women's rankings snapshot

```json
{
  "mode": "rankings",
  "gender": "women",
  "rankingDate": "2023-08-01",
  "maxItems": 50
}
```

#### Example: completed Six Nations results

```json
{
  "mode": "matches",
  "gender": "men",
  "matchStatus": "completed",
  "competitionContains": "Six Nations",
  "dateFrom": "2026-01-01",
  "dateTo": "2026-04-01",
  "maxItems": 50
}
```

#### Example: every World Cup 2023 match (server-side event filter)

```json
{
  "mode": "matches",
  "gender": "men",
  "eventIds": ["1893"],
  "maxItems": 100
}
```

#### Example: full detail for one match

```json
{
  "mode": "matchDetails",
  "matchIds": ["28813"],
  "includePlayerStats": true,
  "maxItems": 1
}
```

#### Example: national team profiles

```json
{
  "mode": "teamProfile",
  "teamNames": ["New Zealand", "South Africa", "Fiji"],
  "maxItems": 20
}
```

#### Example: club team directory in South Africa

```json
{
  "mode": "teams",
  "teamSport": "mru",
  "teamType": "Club",
  "teamCountryCode": "ZAF",
  "maxItems": 100
}
```

#### Example: HSBC SVNS 2027 season standings

```json
{
  "mode": "standings",
  "seriesNames": ["HSBC SVNS 2027"],
  "maxItems": 100
}
```

#### Example: tournament pool tables

```json
{
  "mode": "standings",
  "eventIds": ["46294cf5-dee3-4234-957a-dbe1f08049f2"],
  "maxItems": 100
}
```

### Use cases

- **Sports media** — auto-publish weekly ranking movements, results and tables
- **Betting & fantasy sports** — feed official rankings, results, lineups and scoring plays into models
- **Fan platforms & apps** — power a rugby results/rankings/standings widget
- **Sports analytics** — build historical ranking-trend datasets by date, match-detail datasets and team directories
- **Research** — study national teams' World Cup history and ranking careers

### FAQ

**What is the data source?**
World Rugby's own public rankings, fixtures and tournament data (world.rugby), the sport's official global governing body.

**How far back does historical ranking data go?**
World Rugby's ranking system was introduced in 2003, but the public API backing this actor's historical snapshots has a different floor per gender: men's rankings only go back to around 2020-09, while women's rankings go back further, to around 2016-02. Requesting an earlier date than either floor returns the nearest (earliest) date that has data — confirmed live: requesting `rankingDate=2015-01-01` with `gender=men` returns the `2020-09-21` snapshot, while the same request with `gender=women` returns the `2016-02-08` snapshot instead. The actual date used is always returned in the `rankingDate` output field, so you can detect a clamp.

**Can I get a range of historical rankings in one run?**
The upstream API accepts one ranking date per request, so this actor returns one snapshot per run. To build a history, run it once per date. There is no official list of update dates, and the API snaps a requested date to the nearest real update, so a sampled range would not be an exact official history.

**Does `matches` mode cover club rugby too, not just internationals?**
Yes — `matches` returns any match on World Rugby's calendar in the date range, including major club competitions (e.g. Top 14, United Rugby Championship) alongside international Tests.

**Why don't some matches have a score?**
Upcoming/fixture matches haven't been played yet, so `homeScore`/`awayScore`/`winner` are omitted until the match is completed.

**Why do some match-detail rows lack lineups, cards or stats?**
World Rugby does not publish complete detail for every fixture — notably some recent, minor or club matches. Those fields are omitted rather than filled with placeholders. Scoring plays, lineups and stats are present for the large majority of international and major club matches.

**Where are the sevens rankings?**
World Rugby publishes the men's/women's 15s world rankings as a ranked table; its sevens competitions are published as HSBC SVNS series and tournament standings instead. Use `mode=standings` with `seriesNames: ["HSBC SVNS"]` (or an event ID) for the official sevens tables. The old `mrs`/`wrs` ranking endpoints return HTTP 400 and are not available.

**How do I find a team's `teamId` for `teamProfile` or `matchTeamIds`?**
Run `rankings`, `matches` or `teams` first — every record includes `teamId` (and `homeTeamId`/`awayTeamId`). For national teams you can also pass the team's name via `teamNames`.

**How do I find an event ID or series ID?**
Event IDs appear in `matches` mode only when you supply them; use the World Rugby fixtures page to identify the competition, or use `competitionContains` / `seriesNames` instead. Series IDs are optional — `seriesNames` resolves them for you.

**Is this affiliated with World Rugby?**
No — this is an independent, third-party actor built on World Rugby's publicly accessible data feed.

**What does `matchStatus: "live"` return?**
Matches currently being played — first half, half-time, or second half — with real-time scores. This is a small, transient set (usually 0-5 matches at any given moment); it will often be empty outside an active match window.

**Are there rate limits?**
The actor uses polite delays between requests. A 10,000-record cap keeps runs predictable; for larger historical pulls split by date range, event or team. Very large `matches` runs may take longer because results are paginated 100 at a time.

# Actor input Schema

## `mode` (type: `string`):

What to fetch: rankings, matches, matchDetails, teamProfile, teams (directory), or standings.

## `gender` (type: `string`):

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).

## `rankingDate` (type: `string`):

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` (type: `string`):

Filter matches by status. `live` returns matches currently in progress (first half, half-time, or second half).

## `includeSevens` (type: `boolean`):

Also include Rugby Sevens matches in addition to full XVs (15-a-side). Default only returns 15s.

## `dateFrom` (type: `string`):

Start of match date range, `YYYY-MM-DD`. Defaults to 30 days ago when no event IDs are given.

## `dateTo` (type: `string`):

End of match date range, `YYYY-MM-DD`. Defaults to 30 days ahead when no event IDs are given.

## `teamNameContains` (type: `string`):

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` (type: `string`):

Only keep matches whose competition/tournament name contains this text (case-insensitive), e.g. `Six Nations`.

## `eventIds` (type: `array`):

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.

## `matchTeamIds` (type: `array`):

Only return matches involving these World Rugby team IDs (numeric or UUID). E.g. `39` for South Africa.

## `matchIds` (type: `array`):

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.

## `includePlayerStats` (type: `boolean`):

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.

## `teamIds` (type: `array`):

World Rugby team IDs, numeric or UUID (see `teamId` in rankings/matches output), e.g. `39` for South Africa.

## `teamNames` (type: `array`):

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.

## `teamType` (type: `string`):

Filter the team directory by team type.

## `teamSport` (type: `string`):

Filter the team directory by sport/discipline code.

## `teamCountryCode` (type: `string`):

Filter the team directory by ISO 3166-1 alpha-3 country code, e.g. `ZAF`, `NZL`, `FRA`.

## `seriesIds` (type: `array`):

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.

## `seriesNames` (type: `array`):

Case-insensitive substrings matched against the current series list, e.g. `HSBC SVNS 2027`, `Six Nations`, or `*` for every series with standings.

## `maxItems` (type: `integer`):

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "rankings",
  "gender": "men",
  "matchStatus": "all",
  "includeSevens": false,
  "eventIds": [],
  "matchTeamIds": [],
  "matchIds": [],
  "includePlayerStats": false,
  "teamIds": [],
  "teamNames": [
    "New Zealand"
  ],
  "teamType": "all",
  "teamSport": "all",
  "seriesIds": [],
  "seriesNames": [],
  "maxItems": 50
}
```

# Actor output Schema

## `rugbyData` (type: `string`):

Dataset containing all scraped World Rugby rankings, matches, match details, teams, and standings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "rankings",
    "gender": "men",
    "matchStatus": "all",
    "includeSevens": false,
    "eventIds": [],
    "matchTeamIds": [],
    "matchIds": [],
    "includePlayerStats": false,
    "teamIds": [],
    "teamNames": [
        "New Zealand"
    ],
    "teamType": "all",
    "teamSport": "all",
    "seriesIds": [],
    "seriesNames": [],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/world-rugby-rankings-and-results-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "rankings",
    "gender": "men",
    "matchStatus": "all",
    "includeSevens": False,
    "eventIds": [],
    "matchTeamIds": [],
    "matchIds": [],
    "includePlayerStats": False,
    "teamIds": [],
    "teamNames": ["New Zealand"],
    "teamType": "all",
    "teamSport": "all",
    "seriesIds": [],
    "seriesNames": [],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/world-rugby-rankings-and-results-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "rankings",
  "gender": "men",
  "matchStatus": "all",
  "includeSevens": false,
  "eventIds": [],
  "matchTeamIds": [],
  "matchIds": [],
  "includePlayerStats": false,
  "teamIds": [],
  "teamNames": [
    "New Zealand"
  ],
  "teamType": "all",
  "teamSport": "all",
  "seriesIds": [],
  "seriesNames": [],
  "maxItems": 50
}' |
apify call dataspryva/world-rugby-rankings-and-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/world-rugby-rankings-and-results-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VaidHZxlS5hKJn5dT/builds/nQlJYNty5jyRLA3xt/openapi.json
