Get Metrics for a Bitlink by City

GET {{baseUrl}}/bitlinks/:bitlink/cities?unit=day&units=5&size=10&unit_reference=2006-01-02T15:04:05-0700

Returns the city origins of click traffic for the specified link.

Request Params

KeyDatatypeRequiredDescription
unitstring(Required) A unit of time
unitsnumber(Required) An integer representing the time units to query data for. pass -1 to return all units of time.
sizenumberThe quantity of items to be be returned
unit_referencestringAn ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000)

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"units":15458905,"facet":"referrers_by_domain","unit_reference":"esse","unit":"mini","metrics":[{"city":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"region":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"subregion":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"clicks":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"country":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"city":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"region":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"subregion":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"clicks":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"country":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"other_metrics":{"other_city_clicks":76143487,"no_city_clicks":17045656}}