Skip to main content

Website traffic-rank API

Top website / web traffic leaderboard via the Trends API live feeds. Competitive intel as JSON.

License: MIT PyPI

Key: trendsapi.ai/#get-key. Full contract: trendsapi-ai/trendsapi.

JS: web-traffic-api.

Install

pip install web-traffic-api
from web_traffic_api import TrendsAPI

client = TrendsAPI()  # TRENDSAPI_KEY
sites = client.get_top_websites(limit=25)

get_top_websites() presets type: "Top Websites". Override source= for any other platform. Official full client: trendsapi.

Call

Field Value
Endpoint POST https://api.trendsapi.ai/api
Auth Authorization: Bearer $TRENDSAPI_KEY
Mode get_top_trends
type Top Websites (exact capitalization)
Optional category, limit, offset
curl -sS -X POST https://api.trendsapi.ai/api \
  -H "Authorization: Bearer $TRENDSAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"get_top_trends","type":"Top Websites","limit":25}'

There is no source: web traffic (that string is 400).

Parsed data is [rank, hostname] pairs.

This is third-party rank estimation, not Google Analytics.

Site: https://trendsapi.ai/trends/web-traffic. GitHub: trendsapi-ai/web-traffic-api.

License

MIT. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

web_traffic_api-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

web_traffic_api-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file web_traffic_api-1.0.0.tar.gz.

File metadata

  • Download URL: web_traffic_api-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for web_traffic_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 16bfe034683e4c9525e7bb2410bf04751bab011d912e7f865f3cbd3ed47c0b30
MD5 035032e4e4cd9829d812e4bbaf75ea50
BLAKE2b-256 18651ecb4d6904f8d8de6e08d08a49ca4b4f67a1138d14f5c092470077aee2da

See more details on using hashes here.

File details

Details for the file web_traffic_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for web_traffic_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6c7622233881d2c15d3b4f6a4efab7efe3212ae9fe99b4e7fcdeb0c0ebe35b
MD5 bb23847deb85f7677ae4a21d1f560209
BLAKE2b-256 fac529145ea5d9502fe2a2eb47debeeca704e25d5cff726dd02dd45b812f6e1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page