Seo Traffic Api avatar

Seo Traffic Api

Pricing

from $4.00 / 1,000 results

Go to Apify Store
Seo Traffic Api

Seo Traffic Api

Apify Actor that fetches SEO traffic analytics data for a given domain. Comprehensive traffic overview (visits, bounce rate, pages per visit, time on site, global/country rank) Traffic source breakdown (organic search, paid search, direct, social, referrals, mail, display ads, AI, affiliate)

Pricing

from $4.00 / 1,000 results

Rating

0.0

(0)

Developer

Leo Yan

Leo Yan

Maintained by Community

Actor stats

0

Bookmarked

16

Total users

4

Monthly active users

19 days ago

Last modified

Categories

Share

Apify Actor that fetches SEO traffic analytics data for a given domain.

Features

  • Comprehensive traffic overview (visits, bounce rate, pages per visit, time on site, global/country rank)
  • 12-month monthly visit trends
  • Traffic source breakdown (organic search, paid search, direct, social, referrals, mail, display ads, AI, affiliate)
  • Traffic source trends over the past 12 months
  • Top search keywords with estimated value, search volume, and CPC
  • Top traffic regions by country
  • AI chatbot traffic trends (ChatGPT, Claude, DeepSeek, etc.)

Input

The Actor accepts a single required parameter:

FieldTypeRequiredDescriptionExample
domainstringYesThe domain to fetch SEO traffic data forexample.com

Input Example

{
"domain": "example.com"
}

Output

The Actor outputs a JSON object with two top-level fields:

FieldTypeDescription
domainstringThe queried domain
dataobjectFull SEO traffic analytics data (see below)

data Object Structure

FieldTypeDescription
hostnamestringThe hostname of the domain
titlestringThe page title
descriptionstringThe page description
cachednumberUnix timestamp of when the data was cached
overviewobjectTraffic overview: bounceRate, month, year, pagePerVisit, visits, timeOnSite, globalRank, countryRank
monthlyVisitsobjectMonthly visit counts keyed by date (YYYY-MM-DD)
trafficSourcesobjectTraffic distribution by source (direct, search, social, referrals, etc.)
trafficSourceTrendsobjectMonthly trends for each traffic source over the past 12 months
topKeywordsarrayTop 5 organic search keywords with name, estimatedValue, volume, cpc
topRegionsarrayTop 5 traffic regions with country code, name, and traffic share
aiTrafficobjectAI chatbot traffic trends with historical data

Output Example

