Skip to main content
Version: 202607

Get data analysis UTM

POST 

/openapi/2026-07/data-analysis/utm

Retrieve traffic source analytics grouped by UTM parameters (source, medium, campaign, term, content), with trend data over time.

Request

Bodyrequired

    begin_timestringrequired

    Start time, a Unix timestamp in seconds passed as a string, e.g. "1748736000"

    end_timestringrequired

    End time, a Unix timestamp in seconds passed as a string, e.g. "1781481600". Should be greater than begin_time

    time_zoneint32

    Notice: Values outside the range -12 to 14 might lead to unexpected results in time-based calculations. Time zone offset (in hours) used for analysis. Recommended range: -12 to 14

    cursorstring

    Cursor for pagination

    page_sizeint32

    Page size for pagination

    Default value: 10
    sort_bystring

    Field to sort by. Supported values:

    • view_client_count: Number of unique visitors
    • uv_rate: Unique visitor rate
    • product_views_count: Number of product page views
    • add_to_cart_count: Number of add-to-cart actions
    • begin_checkout_count: Number of checkout initiations
    • orders_count: Number of orders
    • orders_count_rate: Order count rate
    • transform_rate: Overall conversion rate
    • product_sales: Product sales amount
    • product_sales_rate: Product sales rate
    • per_customer_sales: Average sales per customer
    • avg_elapse: Average session duration
    • avg_depth: Average page depth per session
    • place_order_client_count: Number of customers who placed orders
    • first_order_customers: Number of first-time order customers
    • first_order_customers_rate: First-time order customer rate
    • date: Date
    • escape_rate: Bounce rate
    sort_directionstring

    Sorting direction: asc (ascending) or desc (descending)

    date_bystring

    Time granularity: empty string for totals, "day" for daily breakdown

    filters object[]

    Optional list of structured filters to narrow results by UTM dimension values Entries in the list are combined with AND. e.g. [{"title": "utm_medium", "prerequisite": "includes", "values": ["123"]}]

  • Array [
  • titlestringrequired

    Field name to filter on, taken from the metrics field (must match one of the requested metric field names). Supported values:

    • utm_source: UTM campaign source
    • utm_medium: UTM campaign medium
    • utm_campaign: UTM campaign name
    • utm_content: UTM campaign content
    • utm_term: UTM campaign keyword
    • country: Country or region
    • land_url_path: Landing page URL path
    prerequisitestringrequired

    Filter operator. Supported values:

    • includes: contains
    • equal_to: equals
    • not_equal_to: not equals
    valuesstring[]

    Filter values to match against

  • ]
  • filter_crawler_typestring

    Crawler-filtering policy that controls whether bot/crawler traffic is excluded from the statistics. Values:

    • no_filter_crawler: do not filter; count all traffic (default)
    • official_crawler: exclude known crawlers/bots

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    countint32

    Total number of matching records

    cursorstring

    Cursor for pagination

    has_moreboolean

    Whether there are more records

    data object[]

    List of UTM report data items

  • Array [
  • datestring

    Date of the record, e.g. "2026-03-30"

    utm_sourcestring

    UTM campaign source, e.g. "linkedin"

    utm_mediumstring

    UTM campaign medium

    utm_campaignstring

    UTM campaign name

    utm_contentstring

    UTM campaign content

    utm_termstring

    UTM campaign keyword / term

    countrystring

    Country or region display name, e.g. "Mainland China"

    country_abbrstring

    Country or region ISO abbreviation, e.g. "CN"

    land_url_pathstring

    Landing page URL path, e.g. "/"

    page_views_totalint64

    Total page views

    view_client_countint32

    Number of unique visitors

    uv_ratefloat

    Proportion of unique visitors to total, e.g. 50 (represents 50%)

    product_views_countint32

    Number of product detail page views

    add_to_cart_countint32

    Number of users who added items to cart

    begin_checkout_countint32

    Number of users who initiated checkout

    orders_countint32

    Number of orders placed

    orders_count_ratefloat

    Proportion of orders to total orders, e.g. 0 (represents 0%)

    transform_ratefloat

    Conversion rate from visit to order, e.g. 0 (represents 0%)

    product_salesfloat

    Total sales amount

    product_sales_ratefloat

    Proportion of sales to total sales, e.g. 0 (represents 0%)

    per_customer_salesfloat

    Average order value (sales per ordering customer)

    avg_elapsefloat

    Average session duration in microseconds

    avg_depthfloat

    Average number of pages viewed per session

    place_order_client_countint32

    Number of unique users who placed an order

    first_order_customersint32

    Number of new customers (first-time orders in the period)

    first_order_customers_ratefloat

    Proportion of new customers among all ordering customers, e.g. 0 (represents 0%)

    escape_ratefloat

    Bounce rate, e.g. 25 (represents 25%)

  • ]
  • summary object

    Aggregated totals across all data items (summary row)

    page_views_totalint64

    Total page views across all rows

    view_client_countint32

    Total unique visitors

    uv_ratefloat

    Overall visitor proportion (always 100 for summary)

    product_views_countint32

    Total product detail page views

    add_to_cart_countint32

    Total add-to-cart user count

    begin_checkout_countint32

    Total checkout-initiated user count

    orders_countint32

    Total number of orders

    orders_count_ratefloat

    Order proportion (always 100 for summary)

    transform_ratefloat

    Overall conversion rate

    product_salesfloat

    Total sales amount

    product_sales_ratefloat

    Sales proportion (always 100 for summary)

    per_customer_salesfloat

    Average order value across all customers

    avg_elapsefloat

    Average session duration in microseconds

    avg_depthfloat

    Average pages viewed per session

    place_order_client_countint32

    Total unique users who placed an order

    first_order_customersint32

    Total new customers

    first_order_customers_ratefloat

    Proportion of new customers

    escape_ratefloat

    Overall bounce rate