# 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
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## fiba-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
[`.actor/dataset_schema.json`](.actor/dataset_schema.json) for the full field list, or 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.

# 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/rkuXLd3cgCFhoPZxb/openapi.json
