Similarweb Segments Analysis
https://api.sandbase.ai/v1/api/similarweb/segments-traffic-and-engagementUsage-based billing; Default request estimate: $0.075 USD (not a fixed price). Declared unit rate: $0.075 USD per similarweb_credit. Account-specific pricing and final settlement may differ.
- Price
- $0.11USD / call
- Method
- POST
- Response
- JSON
- Parameters
- 5 required · 4 optional
Try the model
Playground
Your output will appear here
Complete the inputs, then click Run.
Model card
Specifications
Pricing
- Base price
- $0.11 / run
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- end_date
- string · required
- granularity
- string (monthly) · required
- metrics
- string · required
- segment
- string · required
- start_date
- string · required
- country
- string (ww) · optional
- format
- string (json) · optional
- main_domain_only
- boolean · optional
- web_source
- string (total) · optional
Access
- Provider
- Similarweb
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/similarweb/segments-traffic-and-engagement
- Authentication
- Bearer API key
API README
Similarweb Segments Analysis API
Usage-based billing; Default request estimate: $0.075 USD (not a fixed price). Declared unit rate: $0.075 USD per similarweb_credit. Account-specific pricing and final settlement may differ.
The response is the official Similarweb API response, unchanged.
Request
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "similarweb/segments-traffic-and-engagement", "end_date": "<end_date>", "granularity": "<granularity>", "metrics": "<metrics>", "segment": "<segment>", "start_date": "<start_date>"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | string | No | Worldwide data only; values are case-insensitive. |
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 | metrics |
segment | string | Yes | Replace YOUR_SEGMENT_ID with a real segment ID available to the configured Similarweb account. Obtain it from that account's Similarweb user/predefined segment |
start_date | string | Yes | start_date |
web_source | string | No | web_source |
Pricing
$0.1125 per metric per month between start_date and end_date. Failed calls are not charged.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/similarweb/segments-traffic-and-engagement" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"country": "ww"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Similarweb Segments AnalysisThis API Similarweb | From $0.11 per call | JSON | Oct 30, 2026 |
Similarweb | From $0.34 per call | JSON | Oct 30, 2026 |
Similarweb | From $0.56 per call | JSON | Oct 30, 2026 |
Similarweb | From $0.23 per call | JSON | Oct 30, 2026 |
Similarweb | From $0.79 per call | JSON | Oct 30, 2026 |
Similarweb | $0.90 per call | JSON | Oct 30, 2026 |
Questions
FAQ
How do I use the Similarweb Segments Analysis API?
Send a POST request to https://api.sandbase.ai/v1/api/similarweb/segments-traffic-and-engagement with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Similarweb Segments Analysis API cost?
From $0.11 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.
What parameters does the Similarweb Segments Analysis API accept?
Required: end_date (string), granularity (one of monthly), metrics (string), segment (string) and start_date (string). Optional: country (one of ww), format (one of json), main_domain_only (boolean) and web_source (one of total). The Parameters table and the Playground on this page list every field.
What does the Similarweb Segments Analysis API return?
A JSON response returned in the same HTTP request (synchronous).
Do I need a Similarweb developer account or API key?
No. Similarweb Segments Analysis runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Similarweb API access separately.
