APIMaster.ai
API dữ liệu/Similarweb/Website traffic
Khả dụng

Get website visits and engagement metrics

Select visits, bounce rate, visit duration or other supported metrics to compare monthly performance.

GET/v1/similarweb/website/traffic-engagement

Tham số yêu cầu

Tham sốLoạiÝ nghĩa
countryTùy chọn hoặc có điều kiệnstringGeographic scope. Only ww (worldwide) is supported.

ww

domainBắt buộcstringWebsite domain without protocol, for example cnn.com.
end_dateBắt buộcstringLast month, YYYY-MM, inclusive.
granularityTùy chọn hoặc có điều kiệnstringTime interval. Only monthly is supported.

monthly

main_domain_onlyTùy chọn hoặc có điều kiệnbooleanWhether to limit analysis to the main domain.
metricsBắt buộcstringComma-separated metric names. Supported names depend on this API.
mtdTùy chọn hoặc có điều kiệnbooleanWhether to include month-to-date data, when available.
start_dateBắt buộcstringFirst month, YYYY-MM. Availability depends on the dataset.
web_sourceTùy chọn hoặc có điều kiệnstringDevice coverage: desktop, mobile_web or total, as allowed below.

desktop, mobile_web, total

Phản hồi

Returns JSON with the requested traffic or market data. Field names and available metrics vary by API; consult the downloadable OpenAPI schema. Empty or missing data does not mean zero traffic.

Worldwide (ww) and monthly data only. These are third-party estimates, not verified users or sales. Data may be unavailable for small websites or recent months.

Use your APIMaster Bearer key. Model-restricted keys must allow similarweb. Only wallet funds cover these requests.

Định giá và thanh toán

$0.07875Giá tham khảo

Reference estimates checked on 2026-12-02, using the displayed query parameters and default account pricing. More months, metrics or result rows can increase the cost; get a free estimate before executing.

Yêu cầu ước tính miễn phí trước khi chạy lệnh gọi. Ước tính không phải giá cố định hay giới hạn chi tiêu cứng. Phí của bạn dùng mức sử dụng thực tế đã thanh toán và hệ số nhóm hiện tại của tài khoản một lần. Số tiền ước tính được giữ từ ví; tiền chưa dùng được trả lại sau thanh toán. Đăng ký mô hình và tín dụng dùng thử không chi trả cho các lệnh gọi này.

Dùng Idempotency-Key duy nhất cho mỗi lệnh gọi dự kiến. Giữ nguyên khóa và tham số khi khôi phục lệnh gọi. Nếu kết quả hoặc phí đang chờ, truy vấn /v1/data-requests/{request_id}; không bắt đầu lệnh gọi trả phí khác với khóa mới.

400: tham số không hợp lệ; 401: khóa không hợp lệ hoặc đã hết hạn; 403: quyền của khóa; 402: ví hoặc hạn mức khóa không đủ; 409: xung đột idempotency hoặc yêu cầu đang chờ; 429: giới hạn tốc độ; 502/503: yêu cầu hoặc thanh toán không khả dụng. Với mọi lỗi, giữ ID yêu cầu và kiểm tra thanh toán trước khi lặp lại thao tác trả phí.

Ví dụ mã

curl --request GET 'https://apimaster.ai/v1/similarweb/website/traffic-engagement?country=ww&domain=cnn.com&end_date=2026-09&metrics=visits&start_date=2026-09' \
  --header 'Authorization: Bearer YOUR_APIMASTER_KEY' \
  --header 'Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY'
Tải schema OpenAPI

API liên quan