Website traffic-rank API
Top website / web traffic leaderboard via the Trends API live feeds. Competitive intel as JSON.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bfe034683e4c9525e7bb2410bf04751bab011d912e7f865f3cbd3ed47c0b30
|
|
| MD5 |
035032e4e4cd9829d812e4bbaf75ea50
|
|
| BLAKE2b-256 |
18651ecb4d6904f8d8de6e08d08a49ca4b4f67a1138d14f5c092470077aee2da
|
File details
Details for the file web_traffic_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: web_traffic_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea6c7622233881d2c15d3b4f6a4efab7efe3212ae9fe99b4e7fcdeb0c0ebe35b
|
|
| MD5 |
bb23847deb85f7677ae4a21d1f560209
|
|
| BLAKE2b-256 |
fac529145ea5d9502fe2a2eb47debeeca704e25d5cff726dd02dd45b812f6e1b
|