Links statistics
GET https://www.myshorturl.link/api/statistics/{link_id}
Parameters | Details | Description |
---|---|---|
start_date | Vereist | Startdatum in Y-m-d formaat. |
end_date | Vereist | Einddatum in Y-m-d formaat. |
type | Optioneel | Type gegevens dat geretourneerd moet worden. Toegestane waarden zijn: overzicht , referrer_host , referrer_path , landcode , stad_naam , os_naam , browser_naam , apparaat_type , browser_taal , utm_source , utm_medium , utm_campaign . Standaard ingesteld op overzicht . |
country_code | Optioneel | Parameter alleen beschikbaar voor het type city_name . |
utm_source | Optioneel | Parameter alleen beschikbaar voor het type utm_medium en utm_campaign . |
utm_medium | Optioneel | Parameter alleen beschikbaar voor het type utm_campaign . |
curl --request GET \
--url 'https://www.myshorturl.link/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.myshorturl.link/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"pageviews": 20,
"visitors": 5,
"formatted_date": "2021-01"
},
{
"pageviews": 35,
"visitors": 10,
"formatted_date": "2021-02"
},
{
"pageviews": 50,
"visitors": 25,
"formatted_date": "2021-03"
}
]
}