categorystringจำเป็น
category
https://api.sandbase.ai/v1/api/similarweb/top-sites-rankingGet the top-ranked websites worldwide or in a category, ordered by traffic rank.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a list of the top-ranked websites worldwide, ordered by traffic rank. It needs a category (for example all) and a limit of 1 to 20 rows.
offset.curl -X POST "https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category": "all", "country": "ww", "limit": 3}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category | string | Yes | category |
limit | integer | Yes | limit |
country | string | No | Worldwide data only; values are case-insensitive. |
offset | integer | No | offset |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"domain": "google.com",
"rank": 1
}
],
"meta": {
"last_updated": "2026-09-30",
"query": {
"asc": null,
"limit": 3,
"offset": 0,
"sort": null
},
"request": {
"category": "all",
"channel": "total",
"country": "ww",
"end_date": "2026-09-30",
"format": "json",
"granularity": "monthly",
"start_date": "2026-07-01",
"web_source": "total"
},
"status": "success"
}
}
| Field | Meaning |
|---|---|
data[] | One ranked website. The list is ordered by rank. |
data[].domain | Domain name of the ranked website, such as google.com. |
data[].rank | Traffic rank of the domain. 1 is the top site. |
meta.last_updated | Date of the ranking data, in YYYY-MM-DD format. |
meta.query.limit / meta.query.offset | The page size and starting position applied to this call. |
meta.request.category | Category the ranking was built for. all means no category filter. |
meta.request.country | Country scope of the ranking. ww means worldwide. |
meta.request.start_date / meta.request.end_date | Date range the ranking covers, in YYYY-MM-DD format. |
meta.request.granularity | Time grain of the data. The sample shows monthly. |
meta.status | Result of the call. success means the request worked. |
offset with limit to page through the list. limit accepts 1 to 20 and offset accepts 0 to 100000.country accepts only ww (worldwide), and the value is case-insensitive.Billed at the actual cost of each call, about $0.075 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 3,
"country": "ww",
"category": "all"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
categorystringจำเป็นcategory
limitintegerจำเป็นlimit
countrystringWorldwide data only; values are case-insensitive.
ค่าเริ่มต้น: "ww"
ค่าที่เป็นไปได้: ww
offsetintegeroffset
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Similarweb Top Sites RankingAPI นี้ 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
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/similarweb/top-sites-ranking โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.075 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: category (string) และ limit (integer). ตัวเลือก: country (หนึ่งใน ww) และ offset (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Similarweb Top Sites Ranking ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Similarweb API แยกต่างหาก