# FIBA Basketball Game Results & Standings Scraper (`artsiom_k/fiba-scraper`) Actor

Scrape official FIBA international basketball game results and group standings for recent competitions (World Cup, EuroBasket, Olympic qualifiers, and more). No login required.

- **URL**: https://apify.com/artsiom_k/fiba-scraper.md
- **Developed by:** [Artsiom Kunitsyn](https://apify.com/artsiom_k) (community)
- **Categories:** Other, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 results

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

Learn more: https://docs.apify.com/actors/running/actors-in-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

## FIBA Basketball Game Results & Standings Scraper

Scrapes official **FIBA international basketball game results** and **group standings** from
[fiba.basketball](https://www.fiba.basketball) — World Cup, EuroBasket, Olympic qualifiers, and
many more competitions. No login required.

### Contents

- [Key features](#key-features)
- [Important: recency limitation](#important-recency-limitation)
- [Output](#output)
- [Input](#input)
- [Input examples](#input-examples)
- [Incremental (delta) mode](#incremental-delta-mode)
- [How to scrape fiba.basketball](#how-to-scrape-fibabasketball)
- [FAQ](#faq)

### 🔑 Key features

- **Two entity types, one Actor.** Set `entityType` to `games` (score-by-score results) or
  `standings` (group standings — rank, wins/losses, points for/against).
- **Official federation data** — real results and standings, not estimates, across international
  competitions FIBA itself organizes.
- **Delta mode built in.** Every run classifies each item as `new`, `changed`, `unchanged`, or
  `delisted` against a persisted baseline.
- **`maxItems` defaults to 50** — a fast preview, and what keeps an unconfigured run within Apify's
  automated 5-minute QA check. Clear `maxItems` (`null`) for a full run.

### ⚠️ Important: recency limitation

**Only recent competitions (roughly 2025 onward, confirmed live) have real results/standings data.**
Older, archived competitions (checked live: the 2024 Paris Olympics, the 2023 World Cup) return no
real data for this Actor — a real limitation of FIBA's own site (older events don't embed real game
data the way recent ones do), not a bug here. A full crawl will still examine every competition in
FIBA's real events list (~200), it just won't find anything for the older ones.

### 📋 Output

One dataset item per game (`games`) or per team-per-group standing (`standings`) — see
the
**Output** tab's **Games** / **Standings** views for a readable table.

**Example game record:**

```json
{
  "source": "fiba",
  "entity_type": "games",
  "external_id": "128186",
  "url": "https://www.fiba.basketball/en/events/fiba-womens-basketball-world-cup-2026-qualifying-tournament-wuhan-china/games",
  "event_name": "Fiba Womens Basketball World Cup 2026 Qualifying Tournament Wuhan China",
  "team_a_name": "China",
  "team_a_score": 81,
  "team_b_name": "Mali",
  "team_b_score": 68,
  "status_code": "VALID",
  "venue_name": "Wuhan Sports Centre",
  "host_city": "Wuhan",
  "game_date": "2026-03-11T19:30:00",
  "change_type": "new"
}
```

**Example standing record:**

```json
{
  "source": "fiba",
  "entity_type": "standings",
  "external_id": "fiba-afrobasket-2025-283381",
  "url": "https://www.fiba.basketball/en/events/fiba-afrobasket-2025/standings",
  "event_name": "Fiba Afrobasket 2025",
  "rank": 1,
  "team_name": "Côte d'Ivoire",
  "games_played": 3,
  "games_won": 3,
  "games_lost": 0,
  "points_for": 235,
  "points_against": 214,
  "change_type": "new"
}
```

### 🔧 Input

| Field | Type | Default | Description |
|---|---|---|---|
| `entityType` | string | `games` | `games` or `standings`. |
| `maxItems` | integer | `50` | Stop after pushing this many items. Set to `null` for a full crawl. |
| `mode` | string | `auto` | `auto` / `full` / `incremental` — see [Incremental mode](#incremental-delta-mode). |
| `concurrency` | integer | `10` | How many competition pages to fetch in parallel. |
| `impersonate` | string | `chrome` | curl_cffi TLS-impersonation target — required, see FAQ. |
| `proxyConfiguration` | object | off | Apify Proxy config — not needed under normal use. |

### 📥 Input examples

**Default preview (50 games):**

```json
{ "entityType": "games" }
```

**Full crawl of standings across every real competition:**

```json
{ "entityType": "standings", "maxItems": null }
```

### 🔁 Incremental (delta) mode

`auto` mode does a full scan the first time it runs for a given `entityType`, then only pushes
new/changed items on later runs. Only an uncapped, error-free run can detect delistings or update
the baseline — useful for tracking an ongoing competition as new games are played.

### 🌐 How to scrape fiba.basketball

FIBA's own site embeds real, complete game and standings data directly in its server-rendered pages
for recent competitions — this Actor reads that embedded data, the same content a browser receives,
just automated and exhaustive across FIBA's real events list.

### ❓ FAQ

**Why does this need `impersonate: "chrome"`?**
fiba.basketball sits behind a WAF that hard-blocks non-browser HTTP requests outright — confirmed
live even on `robots.txt`. A browser TLS fingerprint clears it completely, no proxy needed.

**Why is data missing for older competitions?**
See [Important: recency limitation](#important-recency-limitation) above — a real, confirmed site
limitation, not a bug in this Actor.

**Does `standings` include team names?**
Yes — FIBA's own standings data only carries a numeric team id, so this Actor cross-references each
competition's own game data (which does carry full team names) to resolve them.

### Related sports data scrapers

- [Action Network Scraper](https://apify.com/artsiom_k/actionnetwork-scraper) — US sportsbook odds, public betting splits, line movement, props, injuries and futures.
- [Sports Odds History Scraper](https://apify.com/artsiom_k/sports-odds-history-scraper) — opening and closing lines per sportsbook since 2021 and ATS results since 2006.
- [MotoGP Scraper](https://apify.com/artsiom_k/motogp-scraper) — official MotoGP, Moto2 and Moto3 results and standings.
- [Kalshi & Polymarket Scraper](https://apify.com/artsiom_k/prediction-markets-scraper) — prediction market odds, settled results and price history for sports, politics, economics and crypto.
- [SofaScore Scraper](https://apify.com/artsiom_k/sofascore-scraper) — results, team statistics, lineups with player ratings, incidents and odds for football, basketball, hockey, tennis and 17 more sports.
- [Flashscore Scraper](https://apify.com/artsiom_k/flashscore-scraper) — results, statistics, lineups, incidents and opening/closing odds from ~20 bookmakers for 17 sports.

# Actor input Schema

## `entityType` (type: `string`):

Scrape game-by-game results or group standings. Both come from FIBA's own official competition pages. IMPORTANT: only recent competitions (roughly 2025 onward, confirmed live) have real embedded results — older archived competitions return no data for this Actor, a real site-side limitation, not a bug. See dataset_schema.json for the full field list per entity type.

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

Stop after pushing this many dataset items. Defaults to 50 — a fast, cheap preview, and what keeps an unconfigured run within Apify's automated 5-minute QA check. Clear this (set to null) for a full crawl across FIBA's real events sitemap (~200 competitions).

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

"auto" (recommended): full scan on the first run for a given entityType, incremental (new/changed only) afterwards. "full": always push every item and refresh the baseline — useful for an ongoing competition. "incremental": always push only new/changed items. Only an uncapped, error-free run can detect delistings or update the baseline.

## `concurrency` (type: `integer`):

How many competition pages to fetch in parallel. Defaults to 10 — this site's own real anti-bot posture (a WAF blocking non-browser requests, cleared with TLS impersonation) hasn't been load-tested at real sustained volume yet, so this ships conservative.

## `impersonate` (type: `string`):

curl_cffi browser TLS-impersonation target. Defaults to "chrome" internally — required on this site: a plain (non-impersonated) request is blocked outright by the site's own WAF, even on robots.txt.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Leave off unless you start seeing blocks from your own IP reputation.

## Actor input object example

```json
{
  "entityType": "games",
  "maxItems": 50,
  "mode": "auto",
  "concurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("artsiom_k/fiba-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("artsiom_k/fiba-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 '{}' |
apify call artsiom_k/fiba-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,artsiom_k/fiba-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/gbIh1VVsc0k4PPahk/builds/m3bqOZb4h6jxcSUUR/openapi.json
