# Export FIFA World Rankings from SofaScore

**Use case:** 

Export latest FIFA national team rankings from SofaScore for sports analytics, journalists, and developers. Returns data including ranking position, points, team name, country code, and previous position. Change rankingType or maxItems to fetch different tables and result counts.

## Input

```json
{
  "mode": "rankings",
  "searchQueries": [
    "Real Madrid"
  ],
  "searchType": "all",
  "sports": [
    "football"
  ],
  "daysAhead": 0,
  "tableType": "total",
  "rankingType": "fifa",
  "includeStatistics": false,
  "includeLineups": false,
  "includeIncidents": false,
  "includeOdds": false,
  "includeVotes": false,
  "includeH2h": false,
  "includeAdvanced": false,
  "includeComments": false,
  "includeSquad": false,
  "includePlayerStats": false,
  "includeStandings": false,
  "includeEvents": false,
  "maxItems": 100
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type"
  },
  "name": {
    "label": "Name"
  },
  "eventId": {
    "label": "Event id"
  },
  "homeTeam": {
    "label": "Home team"
  },
  "awayTeam": {
    "label": "Away team"
  },
  "homeScore": {
    "label": "Home score"
  },
  "awayScore": {
    "label": "Away score"
  },
  "status": {
    "label": "Status"
  },
  "startTime": {
    "label": "Start time"
  },
  "sport": {
    "label": "Sport"
  },
  "tournamentName": {
    "label": "Tournament name"
  },
  "teamId": {
    "label": "Team id"
  },
  "playerId": {
    "label": "Player id"
  },
  "position": {
    "label": "Position"
  },
  "points": {
    "label": "Points"
  },
  "rankingTypeName": {
    "label": "Ranking type name"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The SofaScore Live Scores, Standings & Team Search Data Actor is ready to run with the inputs already set for "Export FIFA World Rankings from SofaScore". [Sign up or log in](https://console.apify.com/create-task-from-example/KBbAWzEeV8aKlPlFW) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export FIFA World Rankings from SofaScore" task

The SofaScore Live Scores, Standings & Team Search Data Actor will start running based on the input automatically. You can also change all the input fields, like mode, search queries, and more, to match your specific use case.

### 3. Receive the "Export FIFA World Rankings from SofaScore" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as record type, name, event id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Export FIFA World Rankings from SofaScore" task via API](https://apify.com/vexaloom-labs/sofascore-live-scores-standings-and-team-search.md).

## FAQ

### How do I export latest FIFA national team rankings data?

Set the mode to rankings and the rankingType to FIFA in the SofaScore rankings task to fetch the latest national team data.

### How many records can the SofaScore rankings task return in one run?

The SofaScore rankings task supports a maximum of 10,000 records, though SofaScore itself publishes at most 500 rows per ranking table.

### Can I export data from the SofaScore rankings task to CSV or Excel?

Results from the SofaScore rankings task land in a dataset that you can download as CSV, Excel, JSON, XML, RSS or an HTML table.

### How much does it cost to run the SofaScore rankings task?

The SofaScore rankings task costs $0.10 for the start event on the Free plan plus $0.99 per 1,000 results, with compute usage charged separately by the Apify platform.

### Is it legal to scrape data using the SofaScore rankings task?

Whether using the SofaScore rankings task is lawful depends on your purpose, the site terms, and data-protection laws; you are responsible for ensuring your use complies with these regulations.

### Can I run the SofaScore rankings task on a schedule or through the API?

You can automate the SofaScore rankings task using Apify Schedules, the Apify API, or integrations like Zapier, Make, and n8n.

### What data fields are included in the SofaScore rankings task output?

The SofaScore rankings task returns fields including ranking position, points, team name, country code, and previous position for each record.

### How do I change the ranking type in the SofaScore rankings task?

Modify the rankingType input field in the SofaScore rankings task to select from options like FIFA, uefa-countries, ATP, or WTA.

## About this Actor

This example demonstrates how to use [SofaScore Live Scores, Standings & Team Search Data](https://apify.com/vexaloom-labs/sofascore-live-scores-standings-and-team-search.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/vexaloom-labs/sofascore-live-scores-standings-and-team-search.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/vexaloom-labs/sofascore-live-scores-standings-and-team-search.md

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