Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Similarweb Website Traffic Trend

API दस्तावेज़
https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend

Get a website's monthly traffic trend for chosen metrics over a date range.

मूल्य
$0.45USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 4 वैकल्पिक

प्लेग्राउंड

इनपुट
Bare website hostname without scheme, path, port, or credentials.
Worldwide data only; values are case-insensitive.
Inclusive last complete UTC month in YYYY-MM.
One to four supported Traffic & Engagement metrics.
Inclusive first month in YYYY-MM; provide together with end_date.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Similarweb Website Traffic Trend API

Returns a month-by-month series of traffic metrics for one website, such as visits. It needs a bare domain and can take a month range and up to four metrics.

Use cases

  • Chart monthly visits for a news site over the past year to spot seasonal peaks.
  • Compare the monthly traffic of a competitor domain against your own by calling the API once per domain.
  • Track how a site's traffic changes after a redesign or a big news event.
  • Pull several metrics for the same months to build a traffic report for a client.

Request

curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "cnn.com", "metrics": "visits", "start_date": "2026-09", "end_date": "2026-09"}'

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

Parameters

NameTypeRequiredDescription
domainstringYesBare website hostname without scheme, path, port, or credentials.
countrystringNoWorldwide data only; values are case-insensitive.
end_datestringNoInclusive last complete UTC month in YYYY-MM.
metricsstringNoOne to four supported Traffic & Engagement metrics.
start_datestringNoInclusive first month in YYYY-MM; provide together with end_date.

Example response

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

{
  "data": {
    "domain": "cnn.com",
    "metrics": [
      "visits"
    ],
    "points": [
      {
        "month": "2026-09",
        "values": {
          "visits": 188658557.46746868
        }
      }
    ]
  },
  "meta": {
    "country": "ww",
    "end_date": "2026-09",
    "granularity": "monthly",
    "request_id": "imc_91aa25a81e679d4b7772b913a288205efd08f83d9fb1f33e22cd849fd23f7b4e",
    "retrieved_at": "2026-11-03T07:43:23.747988977Z",
    "source": "similarweb",
    "start_date": "2026-09"
  }
}

Response fields

FieldMeaning
data.domainThe website the series describes, echoed from the request.
data.metricsList of the metrics included in the response, for example visits.
data.points[].monthThe month for this data point, in YYYY-MM format.
data.points[].values.visitsThe value of the visits metric for that month. The response shows it as a decimal number, so round it before display. Other requested metrics appear as sibling keys under values.
meta.countryThe region the data covers. The response shows ww.
meta.start_date / meta.end_dateThe first and last month of the range the response covers.
meta.granularityTime step between points. The response shows monthly.
meta.retrieved_atUTC timestamp of when the data was fetched.

Notes

  • Send start_date and end_date together, both in YYYY-MM format. end_date must be a complete UTC month.
  • Pass domain as a bare hostname such as cnn.com, with no scheme, path or port.
  • metrics takes one to four values in a single string. It defaults to visits.
  • For a single-period view, see Similarweb Website Traffic Snapshot. For more engagement metrics, see Similarweb Traffic & Engagement.

Pricing

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

और जानें

संबंधित APIs

सभी APIs
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

प्रश्न

FAQ

Similarweb Website Traffic Trend API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Similarweb Website Traffic Trend API की लागत कितनी है?

$0.45 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Similarweb Website Traffic Trend API कौन-से parameters स्वीकार करती है?

आवश्यक: domain (string)। वैकल्पिक: country (ww में से एक), end_date (string), metrics (string) और start_date (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Similarweb Website Traffic Trend API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Similarweb developer account या API key चाहिए?

नहीं। Similarweb Website Traffic Trend SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Similarweb API access के लिए आवेदन करने की आवश्यकता नहीं है।