domainstring필수
domain
https://api.sandbase.ai/v1/api/similarweb/traffic-engagementGet a website's traffic and engagement metrics month by month: visits, page views, visit duration, bounce rate and more.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns monthly traffic and engagement metrics for a website, such as visits, page views, visit duration and bounce rate. You send a domain, a start_date and end_date in YYYY-MM format, and the metrics you want.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/traffic-engagement" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"start_date": "2026-09", "end_date": "2026-09", "country": "ww", "domain": "cnn.com", "metrics": "visits", "granularity": "monthly"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | domain |
end_date | string | Yes | end_date |
metrics | string | Yes | metrics |
start_date | string | Yes | start_date |
country | string | No | Worldwide data only; values are case-insensitive. |
granularity | string | No | granularity |
main_domain_only | boolean | No | main_domain_only |
mtd | boolean | No | mtd |
web_source | string | No | web_source |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"average_visit_duration": null,
"bounce_rate": null,
"date": "2026-09-01",
"new_users": null,
"page_views": null,
"pages_per_visit": null,
"returning_users": null,
"unique_visitors": null,
"visits": 188658557.46746868
}
],
"meta": {
"last_updated": "2026-09-30",
"request": {
"country": "ww",
"domain": "cnn.com",
"end_date": "2026-09-30",
"format": "json",
"granularity": "monthly",
"main_domain_only": true,
"metrics": [
"visits"
],
"mtd": false,
"start_date": "2026-09-01",
"state": null,
"web_source": "total",
"week_start_day": "default"
},
"status": "success"
}
}
| Field | Meaning |
|---|---|
data[].date | First day of the month the row covers, for example 2026-09-01. |
data[].visits | Estimated number of visits to the domain in that month. This is a decimal number, not a rounded count. |
data[].page_views / data[].unique_visitors | Page view and unique visitor counts for the month. They are null unless you request those metrics. |
data[].average_visit_duration / data[].bounce_rate / data[].pages_per_visit | Engagement metrics for the month. They are null unless you request them in metrics. |
data[].new_users / data[].returning_users | Split of new and returning users for the month. They are null when not requested. |
meta.last_updated | Date of the most recent data update, shown as YYYY-MM-DD. |
meta.request.web_source | Traffic source the data covers. The response shows total when you do not set web_source. |
meta.request.metrics | List of the metrics the call applied. |
meta.status | Shows success when the call worked. |
null in each data[] row, so set metrics to the ones you need.start_date and end_date as YYYY-MM. The response echoes them as full dates, such as 2026-09-01 and 2026-09-30.web_source to desktop, mobile_web or total to pick the traffic source. country accepts only ww (worldwide) and granularity accepts only monthly.Billed at the actual cost of each call, about $0.075 for the request above. Failed calls are not charged.
Use Traffic & Engagement for a domain's month-by-month estimates. Start with a bare domain such as cnn.com, metrics set to visits, and explicit start_date and end_date in YYYY-MM format. Both dates and metrics are required. country accepts ww only and granularity accepts monthly only. main_domain_only defaults to true; choose its value explicitly when comparing domains. Check the current schema before adding other metrics or options. A past month is not a guarantee of available data.
Pricing checked on 2026-11-08: the list-price formula is $0.075 × metric count × month count, including both the start and end month. One visits metric for 2026-09 through 2026-09 estimates $0.075; 2026-04 through 2026-09 estimates $0.45. Two supported metrics over those six months estimate $0.90. These are formula estimates before any applicable discount, not billed test results. Inspect current pricing before execution; the base price alone is not the cost of every date range.
For a single-month overview instead, inspect Website Traffic Snapshot.
Already have a SandBase API key? Keep it in your local SANDBASE_API_KEY environment variable, then open this page's API tab for the POST route and request body. Send the key as a Bearer token; never put it in a shared prompt or committed file. The Quickstart explains setup.
Already connected your agent to SandBase? Ask it to inspect this exact endpoint and show the domain, month range and estimated cost before running one request. Starting a new project? Give your agent the setup Skill, this page URL and your research question. The Markdown quickstart is also ready to hand to an agent.
Read the completed response from outputs[0].data. The reference response illustrates one result; inspect your own returned payload before writing a parser. Missing estimates are unknown, not zero. Follow the Similarweb Python and traffic-comparison guide for a bounded request.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/traffic-engagement" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"metrics": "visits",
"end_date": "2026-09",
"start_date": "2026-09",
"granularity": "monthly",
"main_domain_only": true
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
domainstring필수domain
end_datestring필수end_date
metricsstring필수metrics
start_datestring필수start_date
countrystringWorldwide data only; values are case-insensitive.
기본값: "ww"
가능한 값: ww
granularitystringgranularity
기본값: "monthly"
가능한 값: monthly
main_domain_onlybooleanmain_domain_only
기본값: true
mtdbooleanmtd
web_sourcestringweb_source
가능한 값: desktop, mobile_web, total
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Similarweb | 호출당 $0.075부터 | JSON |
Similarweb | 호출당 $0.225부터 | JSON |
Similarweb | 호출당 $0.375부터 | JSON |
Similarweb | 호출당 $0.15부터 | JSON |
Similarweb | 호출당 $0.525부터 | JSON |
Similarweb | $0.60 / 호출 | JSON |
가이드:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/similarweb/traffic-engagement에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.075부터, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: domain (string), end_date (string), metrics (string) 및 start_date (string). 선택: country(ww 중 하나), granularity(monthly 중 하나), main_domain_only (boolean), mtd (boolean) 및 web_source(desktop, mobile_web, total 중 하나). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Similarweb Traffic & Engagement은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Similarweb API 액세스를 별도로 신청할 필요는 없습니다.
아니요. 2026-11-08 기준으로 확인한 결과, 리스트 가격 공식은 $0.075에 지표 수와 포함된 월 수를 곱합니다. 지표 1개를 6개월 동안 조회하면 적용 가능한 할인 전 추정치는 $0.45입니다. 이는 공식 기반 추정치이며, 청구된 테스트 결과가 아닙니다. 실행 전에 최신 가격을 다시 확인하세요.
domain, start_date, end_date, metrics를 보내세요. cnn.com 같은 도메인만, YYYY-MM 형식 날짜, 그리고 visits 지표를 사용하세요. 이 변형은 country ww와 granularity monthly만 허용합니다. main_domain_only 기본값은 true입니다. 정확한 POST 요청은 API 탭을 사용하세요. 지난달에 추정값이 उपलब्ध하다고 가정하지 마세요.
SandBase 설정 Skill과 이 엔드포인트 URL을 제공한 뒤, 도메인, 월, 지표를 지정하세요. 이미 연결되어 있다면 먼저 엔드포인트를 살펴보라고 요청하세요. 키는 로컬 환경 변수에 보관하고, 실행 전에 전체 요청 비용을 검토하세요. 완료된 응답에서만 outputs[0].data를 읽으세요. data가 없다고 해서 방문 수가 0이라는 뜻은 아닙니다.