Website Traffic API for Python
A website traffic API for Python pulls visits, rank and sources for any domain list into your scripts and notebooks. SameAPI works with the standard requests library.
API access starts at $20 a month with no contract. Test the data in the dashboard for free first.
Free account. API access from $20 a month.

Get Traffic Data Into Python in Three Calls
The API works in three steps. Start a job with your domains, wait for it to complete, then read the results.
import time
import requests
API = "https://sameapi.io/api/v1"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}
job = requests.post(f"{API}/lookup/batch", headers=HEADERS,
json={"domains": ["example.com", "example.org"], "name": "First job"}).json()
while requests.get(f"{API}/jobs/{job['id']}", headers=HEADERS).json()["status"] != "completed":
time.sleep(10)
results = requests.get(f"{API}/jobs/{job['id']}/results", headers=HEADERS).json()Each result carries estimated monthly visits for three months, rank, traffic sources, top countries and AI traffic. Check the docs for every field name.
For long lists, pass a webhook URL when you start the job. SameAPI calls it when the results are ready, so your script does not need to poll.

Skip the Scrapers You Would Otherwise Maintain
Python makes scraping traffic sites look easy. Keeping those scrapers alive is not.
Page layouts change, requests get blocked and fields move. A documented API keeps the same fields from one month to the next.
Your time goes into the analysis, not into fixing a parser every few weeks.
Failed lookups and retries are handled on our side. Your script stays short and readable, even for large lists.

Load the Results Straight Into pandas
The results come back as JSON. One call to pandas turns them into a DataFrame you can sort, join and chart.
Join on the domain column to add traffic to any table you already have: leads, partners, portfolio companies or competitors.
Run the script each month and append the results. Each run returns the last three months, so your history gains one new month every run.
Store the raw JSON as well. If you need a new field later, you can rebuild the table without calling the API again.
Know the Limits Before You Scale
The limits are published, so you can plan a pipeline without surprises.
- Up to 10,000 domains per batch request
- 10, 30 or 75 requests per second, by plan
- Repeat checks within 5 minutes come from cache and use no quota
- Optional webhook when a job completes, instead of polling
Pro covers 10,000 domains a month for $20. Ultra covers 50,000 for $100 and Mega 1,000,000 for $500.
Paid plans continue past the monthly limit at a small per-domain rate. A large job never stops halfway.

Built for Python Developers and Data Scientists
- Data scientists adding traffic features to models
- Analysts building notebooks on market data
- Growth engineers scoring leads in a pipeline
- Researchers studying traffic across many domains
- Backend developers adding traffic data to a product
Non-technical teammates can open the same results in the dashboard. Everyone works from one source.
You can test any domain in the dashboard first. It shows exactly what your script will receive.
Make Your First Call From Python Today
Create a free account, check the data in the dashboard, then add your API key to the script. Your first results arrive in minutes.
Free account. API access from $20 a month.
Last updated: