# Website Traffic Report (`bite-sized-insights/website-traffic-report`) Actor

Get structured website traffic reports including rankings, monthly visits, engagement metrics, audience geography, and traffic sources.

- **URL**: https://apify.com/bite-sized-insights/website-traffic-report.md
- **Developed by:** [bite-sized-insights](https://apify.com/bite-sized-insights) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

Extract comprehensive, well-organized website analytics from any domain. Get rankings, traffic trends, engagement metrics, audience geography, and traffic sources - all structured into clear, actionable sections. Perfect for competitor analysis, market research, SEO strategy, and business intelligence.

### Features

#### Structured Report Sections

| Section | Data Points | Description |
|---------|-------------|-------------|
| **Rank & Category** | Global Rank, Category | See where any website stands globally and what category it's classified under |
| **Traffic** | Monthly Visits, 3-Month History, Trends | Track traffic volume and growth momentum |
| **Engagement** | Bounce Rate, Pages/Visit, Avg Duration | Understand user quality and behavior patterns |
| **Audience** | Top Countries, Traffic Shares | Identify primary markets and geographic distribution |
| **Acquisition** | Search, Direct, Social, Referral, Paid | Discover how visitors find the website |

#### Key Capabilities

- **Bulk Analysis:** Analyze multiple domains in one run
- **Clean Structure:** Data organized into logical, easy-to-parse sections
- **Trend Analysis:** Month-over-month and 3-month growth metrics
- **Primary Source Detection:** Automatically identifies dominant traffic channel
- **Auto-Cleaning:** Accepts URLs or domains, automatically normalizes input

### Use Cases

| Use Case | What You Get | Business Value |
|----------|--------------|----------------|
| **Competitor Analysis** | Traffic volume, sources, engagement, rankings | Benchmark performance and identify competitive gaps |
| **Market Research** | Industry rankings, geographic distribution, trends | Understand market size and regional opportunities |
| **SEO Strategy** | Search traffic share, traffic trends, engagement | Evaluate organic performance and content effectiveness |
| **Business Intelligence** | All metrics in structured format | Data-driven decisions for marketing and growth |
| **Investment Research** | Traffic trends, market position, audience insights | Evaluate digital assets and online businesses |
| **Lead Generation** | Geographic data, traffic sources | Build targeted outreach based on audience insights |

### Quick Start

#### Basic Run

```json
{
  "domains": ["google.com", "amazon.com", "facebook.com"]
}
```

#### Input Format

Enter domains in any format - the actor automatically normalizes them:

| Input Format | Cleaned Output |
|--------------|----------------|
| `https://www.example.com` | `www.example.com` |
| `http://example.com/page` | `example.com` |
| `www.example.com` | `www.example.com` |
| `example.com` | `example.com` |

Note: the `www.` prefix is *not* stripped - `www.example.com` and `example.com` are treated as distinct domains. See Input Validation below.

#### Run & Export

1. Enter domains to analyze
2. Click "Start"
3. View results in the table views
4. Export to JSON, CSV, Excel, XML, or HTML

### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `domains` | Array\[String] | Yes | Website domains or URLs to analyze (1-500) |

#### Input Validation

- Accepts full URLs or domain names
- Auto-removes `http://`, `https://`, and port numbers -- does **not** strip a `www.` prefix (kept as-is, so `www.example.com` and `example.com` are treated as distinct domains and billed separately). HypeStat returns identical data for both (verified against a live run), so there's no benefit to submitting both -- pick one.
- Validates domain format
- Hostnames must be ASCII: internationalized domains must be given in punycode (e.g. `xn--bcher-kva.de`, not `bücher.de`)
- Ports must be numeric and between 1 and 65535; reserved/internal TLDs (e.g. `.local`, `.internal`, `.test`, `localhost`) are not accepted
- An invalid domain string anywhere in the list fails the whole run at input-validation time (no items pushed) -- not a per-domain error message
- Maximum 500 domains per run (10 for test and free runs)

### Output Data

Each domain returns a structured traffic report with five sections.

#### Rank & Category

Competitive positioning metrics, as flat top-level fields (there's no `rankings` wrapper - see the FAQ below for why).

```json
{
  "rank": 12345,
  "category": "Internet and Telecom / Social Network"
}
```

| Field | Type | Description |
|-------|------|-------------|
| `rank` | int | Worldwide traffic rank |
| `category` | string | Website category label |

#### Traffic

Volume and momentum metrics.

```json
{
  "traffic": {
    "monthly_visits": 1300000000,
    "months": [
      {"month": "2026-08", "visits": 1200000000},
      {"month": "2026-09", "visits": 1250000000},
      {"month": "2026-10", "visits": 1300000000}
    ],
    "trends": [
      {"period": "previous_month", "change_percent": 4.0},
      {"period": "last_three_months", "change_percent": 8.33}
    ]
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `monthly_visits` | int | Most recent month's total visits |
| `months` | array | Last 3 months with visit counts (chronological) |
| `trends` | array | Growth percentages for different periods |

**Trend Periods:**

- `previous_month` - Change from second-to-last to last month
- `last_three_months` - Change from first to last month

#### Engagement

User quality signals.

```json
{
  "engagement": {
    "bounce_rate": 0.4523,
    "pages_per_visit": 5.23,
    "avg_duration_seconds": 245.67
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `bounce_rate` | float | Bounce rate (0-1 scale) |
| `pages_per_visit` | float | Average pages viewed per visit |
| `avg_duration_seconds` | float | Average visit duration in seconds |

#### Audience

Geographic distribution.

```json
{
  "audience": {
    "top_countries": [
      {"code": "US", "share": 0.35},
      {"code": "GB", "share": 0.08},
      {"code": "DE", "share": 0.06}
    ]
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `top_countries` | array | Countries ranked by traffic share |
| `top_countries[].code` | string | Country code (ISO 3166-1 alpha-2) |
| `top_countries[].share` | float | Traffic share (0-1 scale) |

#### Acquisition

Traffic channel performance.

```json
{
  "acquisition": {
    "sources": {
      "search": 0.45,
      "direct": 0.37,
      "referrals": 0.10,
      "social": 0.05,
      "paid_referrals": 0.02
    },
    "primary_source": "search"
  }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `sources` | object | Traffic sources with their shares (0-1 scale) |
| `primary_source` | string | Source with highest share |

**Traffic Source Types:**

- `direct` - Direct visits (typed URL, bookmarks)
- `search` - Organic search traffic
- `social` - Social media platforms
- `referrals` - Links from other websites
- `paid_referrals` - Paid advertising traffic

Note: only channels HypeStat reports for that site appear in `sources` - a domain may have fewer than 5 keys.

#### Complete Output Example

```json
{
  "domain": "example.com",
  "rank": 12345,
  "category": "Business",
  "traffic": {
    "monthly_visits": 5000000,
    "months": [
      {"month": "2026-08", "visits": 4800000},
      {"month": "2026-09", "visits": 4900000},
      {"month": "2026-10", "visits": 5000000}
    ],
    "trends": [
      {"period": "previous_month", "change_percent": 2.04},
      {"period": "last_three_months", "change_percent": 4.17}
    ]
  },
  "engagement": {
    "bounce_rate": 0.42,
    "pages_per_visit": 4.5,
    "avg_duration_seconds": 180
  },
  "audience": {
    "top_countries": [
      {"code": "US", "share": 0.45},
      {"code": "GB", "share": 0.12}
    ]
  },
  "acquisition": {
    "sources": {
      "search": 0.40,
      "direct": 0.35,
      "social": 0.15,
      "referrals": 0.08,
      "paid_referrals": 0.02
    },
    "primary_source": "search"
  },
  "error": null
}
```

#### Error Output

When a domain cannot be analyzed:

```json
{
  "domain": "invalid-domain.xyz",
  "error": "Domain not found on HypeStat"
}
```

### Pricing: Pay As You Go

This actor uses Apify's pay-per-event billing model for cost-effective, usage-based pricing.

| Event | Cost | Description |
|-------|------|-------------|
| `domain` | $5.00 / 1,000 (Free plan) | Charged per successfully analyzed domain; cheaper on higher plans, see below |
| `apify-actor-start` | $0.00025 per run | Charged once per GB of memory (minimum one), i.e. once for runs at or under 1 GB |

**Key billing details:**

- **Only successful results are charged:** Failed domains (no data on HypeStat) are free
- **No minimum commitment:** Pay only for what you use
- **Budget controls:** Set spending limits in your Apify account

The start event ($0.00025) is charged once per GB of memory (minimum one), i.e. once for runs at or under 1 GB.

**`domain` price by Apify plan:**

| Plan | Cost |
|------|------|
| Free | $5.00 / 1,000 |
| Bronze | $4.75 / 1,000 |
| Silver | $4.25 / 1,000 |
| Gold, Platinum, Diamond | $3.25 / 1,000 |

#### Free Test Runs

New users on Apify's free plan get up to 5 free runs of this actor (lifetime total), each capped to a maximum of 10 domains - upgrade your Apify plan for unlimited runs. Runs started via the Apify Console's "Test" button are always capped to 10 domains too, regardless of your plan, and don't count against the 5 free runs.

### API Integration

#### Call via Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/bite-sized-insights~website-traffic-report/runs?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "domains": ["google.com", "facebook.com", "amazon.com"]
  }'
```

#### Python Integration

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("bite-sized-insights/website-traffic-report").call(
    run_input={
        "domains": ["apify.com", "scrapy.org"]
    }
)

## Fetch results
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get('error'):
        continue
    print(f"{item['domain']}: Rank #{item['rank']}")
```

#### JavaScript/Node.js Integration

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('bite-sized-insights/website-traffic-report').call({
    domains: ['apify.com', 'scrapy.org']
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => {
    if (item.error) return;
    console.log(`${item.domain}: Rank #${item.rank}`);
});
```

### Dataset Views

The actor provides two table views for easy data analysis:

#### Overview

Quick snapshot of the key metrics:

- Domain
- Rank and category
- Traffic (monthly visits, trends)
- Engagement (bounce rate, pages/visit, duration)

#### Audience & Acquisition

- Domain
- Audience (top countries by traffic share)
- Acquisition (traffic source shares, primary source)

### Technical Details

#### Rate Limits & Performance

- **Automatic batching:** We chunk your workload into batches for faster parallel processing.
- **Parallel processing:** Up to 2 concurrent API requests (3 for runs over 300 domains)
- **Fault tolerance:** Failed batches don't stop other batches from processing

#### Error Handling

The actor handles errors gracefully:

| Error Type | Behavior |
|------------|----------|
| Invalid domain string | Whole run fails at input-validation time (no items pushed) |
| No HypeStat data | Returns with error message |
| Page without any readable report data | Returns an error row with `"error": "parse_empty"` (not charged) |
| Rate limit (429) | Automatic retry with backoff |
| Server error (5xx) | Automatic retry (3 attempts) |
| Auth failure (401) | Actor fails with clear message |

### FAQ

#### How accurate is the data?

The data comes from HypeStat, a web analytics platform that estimates traffic using a mix of measurement and statistical modeling. As with any third-party traffic estimate, accuracy is best for higher-traffic sites; smaller sites may see less precise numbers.

#### Why do some domains show errors?

This can happen if:

- The domain is very new or has minimal traffic
- The domain doesn't exist or is misspelled
- The report page contained no readable data (`parse_empty`)

These rows contain only `domain` and `error`, and you are not charged for them.

#### What do the share values mean?

Share values are decimals from 0 to 1:

- `0.45` = 45%
- `0.08` = 8%

#### Can I analyze my own website?

Yes! This is useful for:

- Verifying your analytics data
- Understanding your traffic sources
- Benchmarking against competitors
- Tracking growth trends

#### How current is the data?

The data is not real-time. Traffic estimates are updated periodically, and the latest data point may lag the current month. The monthly history covers up to the last 3 months. The `traffic.months` array shows exactly which months are included.

#### Why is there no `rankings` object with a country or category rank?

Earlier versions of this actor's output nested `rank` and `category` inside a `rankings` object alongside a country-specific rank and a numeric rank within category. HypeStat (the current data source) doesn't provide either of those, so rather than ship permanently-`null` fields, `rank` and `category` are now flat top-level fields and the unused ones were dropped entirely.

#### What's the difference between this and the HypeStat Scraper actor?

| Feature | Website Traffic Report | HypeStat Scraper |
|---------|----------------------|-------------------|
| Data Structure | Organized sections | Flat data fields |
| Trend Analysis | Month-over-month trends | Raw monthly data |
| Primary Source | Automatically identified | Manual analysis needed |
| Best For | Quick insights, reporting | Raw data, custom analysis |

#### How many domains can I analyze?

Up to 500 domains per run (a hard limit -- exceeding it fails the run at input-validation time before anything is processed). Domains within that limit are processed in parallel batches for efficiency. For larger workloads, split them across multiple runs.

### Disclaimer

This actor retrieves publicly available data from HypeStat. The accuracy and availability of data depends on HypeStat's own coverage and methodology, which this actor has no control over. Use the data in compliance with applicable laws and HypeStat's terms of service.

The actor does not store any data beyond the immediate run results. All data is delivered directly to your Apify dataset.

***

**Transform website data into actionable insights.** Get structured, organized analytics that's ready for analysis and reporting.

***

**Need help?** Open an issue on the actor's repository or contact support through Apify Console.

# Actor input Schema

## `domains` (type: `array`):

List of domains or URLs to analyze. Can be TLDs (example.com) or full URLs (https://example.com/page) - domain will be extracted automatically. Up to 500 domains per run (10 for test and free runs).

## Actor input object example

```json
{
  "domains": [
    "google.com",
    "facebook.com",
    "amazon.com",
    "youtube.com",
    "wikipedia.org",
    "twitter.com",
    "reddit.com",
    "netflix.com",
    "linkedin.com",
    "instagram.com"
  ]
}
```

# Actor output Schema

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

Structured traffic reports for each domain including rank, visits, engagement, audience, and acquisition data

# 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 = {
    "domains": [
        "google.com",
        "facebook.com",
        "amazon.com",
        "youtube.com",
        "wikipedia.org",
        "twitter.com",
        "reddit.com",
        "netflix.com",
        "linkedin.com",
        "instagram.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bite-sized-insights/website-traffic-report").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 = { "domains": [
        "google.com",
        "facebook.com",
        "amazon.com",
        "youtube.com",
        "wikipedia.org",
        "twitter.com",
        "reddit.com",
        "netflix.com",
        "linkedin.com",
        "instagram.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bite-sized-insights/website-traffic-report").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 '{
  "domains": [
    "google.com",
    "facebook.com",
    "amazon.com",
    "youtube.com",
    "wikipedia.org",
    "twitter.com",
    "reddit.com",
    "netflix.com",
    "linkedin.com",
    "instagram.com"
  ]
}' |
apify call bite-sized-insights/website-traffic-report --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bite-sized-insights/website-traffic-report"
        }
    }
}
```

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/77V7L5irb80bIJGYX/builds/ymgPdkz5nWR1WBdmx/openapi.json
