Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Similarweb Website Traffic Snapshot

เอกสาร API
https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot

Get a one-month snapshot of a website's traffic: visits, visit duration, pages per visit and bounce rate.

ราคา
$0.30USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
Bare website hostname without scheme, path, port, or credentials.
Worldwide data only; values are case-insensitive.
Complete month in YYYY-MM.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Similarweb Website Traffic Snapshot API

Returns a one-month traffic snapshot for a website: visits, average visit duration, pages per visit and bounce rate. It needs a bare hostname in domain, such as cnn.com. You can pass a complete month in month.

Use cases

  • Compare the monthly visit count of a competitor's site with your own.
  • Check whether a site's visitors stay and browse by reading its bounce rate and pages per visit.
  • Add a traffic figure to a lead list or an investment screen for each domain.
  • Pull a single month's engagement numbers for a report without fetching a full time series.

Request

curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "cnn.com"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
domainstringYesBare website hostname without scheme, path, port, or credentials.
countrystringNoWorldwide data only; values are case-insensitive.
monthstringNoComplete month in YYYY-MM.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "domain": "cnn.com",
    "metrics": {
      "average_visit_duration": 197.57361621705832,
      "bounce_rate": 0.6352565984600038,
      "pages_per_visit": 1.9900475193331115,
      "visits": 188658557.46746868
    },
    "month": "2026-09"
  },
  "meta": {
    "country": "ww",
    "end_date": "2026-09",
    "granularity": "monthly",
    "request_id": "imc_fefb0e65533d7032dd730ff1f2aa41eb6bb6f3bef45533349755e5e34fd75281",
    "retrieved_at": "2026-11-03T07:43:23.674777096Z",
    "source": "similarweb",
    "start_date": "2026-09"
  }
}

Response fields

FieldMeaning
data.domainThe hostname the metrics describe.
data.monthThe month the snapshot covers, in YYYY-MM format.
data.metrics.visitsEstimated number of visits to the site in that month. The value is a decimal, so round it for display.
data.metrics.average_visit_durationAverage length of a visit. The value is not labeled with a unit, so check it against a known site before you display it.
data.metrics.pages_per_visitAverage number of pages viewed in one visit.
data.metrics.bounce_rateShare of visits that left after one page, as a fraction between 0 and 1. A value of 0.635 means about 63.5%.
meta.countryThe country scope of the data. Only ww (worldwide) is supported.
meta.start_date / meta.end_dateThe first and last month covered. They match data.month for a snapshot.
meta.granularityHow the data is bucketed. This API returns monthly.

Notes

  • Pass the hostname only. Leave out the scheme, path, port and credentials.
  • If you omit month, the response still returns a month in data.month. Set month to a complete month in YYYY-MM format to choose one yourself.
  • country accepts only ww, and the value is case-insensitive.
  • To see how visits change over several months, call Similarweb Website Traffic Trend. For more engagement detail, try Similarweb Traffic & Engagement.

Pricing

$0.3 per successful call. Failed calls are not charged.

Plan a single-month snapshot

Use Website Traffic Snapshot for one domain's monthly overview. domain is required: send a hostname such as cnn.com without a scheme, path, port or credentials. country accepts ww only. Set the optional month to a complete YYYY-MM when you need a reproducible comparison; check the returned month instead of assuming it is the current month. Availability for a particular domain or month is not guaranteed.

Pricing checked on 2026-11-08: the listed base price is $0.30 per call before any applicable discount. Recheck current pricing before execution. This price check was not a paid business query. For a month-by-month series with selected metrics, inspect Traffic & Engagement and its date-range pricing.

Connect your first request

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Similarweb$0.30 ต่อการเรียก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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Similarweb Website Traffic Snapshot API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Similarweb Website Traffic Snapshot API ราคาเท่าไร?

$0.30 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Similarweb Website Traffic Snapshot API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: domain (string). ตัวเลือก: country (หนึ่งใน ww) และ month (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Similarweb Website Traffic Snapshot API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Similarweb ไหม?

ไม่จำเป็น Similarweb Website Traffic Snapshot ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Similarweb API แยกต่างหาก

ควรใช้ snapshot หรือ series traffic รายเดือน?

ใช้ Website Traffic Snapshot สำหรับหนึ่งโดเมนและหนึ่งเดือน ใช้ Traffic & Engagement สำหรับช่วงวันที่และ metrics ที่เลือก; ราคาจะขึ้นอยู่กับจำนวน metrics และจำนวนเดือน ค่าของ Similarweb เป็นค่าประมาณ ไม่ใช่ข้อมูล first-party analytics ของเว็บไซต์อื่น

ฉันควรส่งอะไรสำหรับโดเมนและเดือน?

ต้องระบุ domain และต้องเป็น hostname ที่ไม่มี scheme, path, port หรือ credentials month เป็นตัวเลือก; ระบุ YYYY-MM แบบครบถ้วนเมื่อคุณต้องการเดือนที่เจาะจง และตรวจสอบเดือนในผลลัพธ์ country รับได้เฉพาะ ww ข้อมูลที่หายไปไม่ใช่ traffic เป็นศูนย์

ควรตรวจสอบอะไรบ้างก่อนที่เอเจนต์ของฉันจะรัน snapshot?

ตรวจสอบเอ็นด์พอยต์นี้แบบตรงตัว เลือกหนึ่งโดเมนและหนึ่งเดือน และดูราคาปัจจุบัน เมื่อ 2026-11-08 ราคาพื้นฐานที่แสดงคือ $0.30 ต่อครั้งก่อนส่วนลดที่อาจใช้ได้ นี่เป็นการตรวจสอบราคา ไม่ใช่การทดสอบแบบจ่ายเงิน ใช้ setup Skill สำหรับอินทิเกรชันใหม่และอย่าใส่ API keys ไว้ในพรอมป์ต์ที่แชร์