API Documentation

Traffic API

Query site traffic data by domain.

Test API

Endpoint

GET https://api.goanyapi.com/api/v1/traffic

Current configured costs by query mode: 3 months: 2 credits; 6 months: 4 credits; 12 months: 6 credits.

Authentication

Authorization: Bearer YOUR_API_KEY

Request Parameters

ParameterTypeRequiredDescription
domainstringYesTarget domain
monthnumberNoHistory range: 3, 6, or 12; defaults to 3

Credit costs are loaded dynamically from the current API settings and vary by the selected history range.

Example

GET /api/v1/traffic?domain=mangadex.org&month=3
Authorization: Bearer YOUR_API_KEY

Response Example

{
  "code": "ok",
  "message": "ok",
  "data": {
    "endpoint": "traffic",
    "remainingCredits": 79,
    "query": {
      "domain": "mangadex.org",
      "month": "3"
    },
    "HistoryMonths": 3,
    "Policy": 0,
    "Description": "Read comics and manga online at MangaDex, with high quality images and support creators and translators!",
    "Category": "",
    "TopKeywords": [
      {
        "Name": "mangadex",
        "Volume": 650050,
        "Cpc": 0.63,
        "EstimatedValue": 1482850
      }
    ],
    "SiteName": "mangadex.org",
    "TopCountryShares": [
      {
        "Country": 840,
        "CountryCode": "US",
        "Value": 0.375511360640705
      }
    ],
    "CountryRank": {
      "Country": 840,
      "CountryCode": "US",
      "Rank": 226
    },
    "Title": "MangaDex",
    "Engagments": {
      "BounceRate": "0.3285128562814251",
      "Month": "2",
      "Year": "2026",
      "Visits": "48954756",
      "TimeOnSite": "410.25450715662765",
      "PagePerVisit": "29.548163052525982"
    },
    "EstimatedMonthlyVisits": {
      "2025-12-01": 55855138,
      "2026-01-01": 57329539,
      "2026-02-01": 48954756
    },
    "GlobalRank": {
      "Rank": 308
    },
    "TrafficSources": {
      "Social": 0.022719871189541836,
      "Mail": 0.014506298771292721,
      "Referrals": 0.022612703963185977,
      "Search": 0.1475054175647919,
      "Direct": 0.7299583784763182,
      "SocialPaid": 0.001810277557258009,
      "SearchPaid": 0.02898780346576485,
      "GenAI": 0.014030951740099966,
      "Affiliate": 0.00005200559846789679,
      "DisplayAds": 0.017816291673278476
    },
    "trafficSourceTrends": {
      "Direct": {
        "2025-12-01": 0.718,
        "2026-01-01": 0.724,
        "2026-02-01": 0.7299583784763182
      },
      "Search": {
        "2025-12-01": 0.156,
        "2026-01-01": 0.151,
        "2026-02-01": 0.1475054175647919
      }
    },
    "aiTraffic": {
      "totalVisits": 686870,
      "share": 0.014030951740099966,
      "trends": [
        {
          "source": "ChatGPT",
          "history": [
            { "date": "2025-12-01", "visits": 598000 },
            { "date": "2026-01-01", "visits": 654000 },
            { "date": "2026-02-01", "visits": 686870 }
          ]
        }
      ]
    },
    "CategoryRank": {
      "Category": "",
      "Rank": "0"
    },
    "DateData": {
      "registration": "2018-02-22T22:03:18.26Z",
      "expiration": "2027-02-22T22:03:18.26Z"
    }
  }
}

Response Fields

FieldDescription
data.endpointFixed value: traffic
data.costCreditsCredits consumed by this request
data.remainingCreditsRemaining credits after deduction
data.query.domainNormalized domain parameter
data.query.monthNormalized history range
data.HistoryMonthsHistory range returned by this request
data.PolicyPolicy flag
data.DescriptionSite description
data.CategorySite category
data.TopKeywordsTop traffic keywords
data.SiteNameSite domain
data.TopCountrySharesTop country traffic shares
data.CountryRankRank in the top country
data.TitleSite title
data.EngagmentsEngagement metrics
data.EstimatedMonthlyVisitsRecent monthly visits
data.GlobalRankGlobal traffic rank
data.TrafficSourcesTraffic source distribution
data.trafficSourceTrendsMonthly traffic source trends
data.aiTrafficAI traffic overview and monthly history
data.CategoryRankCategory rank
data.DateDataDomain registration and expiration dates

TrafficSources Fields

data.TrafficSources can include these source keys: Social, Mail, Referrals, Search, Direct, SocialPaid, SearchPaid, GenAI, Affiliate, and DisplayAds.