# FFBB Basketball Clubs · French Directory (`corent1robert/ffbb-clubs-scraper`) Actor

Export French basketball club contacts from FFBB. Names, emails, phones, GPS and websites — one row per club. Public directory. No login. No API key.

- **URL**: https://apify.com/corent1robert/ffbb-clubs-scraper.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.49 / 1,000 club rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## FFBB Basketball Clubs · French Directory

Export **French basketball club contacts** from the public FFBB (Fédération Française de Basketball) directory. Pick a department (or nationwide) and get one row per club: name, address, published email and phone, GPS and website.

**No login. No API key. No federation account.**

### Who is this for?

| You are… | Typical goal | Suggested setup |
|----------|--------------|-----------------|
| Sportswear or equipment brand | Prospect list of clubs that buy kits, balls, flooring | One department first, then **All departments** |
| Event or 3x3 organiser | Clubs that can host or fill a tournament | Your département + neighbouring codes |
| Agency / outbound | CRM feed with mailbox and phone | Overview or Outreach CRM view |
| Local authority / school sport | Territory map of basketball clubs | One code, then neighbours |
| Data / ops | Scheduled master table of the federation | `departments: ["ALL"]`, `maxItems: 0` |

**What you get by default.** Club name, department, address, GPS, federation club page, website when the club published one. Email and phone **only when the federation published them** — generic federation mailboxes are skipped. This Actor never invents a mailbox.

**When to go nationwide.** Use **All departments** on a paid plan with `maxItems: 0`. Corsica (2A / 2B) and overseas departments are included.

### How to use