{
"domain": "www.google.com",
"data": {
"hostname": "google.com",
"title": "Google Advanced Search",
"description": "Learn about the Certified Publisher Program. Our publishing software experts will help you maximize revenue and grow your business.",
"cached": 1786344766589,
"overview": {
"bounceRate": "0.28352824215831807",
"month": "6",
"year": "2026",
"pagePerVisit": "8.695346223748027",
"visits": "84940150026",
"timeOnSite": "605.4395199614316",
"hostname": "google.com",
"globalRank": 1,
"countryRank": 1
},
"monthlyVisits": {
"2025-07-01": 84453296855,
"2025-08-01": 83873698954,
"2025-09-01": 82550325867,
"2025-10-01": 85326206196,
"2025-11-01": 82284033110,
"2025-12-01": 84172772881,
"2026-01-01": 85756574615,
"2026-02-01": 78229857909,
"2026-03-01": 86850607710,
"2026-04-01": 84751050692,
"2026-05-01": 87502305979,
"2026-06-01": 84940150026
},
"trafficSources": {
"socialOrganic": 0.0275,
"socialPaid": 0.0012,
"mail": 0.0093,
"referrals": 0.0171,
"searchOrganic": 0.0073,
"searchPaid": 0.0004,
"direct": 0.9248,
"genAi": 0.005,
"affiliate": 0.0002,
"displayAds": 0.0073
},
"trafficSourceTrends": {
"direct": {
"2025-07-01": 0.8773,
"2025-08-01": 0.8759,
"2025-09-01": 0.878,
"2025-10-01": 0.8681,
"2025-11-01": 0.8637,
"2025-12-01": 0.866,
"2026-01-01": 0.8583,
"2026-02-01": 0.8576,
"2026-03-01": 0.8552,
"2026-04-01": 0.9212,
"2026-05-01": 0.9255,
"2026-06-01": 0.9248
},
"search": {
"2025-07-01": 0.0613,
"2025-08-01": 0.0634,
"2025-09-01": 0.0657,
"2025-10-01": 0.07,
"2025-11-01": 0.0789,
"2025-12-01": 0.0765,
"2026-01-01": 0.0835,
"2026-02-01": 0.0871,
"2026-03-01": 0.0913,
"2026-04-01": 0.0094,
"2026-05-01": 0.0076,
"2026-06-01": 0.0077
},
"social": {
"2025-07-01": 0.0055,
"2025-08-01": 0.0053,
"2025-09-01": 0.0051,
"2025-10-01": 0.0069,
"2025-11-01": 0.0091,
"2025-12-01": 0.0085,
"2026-01-01": 0.0076,
"2026-02-01": 0.0083,
"2026-03-01": 0.0086,
"2026-04-01": 0.0327,
"2026-05-01": 0.0286,
"2026-06-01": 0.0287
},
"referrals": {
"2025-07-01": 0.0519,
"2025-08-01": 0.051,
"2025-09-01": 0.0461,
"2025-10-01": 0.0493,
"2025-11-01": 0.0425,
"2025-12-01": 0.0433,
"2026-01-01": 0.0446,
"2026-02-01": 0.0403,
"2026-03-01": 0.0386,
"2026-04-01": 0.0167,
"2026-05-01": 0.0173,
"2026-06-01": 0.0171
},
"paidReferrals": {
"2025-07-01": 0.0019,
"2025-08-01": 0.0018,
"2025-09-01": 0.0023,
"2025-10-01": 0.0029,
"2025-11-01": 0.0028,
"2025-12-01": 0.0031,
"2026-01-01": 0.0033,
"2026-02-01": 0.0036,
"2026-03-01": 0.0039,
"2026-04-01": 0.0042,
"2026-05-01": 0.0072,
"2026-06-01": 0.0073
},
"mail": {
"2025-07-01": 0.0021,
"2025-08-01": 0.0026,
"2025-09-01": 0.0028,
"2025-10-01": 0.0027,
"2025-11-01": 0.0029,
"2025-12-01": 0.0026,
"2026-01-01": 0.0028,
"2026-02-01": 0.0031,
"2026-03-01": 0.0024,
"2026-04-01": 0.0107,
"2026-05-01": 0.0087,
"2026-06-01": 0.0093
},
"other": {
"2025-07-01": 0,
"2025-08-01": 0,
"2025-09-01": 0,
"2025-10-01": 0,
"2025-11-01": 0,
"2025-12-01": 0,
"2026-01-01": 0,
"2026-02-01": 0,
"2026-03-01": 0,
"2026-04-01": 0.0052,
"2026-05-01": 0.0051,
"2026-06-01": 0.0052
}
},
"topKeywords": [
{
"name": "gemini",
"estimatedValue": 197390210,
"volume": 130001020,
"cpc": 0.24
},
{
"name": "google maps",
"estimatedValue": 92523770,
"volume": 64808430,
"cpc": 0.35
},
{
"name": "gmail",
"estimatedValue": 87284280,
"volume": 112710250,
"cpc": 1.78
},
{
"name": "maps",
"estimatedValue": 47136290,
"volume": 45816760,
"cpc": 0.21
},
{
"name": "google",
"estimatedValue": 44958320,
"volume": 36774950,
"cpc": 1.28
}
],
"topRegions": [
{
"country": 840,
"name": "United States",
"value": 0.23679350972974017
},
{
"country": 392,
"name": "Japan",
"value": 0.059428140900848324
},
{
"country": 356,
"name": "India",
"value": 0.05710248670449797
},
{
"country": 76,
"name": "Brazil",
"value": 0.049777326688909565
},
{
"country": 826,
"name": "United Kingdom",
"value": 0.03518837304351638
}
],
"aiTraffic": {
"trends": [
{
"name": "chatgpt.com",
"history": [
{
"date": "2026-06-01",
"value": 46.822769265029336
},
{
"date": "2026-05-01",
"value": 54.19056888493608
},
{
"date": "2026-04-01",
"value": 43.86165241236921
}
]
},
{
"name": "claude.ai",
"history": [
{
"date": "2026-06-01",
"value": 35.27985259713669
},
{
"date": "2026-05-01",
"value": 32.84519157978467
},
{
"date": "2026-04-01",
"value": 35.5953696772892
}
]
},
{
"name": "chat.deepseek.com",
"history": [
{
"date": "2026-06-01",
"value": 11.057065382489355
},
{
"date": "2026-05-01",
"value": 6.569319528944286
},
{
"date": "2026-04-01",
"value": 5.708857817895558
}
]
}
]
}
}
}

