domainstringआवश्यक
domain
https://api.sandbase.ai/v1/api/similarweb/demographicsGet the age and gender breakdown of a website's visitors for the selected period.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | domain |
end_date | string | Yes | end_date |
granularity | string | Yes | granularity |
start_date | string | Yes | start_date |
country | string | No | Worldwide data only; values are case-insensitive. |
format | string | No | format |
main_domain_only | boolean | No | main_domain_only |
web_source | string | No | web_source |
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"
}
}
| Field | Meaning |
|---|---|
data[].age_18_to_24_share | Share 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_share | Share of visitors in each of these age brackets, as a fraction of 1. |
data[].age_65_plus_share | Share of visitors aged 65 and older. |
data[].female_share / male_share | Share of visitors who are female and male. The two values add up to 1. |
meta.last_updated | Date the data was last updated, in YYYY-MM-DD format. |
meta.request.start_date / meta.request.end_date | Period the data covers. A monthly request is expanded to the first and last day of the month. |
meta.request.metrics | Metric names tied to the request. |
meta.status | Shows success when the call worked. |
YYYY-MM format, for example 2026-09.country accepts only ww, which means worldwide data. granularity accepts only monthly.$0.6 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/demographics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"end_date": "2026-09",
"start_date": "2026-09",
"granularity": "monthly"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
domainstringआवश्यकdomain
end_datestringआवश्यकend_date
granularitystringआवश्यकgranularity
संभावित मान: monthly
start_datestringआवश्यकstart_date
countrystringWorldwide data only; values are case-insensitive.
डिफ़ॉल्ट: "ww"
संभावित मान: ww
formatstringformat
संभावित मान: json
main_domain_onlybooleanmain_domain_only
web_sourcestringweb_source
संभावित मान: total
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Similarweb Demographicsयह 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
प्रश्न
https://api.sandbase.ai/v1/api/similarweb/demographics पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.60 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: domain (string), end_date (string), granularity (monthly में से एक) और start_date (string)। वैकल्पिक: country (ww में से एक), format (json में से एक), main_domain_only (boolean) और web_source (total में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Similarweb Demographics SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Similarweb API access के लिए आवेदन करने की आवश्यकता नहीं है।