age_bucketstringआवश्यक
Select one age bucket; age_bucket must be provided exactly once.
संभावित मान: 18, 25, 35, 45, 55, 65
https://api.sandbase.ai/v1/api/similarweb/traffic-by-demographics-aggregatedGet the traffic share of one visitor age group on a website for the selected period.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Get the traffic share of one visitor age group on a website for the selected period.
The response is the official Similarweb API response, unchanged.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/traffic-by-demographics-aggregated" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "cnn.com", "start_date": "2026-09", "end_date": "2026-09", "granularity": "monthly", "metrics": "share", "age_bucket": "25"}'
| Name | Type | Required | Description |
|---|---|---|---|
age_bucket | string | Yes | Select one age bucket; age_bucket must be provided exactly once. |
country | string | No | Worldwide data only; values are case-insensitive. |
domain | string | Yes | domain |
end_date | string | Yes | end_date |
format | string | No | format |
granularity | string | Yes | granularity |
main_domain_only | boolean | No | main_domain_only |
metrics | string | Yes | Comma-separated metrics. Supported: share. |
start_date | string | Yes | start_date |
web_source | string | No | web_source |
$0.45 per metric per month between start_date and end_date. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/traffic-by-demographics-aggregated" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"metrics": "share",
"end_date": "2026-09",
"age_bucket": "25",
"start_date": "2026-09",
"granularity": "monthly"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
age_bucketstringआवश्यकSelect one age bucket; age_bucket must be provided exactly once.
संभावित मान: 18, 25, 35, 45, 55, 65
domainstringआवश्यकdomain
end_datestringआवश्यकend_date
granularitystringआवश्यकgranularity
संभावित मान: monthly
metricsstringआवश्यकComma-separated metrics. Supported: share.
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 | $0.45 प्रति कॉल से | 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
प्रश्न
https://api.sandbase.ai/v1/api/similarweb/traffic-by-demographics-aggregated पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.45 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: age_bucket (18, 25, 35, 45, 55, 65 में से एक), domain (string), end_date (string), granularity (monthly में से एक), metrics (string) और start_date (string)। वैकल्पिक: country (ww में से एक), format (json में से एक), main_domain_only (boolean) और web_source (total में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)।
नहीं। Similarweb Demographics - Specific Groups SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Similarweb API access के लिए आवेदन करने की आवश्यकता नहीं है।