Publishing as a Task

A Task is a pre-configured, shareable run of this Actor with a public landing page. Published tasks appear in the Actor's "Example tasks" tab and are indexed by search engines and AI agents.

Prerequisites

  1. Apify CLI (>= 1.9.0) installed: npm install -g apify-cli
  2. Logged in: apify login
  3. Actor pushed to Apify: apify push

Quick Publish

Linux / macOS:

$./scripts/publish-task-pure-cli.sh [task-name]

Windows (PowerShell):

.\scripts\publish-task-pure-cli.ps1 -TaskName seo-traffic-check

Windows (CMD):

scripts\publish-task-pure-cli.bat seo-traffic-check

默认 task name 为 seo-traffic-check。

手动 CLI 步骤

# 1. 获取 Actor ID
ACTOR_ID=$(apify api GET acts/$(apify api GET users/me | jq -r .data.username)/seo-traffic-api | jq -r .data.id)
# 2. 创建 Task
apify api POST actor-tasks -d "{
\"actId\": \"$ACTOR_ID\",
\"name\": \"seo-traffic-check\",
\"title\": \"Check SEO Traffic for Any Domain\",
\"description\": \"Get comprehensive SEO traffic analytics for any domain.\",
\"input\": {\"domain\": \"example.com\"}
}"
# 3. 配置 publicConfig
apify api PUT actor-tasks/<username>~seo-traffic-check -d '{
"title": "Check SEO Traffic for Any Domain",
"description": "Get comprehensive SEO traffic analytics for any domain including visits, traffic sources, top keywords, regional breakdown, and AI chatbot traffic trends.",
"publicConfig": {
"seoTitle": "SEO Traffic Analyzer - Get Website Traffic Data",
"seoDescription": "Analyze any domain SEO traffic: visits, sources, keywords, regions, AI traffic.",
"inputSchemaFields": ["domain"],
"datasetView": "overview"
}
}'
# 4. 发布
apify task publish seo-traffic-check

Task Configuration

FieldValue
Task nameseo-traffic-check
TitleCheck SEO Traffic for Any Domain
Input fieldsdomain
Dataset viewoverview
Landing URLhttps://apify.com/{username}/seo-traffic-api/examples/seo-traffic-check

Dataset Views

The dataset schema (.actor/dataset_schema.json) defines four views:

ViewDescription
overviewHigh-level traffic metrics: visits, bounce rate, pages/visit, time on site, global/country rank
keywordsTop organic search keywords with estimated value, search volume, and CPC (unwound into rows)
regionsTraffic distribution by country (unwound into rows)
fullComplete raw output including all traffic data

Managing Tasks

apify task run seo-traffic-check # Run the task
apify task publish seo-traffic-check # Publish
apify task unpublish seo-traffic-check # Unpublish

Usage

Programmatically on Apify

You can run this Actor via the Apify API:

curl -X POST "https://api.apify.com/v2/acts/your-actor-name/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'

Notes

  • Traffic source values are expressed as proportions (e.g., 0.9248 = 92.48%).

License

This project is licensed under the MIT License.

Author

Maintained by the project owner. Bug reports and feature requests are welcome.