# Bcboysbasketball Score Scraper (`getdataforme/bcboysbasketball-score-scraper`) Actor

Extract detailed basketball player stats like points, rebounds, and assists from BC Boys Basketball leagues with this reliable Apify Actor. Supports multiple seasons, customizable URLs, and delivers structured JSON output for easy analysis....

- **URL**: https://apify.com/getdataforme/bcboysbasketball-score-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.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

## Bcboysbasketball Score Scraper

### Introduction

The Bcboysbasketball Score Scraper is a powerful Apify Actor designed to extract comprehensive basketball player statistics from the BC Boys Basketball website. It automates the collection of detailed performance data, including points, rebounds, assists, and more, enabling users to gather insights into player and team performances across various seasons. This tool is ideal for coaches, analysts, and enthusiasts seeking reliable, structured data for analysis and reporting.

### Features

- **Comprehensive Data Extraction**: Scrapes detailed player stats such as points, rebounds, assists, steals, blocks, and shooting percentages from league pages.
- **Season-Specific Crawling**: Supports multiple seasons, allowing targeted data collection for historical or current analysis.
- **High Reliability**: Built on Apify's CheerioCrawler for efficient, error-resistant web scraping with built-in retry mechanisms.
- **Structured Output**: Delivers clean, JSON-formatted data ready for integration into databases, spreadsheets, or analytics tools.
- **Customizable Inputs**: Flexible start URLs and season selection to focus on specific leagues or teams.
- **Fast and Scalable**: Handles large datasets quickly, with options for parallel processing to minimize runtime.
- **No Coding Required**: User-friendly interface for non-technical users to run extractions effortlessly.

### Input Parameters

| Parameter | Type   | Required | Description | Example |
|-----------|--------|----------|-------------|---------|
| startUrls | array  | Yes      | An array of URLs to start the scraping process. These should point to league stats pages on bcboysbasketball.com. | \[{"url": "https://www.bcboysbasketball.com/leagues/stats/_basketball.cfm?leagueID=31301\&clientID=2192"}] |
| seasonId  | string | No       | The ID of the season to scrape stats for. Defaults to the 2024-25 season. | "69414" |

### Example Usage

#### Input JSON

```json
{
  "startUrls": [
    {
      "url": "https://www.bcboysbasketball.com/leagues/stats_basketball.cfm?leagueID=31301&clientID=2192"
    }
  ],
  "seasonId": "69414"
}
```

#### Output JSON

```json
[
  {
    "name": "Calvin Kuzyk",
    "playerUrl": "https://www.bcboysbasketball.com/leagues/rosters_profile.cfm?clientID=2192&leagueID=31301&teamID=634550&playerID=2334710&printPage=0",
    "jerseyNumber": "5",
    "position": "PG",
    "team": "West Vancouver Highlanders (4A)",
    "teamUrl": "https://www.bcboysbasketball.com/leagues/stats_1team.cfm?clientID=2192&teamID=634550&leagueID=31301",
    "gamesPlayed": 1,
    "twoPointAttempted": 15,
    "twoPointMade": 9,
    "threePointAttempted": 7,
    "threePointMade": 4,
    "freeThrowAttempted": 13,
    "freeThrowMade": 10,
    "freeThrowPercentage": 0.77,
    "totalPoints": 40,
    "pointsPerGame": 40,
    "offensiveRebounds": 3,
    "defensiveRebounds": 3,
    "assists": 7,
    "fouls": 0,
    "blocks": 0,
    "steals": 3
  }
]
```

### Use Cases

- **Sports Analytics**: Analyze player performance trends to inform coaching decisions or scouting reports.
- **League Reporting**: Generate comprehensive stats reports for leagues, teams, or individual players.
- **Fan Engagement**: Provide fans with up-to-date player stats for blogs, apps, or social media.
- **Academic Research**: Collect data for studies on sports performance, team dynamics, or statistical modeling.
- **Fantasy Sports**: Feed real-time or historical stats into fantasy leagues for better player evaluations.
- **Business Automation**: Automate data pipelines for sports media outlets or betting platforms.

### Installation and Usage

1. Search for "Bcboysbasketball Score Scraper" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters (e.g., start URLs and season ID).
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The Actor outputs an array of JSON objects, each representing a player's statistics. Key fields include player details (name, URL, jersey number, position, team), game stats (games played, points, rebounds, assists), and shooting metrics (attempts, makes, percentages). This structured format ensures easy parsing and integration, with numerical values for quantitative analysis and URLs for further exploration.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

Extract comprehensive basketball stats from BC Boys Basketball effortlessly. Features fast, reliable scraping of player data like points, rebounds, and assists across seasons. Perfect for analytics, reporting, and fan engagement. Try it now on Apify! (248 characters)

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with.

## `seasonId` (type: `string`):

The season to crawl stats for.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.bcboysbasketball.com/leagues/stats_basketball.cfm?leagueID=31301&clientID=2192"
    }
  ],
  "seasonId": "69414"
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.bcboysbasketball.com/leagues/stats_basketball.cfm?leagueID=31301&clientID=2192"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/bcboysbasketball-score-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 = { "startUrls": [{ "url": "https://www.bcboysbasketball.com/leagues/stats_basketball.cfm?leagueID=31301&clientID=2192" }] }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/bcboysbasketball-score-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 '{
  "startUrls": [
    {
      "url": "https://www.bcboysbasketball.com/leagues/stats_basketball.cfm?leagueID=31301&clientID=2192"
    }
  ]
}' |
apify call getdataforme/bcboysbasketball-score-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/bcboysbasketball-score-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/rxvUA0YDdMvaIIda2/builds/uuuUxiI2fGugpNPoV/openapi.json