1. Open the Actor in [Apify Console](https://console.apify.com).
2. Pick one or more **departments**, or **All departments**.
3. Keep **Max clubs** at 20 for a first run (Free plan is always 20 per run). Set **0** on a paid plan for a full export of the selection.
4. Click **Start**. Rows appear in the Dataset while the run is still listing other departments.

### Ready-made examples (published tasks)

| Example | Best for |
|---------|----------|
| [Find Paris basketball clubs with published contacts](https://apify.com/corent1robert/ffbb-clubs-scraper/examples/paris-basketball-club-contacts) | First run / Île-de-France |
| [Rhône basketball clubs, CRM-ready emails and phones](https://apify.com/corent1robert/ffbb-clubs-scraper/examples/rhone-basketball-clubs-crm) | CRM import |
| [La Réunion FFBB basketball club directory](https://apify.com/corent1robert/ffbb-clubs-scraper/examples/reunion-ffbb-clubs) | Overseas department |
| [Find Ain basketball clubs from the FFBB directory](https://apify.com/corent1robert/ffbb-clubs-scraper/examples/ain-basketball-club-contacts) | B2B test / Auvergne-Rhône-Alpes |

### What it extracts

| Category | Fields |
|----------|--------|
| Identity | Club name, structure code, FFBB club id |
| Location | Department, town, postcode, address, GPS |
| Contact | Email, phone (when published) |
| Web | Club website, federation club page |

### Typical coverage

On a 20-club Paris export, every row has a club name, department and directory URL. Email, phone, GPS and website follow what the federation shows — empty fields are omitted. This Actor never invents a mailbox or a number.

### Input

| Field | Type | Default | Notes |
|-------|------|---------|--------|
| `departments` | array | `["75"]` | Department codes, or `ALL` for nationwide including Corsica. Omitted = Paris. Empty array = nationwide. |
| `maxItems` | integer | `20` | **0** = no row ceiling. **Free plan: 20 / run.** |

#### API-only keys

Not shown on the Console form. Safe defaults are already in code.

| Key | Type | Default | Notes |
|-----|------|---------|--------|
| `maxConcurrency` | integer | `4` | Departments in parallel (1–8) |
| `delayBetweenRequests` | integer | `80` | Pause between listing pages (ms) |

#### Examples

Paris (Try):

```json
{ "departments": ["75"], "maxItems": 20 }
```

Nationwide, paid plan, no row ceiling:

```json
{ "departments": ["ALL"], "maxItems": 0 }
```

Corsica (2A / 2B) and Alsace:

```json
{ "departments": ["2A", "2B", "67", "68"], "maxItems": 0 }
```

### Output sample

```json
{
  "clubId": "10000",
  "structureNumber": "CVL0045063",
  "structureName": "PUISEAUX AS",
  "departmentNumber": "45",
  "town": "PUISEAUX",
  "postalCode": "45390",
  "address": "MAIRIE",
  "latitude": 48.20426,
  "longitude": 2.47008,
  "contactEmail": "contact@as-puiseaux-45-basket.fr",
  "contactPhone": "02 38 33 52 75",
  "website": "https://as-puiseaux-45-basket.fr/",
  "url": "https://competitions.ffbb.com/ligues/cvl/comites/0045/clubs/cvl0045063"
}
```

You can download the dataset as JSON, HTML, CSV or Excel.

### How it works

1. Reads the public FFBB club directory for each selected department.
2. Deduplicates clubs by identifier.
3. Writes each row to the dataset as soon as it is complete.

### How much does it cost to scrape FFBB clubs?

HTTP-only — no browser. You pay **pay-per-event** on the Store: about **$0.00749 per exported club** plus a negligible run start.

| Scenario | Approx. cost |
|----------|----------------|
| 20 clubs (Try / Free plan) | ~$0.15 |
| 1,000 clubs | ~$7.49 |
| Full selection with `maxItems: 0` | $0.00749 × clubs exported |

### Is scraping FFBB free?

Apify Free plan users get **20 clubs per run**. Paid plans follow PPE and your max charge. Compute is cheap because this Actor does not launch a browser.

### Is it legal to scrape FFBB?

This Actor only accesses data that FFBB makes publicly available in its club directory. As with any data containing personal information, ensure your use complies with GDPR and relevant regulations.

### Local development

```bash
cd ffbb-clubs-scraper
npm install
apify run --input-file=./.actor/INPUT.json
```

`storage/key_value_stores/default/INPUT.json` must satisfy the input schema, or pass `--input-file`. On local `apify run`, platform/CLI input overwrites overlapping keys from a root `input.json`.

### Support

Contact <corentin@outreacher.fr> if you need a custom scraper or tailored automation.

### Also available

Also available as a pack: [France Sports Clubs hub](https://apify.com/corent1robert/france-sports-clubs-hub) — merge several federations into one dataset.

Same job (French department → published club contacts). One Actor per federation.

| Sport | Actor |
|-------|--------|
| Hiking (FFRandonnée) | [ffr-clubs-scraper](https://apify.com/corent1robert/ffr-clubs-scraper) |
| Athletics (FFA) | [ffa-clubs-scraper](https://apify.com/corent1robert/ffa-clubs-scraper) |
| Judo (FFJDA) | [ffjda-clubs-scraper](https://apify.com/corent1robert/ffjda-clubs-scraper) |
| Rugby (FFR) | [ffr-rugby-clubs-scraper](https://apify.com/corent1robert/ffr-rugby-clubs-scraper) |
| Equestrian (FFE) | [ffe-clubs-scraper](https://apify.com/corent1robert/ffe-clubs-scraper) |
| Swimming (FFN) | [ffn-clubs-scraper](https://apify.com/corent1robert/ffn-clubs-scraper) |
| Basketball (FFBB) | [ffbb-clubs-scraper](https://apify.com/corent1robert/ffbb-clubs-scraper) |
| Handball (FFHandball) | [ffhandball-clubs-scraper](https://apify.com/corent1robert/ffhandball-clubs-scraper) |
| Volleyball (FFVolley) | [ffvolley-clubs-scraper](https://apify.com/corent1robert/ffvolley-clubs-scraper) |
| Climbing (FFME) | [ffme-clubs-scraper](https://apify.com/corent1robert/ffme-clubs-scraper) |
| Canoe (FFCK) | [ffck-clubs-scraper](https://apify.com/corent1robert/ffck-clubs-scraper) |
| Golf (FFGolf) | [ffgolf-clubs-scraper](https://apify.com/corent1robert/ffgolf-clubs-scraper) |
| Chess (FFÉchecs) | [ffechecs-clubs-scraper](https://apify.com/corent1robert/ffechecs-clubs-scraper) |
| Gymnastics (FFGym) | [ffgym-clubs-scraper](https://apify.com/corent1robert/ffgym-clubs-scraper) |
| Badminton (FFBaD) | [ffbad-clubs-scraper](https://apify.com/corent1robert/ffbad-clubs-scraper) |
| Football (FFF) | [fff-clubs-scraper](https://apify.com/corent1robert/fff-clubs-scraper) |

# Actor input Schema

## `departments` (type: `array`):

One or more French departments, or **All departments** for nationwide (Corsica included). Try starts on Paris.

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

How many clubs to export. **0** = no ceiling (until selected departments are done). **Free plan: 20 per run.**

## Actor input object example

```json
{
  "departments": [
    "75"
  ],
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

All exported basketball clubs.

## `overview` (type: `string`):

Club name, location and published contacts.

## `outreachCrm` (type: `string`):

Email, phone and website for CRM import.

## `runLog` (type: `string`):

Plain-text progress for this run.

# 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 = {
    "departments": [
        "75"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/ffbb-clubs-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 = {
    "departments": ["75"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("corent1robert/ffbb-clubs-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 '{
  "departments": [
    "75"
  ],
  "maxItems": 20
}' |
apify call corent1robert/ffbb-clubs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corent1robert/ffbb-clubs-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/iBu6ripq87wVA0bHy/builds/irQDM2IQrRgVtAivT/openapi.json
