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

Similarweb Demographics

เอกสาร API
https://api.sandbase.ai/v1/api/similarweb/demographics

Get the age and gender breakdown of a website's visitors for the selected period.

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

Playground

อินพุต
domain
end_date
granularity
start_date
Worldwide data only; values are case-insensitive.
format
main_domain_only
web_source
เอาต์พุตพร้อมใช้งาน

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

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

API README

Similarweb Demographics API

Returns the age and gender split of a website's visitors for a chosen period. You send a domain, a start_date, an end_date and granularity, and get back shares between 0 and 1.

Use cases

  • Compare the age mix of a news site with a competitor's to see which one reaches older readers.
  • Check the male and female split of a domain before planning an ad buy.
  • Build audience profiles for a list of publishers in a media planning sheet.
  • Track how a site's age mix changes by running the same domain over different months.

Request

curl -X POST "https://api.sandbase.ai/v1/api/similarweb/demographics" \
  -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", "granularity": "monthly"}'

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

Parameters

NameTypeRequiredDescription
domainstringYesdomain
end_datestringYesend_date
granularitystringYesgranularity
start_datestringYesstart_date
countrystringNoWorldwide data only; values are case-insensitive.
formatstringNoformat
main_domain_onlybooleanNomain_domain_only
web_sourcestringNoweb_source

Example response

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

{
  "data": [
    {
      "age_18_to_24_share": 0.08070495283947984,
      "age_25_to_34_share": 0.18467731979384402,
      "age_35_to_44_share": 0.2067059697120009,
      "age_45_to_54_share": 0.20790595096812176,
      "age_55_to_64_share": 0.19314205276691135,
      "age_65_plus_share": 0.12686375391964214,
      "female_share": 0.4365859576418669,
      "male_share": 0.5634140423581331
    }
  ],
  "meta": {
    "last_updated": "2026-09-30",
    "request": {
      "country": "ww",
      "domain": "cnn.com",
      "end_date": "2026-09-30",
      "format": "json",
      "granularity": "monthly",
      "metrics": [
        "age_18_to_24_share"
      ],
      "start_date": "2026-09-01"
    },
    "status": "success"
  }
}

Response fields

FieldMeaning
data[].age_18_to_24_shareShare of the site's visitors aged 18 to 24, as a fraction of 1.
data[].age_25_to_34_share / age_35_to_44_share / age_45_to_54_share / age_55_to_64_shareShare of visitors in each of these age brackets, as a fraction of 1.
data[].age_65_plus_shareShare of visitors aged 65 and older.
data[].female_share / male_shareShare of visitors who are female and male. The two values add up to 1.
meta.last_updatedDate the data was last updated, in YYYY-MM-DD format.
meta.request.start_date / meta.request.end_datePeriod the data covers. A monthly request is expanded to the first and last day of the month.
meta.request.metricsMetric names tied to the request.
meta.statusShows success when the call worked.

Notes

Pricing

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

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

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

APIs ทั้งหมด
APIราคาการตอบกลับ
Similarweb$0.60 ต่อการเรียกJSON
Similarwebเริ่มต้นที่ $0.225 ต่อครั้งJSON
Similarwebเริ่มต้นที่ $0.375 ต่อครั้งJSON
Similarwebเริ่มต้นที่ $0.15 ต่อครั้งJSON
Similarwebเริ่มต้นที่ $0.525 ต่อครั้งJSON
Similarwebเริ่มต้นที่ $1.275 ต่อครั้งJSON

คู่มือ:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices

คำถาม

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

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

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

Similarweb Demographics API ราคาเท่าไร?

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

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

ที่ต้องระบุ: domain (string), end_date (string), granularity (หนึ่งใน monthly) และ start_date (string). ตัวเลือก: country (หนึ่งใน ww), format (หนึ่งใน json), main_domain_only (boolean) และ web_source (หนึ่งใน total). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Similarweb Demographics API ส่งคืนอะไร?

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

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

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