# Bchighschoolfootball Teams Scraper (`getdataforme/bchighschoolfootball-teams-scraper`) Actor

Effortlessly extract comprehensive BC high school football team data, including divisions, records, rosters, and stats links. Built for sports analysts, coaches, and fans, it delivers clean JSON outputs with fast, reliable scraping and robust error handling....

- **URL**: https://apify.com/getdataforme/bchighschoolfootball-teams-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Lead generation
- **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

## Bchighschoolfootball Teams Scraper

### Introduction

The Bchighschoolfootball Teams Scraper is a powerful Apify Actor designed to extract comprehensive team data from the BC High School Football website. It efficiently scrapes team details, including divisions, records, and links to stats and rosters, enabling users to gather structured information for analysis or integration. This tool is ideal for sports enthusiasts, coaches, and analysts seeking reliable data on high school football teams in British Columbia.

### Features

- **Comprehensive Data Extraction**: Scrapes key team attributes such as division, name, logo, address, current record, and upcoming games.
- **Structured Output**: Delivers data in clean JSON format, perfect for further processing or database integration.
- **Reliable Crawling**: Utilizes CheerioCrawler for fast and efficient web scraping with built-in error handling.
- **Customizable Inputs**: Supports multiple start URLs to target specific leagues or regions.
- **High Performance**: Optimized for speed, handling large datasets without compromising accuracy.
- **User-Friendly**: Simple setup via Apify Store, with clear logging for monitoring progress.
- **Versatile Links**: Includes direct links to team stats, rosters, personnel, and websites for deeper insights.

### Input Parameters

| Parameter | Type    | Required | Description                                                                 | Example |
|-----------|---------|----------|-----------------------------------------------------------------------------|---------|
| startUrls | array   | Yes      | An array of URLs to start scraping from. Each URL should point to a league teams page on bchighschoolfootball.com. | \[{"url": "https://www.bchighschoolfootball.com/leagues/teams.cfm?leagueID=6714\&clientID=652"}] |

### Example Usage

To run the Actor, provide the input parameters in JSON format. Here's an example:

```json
{
  "startUrls": [
    {
      "url": "https://www.bchighschoolfootball.com/leagues/teams.cfm?leagueID=6714&clientID=652"
    }
  ]
}
```

The Actor will output an array of team objects. Example output:

```json
[
  {
    "division": "AA Interior",
    "teamId": "671380",
    "name": "CLARENCE FULTON AA",
    "logo": "https://www.bchighschoolfootball.com//media/leagues/can_bc_bchsfa/graphics/clarence%5Ffulton3%2Ejpg",
    "address": "2301 Fulton Rd, Vernon, BC, Canada, V1H 1Y1",
    "record": "0-0-0",
    "nextGame": "No Games Scheduled",
    "links": {
      "stats": "https://www.bchighschoolfootball.com/stats_1team.cfm?leagueID=6714&teamID=671380&clientID=652",
      "roster": "https://www.bchighschoolfootball.com/rosters.cfm?leagueID=6714&teamID=671380&clientID=652",
      "personnel": "https://www.bchighschoolfootball.com/personnel.cfm?leagueID=6714&teamID=671380&clientID=652",
      "website": "https://www.bchighschoolfootball.com/"
    }
  }
]
```

### Use Cases

- **Sports Analytics**: Analyze team performance metrics and records for scouting or strategy development.
- **League Management**: Compile team directories for organizing tournaments or events.
- **Fan Engagement**: Build apps or websites displaying team info, schedules, and stats.
- **Research**: Gather data for academic studies on high school sports trends.
- **Content Creation**: Aggregate team data for blogs, newsletters, or social media posts.
- **Business Automation**: Integrate scraped data into CRM systems for targeted marketing to sports communities.

### Installation and Usage

1. Search for "Bchighschoolfootball Teams Scraper" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters (e.g., add start URLs).
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 team. Key fields include:

- `division`: The league division (e.g., "AA Interior").
- `teamId`: Unique identifier for the team.
- `name`: Full team name.
- `logo`: URL to the team's logo image.
- `address`: Physical address of the team.
- `record`: Current win-loss-tie record (e.g., "0-0-0").
- `nextGame`: Details of the next scheduled game or "No Games Scheduled".
- `links`: Object with URLs to stats, roster, personnel, and website pages.

This structured format ensures easy parsing and integration into databases or applications.

### 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!

***

### PART 2: Concise Description

Unlock comprehensive BC high school football team data with our scraper! Extract divisions, records, logos, addresses, and direct links to stats/rosters. Perfect for analytics, league management, and fan apps. Fast, reliable, and easy to use. Try it now on Apify Store! (148 characters)

# Actor input Schema

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

URLs to start with.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.bchighschoolfootball.com/leagues/teams.cfm?leagueID=6714&clientID=652"
    }
  ]
}
```

# 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.bchighschoolfootball.com/leagues/teams.cfm?leagueID=6714&clientID=652"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/bchighschoolfootball-teams-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.bchighschoolfootball.com/leagues/teams.cfm?leagueID=6714&clientID=652" }] }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/bchighschoolfootball-teams-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.bchighschoolfootball.com/leagues/teams.cfm?leagueID=6714&clientID=652"
    }
  ]
}' |
apify call getdataforme/bchighschoolfootball-teams-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/bchighschoolfootball-teams-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/SpZ0WjBx6ajhbVBWX/builds/978LDwdKspAyJyBbe/openapi.json
