Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Similarweb Demographics

Tài liệu API
https://api.sandbase.ai/v1/api/similarweb/demographics

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

Giá
$0.60USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
4 bắt buộc · 4 tùy chọn

Phòng thử nghiệm

Đầu vào
domain
end_date
granularity
start_date
Worldwide data only; values are case-insensitive.
format
main_domain_only
web_source
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Similarweb$0.60 mỗi lần gọiJSON
SimilarwebTừ $0.225 mỗi lần gọiJSON
SimilarwebTừ $0.375 mỗi lần gọiJSON
SimilarwebTừ $0.15 mỗi lần gọiJSON
SimilarwebTừ $0.525 mỗi lần gọiJSON
SimilarwebTừ $1.275 mỗi lần gọiJSON

Hướng dẫn:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices

Câu hỏi

FAQ

Làm thế nào để dùng API Similarweb Demographics?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/similarweb/demographics với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Similarweb Demographics có giá bao nhiêu?

$0.60 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Similarweb Demographics chấp nhận những tham số nào?

Bắt buộc: domain (string), end_date (string), granularity (một trong số monthly) và start_date (string). Tùy chọn: country (một trong số ww), format (một trong số json), main_domain_only (boolean) và web_source (một trong số total). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Similarweb Demographics trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Similarweb không?

Không. Similarweb Demographics chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Similarweb.