Documentazione API

Questa è la documentazione per gli endpoint API disponibili, che sono costruiti attorno all'architettura REST. Tutti gli endpoint API restituiranno una risposta JSON con i codici di risposta HTTP standard e necessitano di un'Autenticazione Bearer tramite una Chiave API.

 

Autenticazione

Tutti gli endpoint API richiedono una chiave API inviata tramite il metodo Bearer Authentication.

Authorization: Bearer {api_key}
curl --request GET \
--url 'https://heymetrica.com/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \

Errors

Our API uses conventional HTTP status codes to indicate the success or failure of a request.

{
    "errors": [
        {
            "title": "Non hai accesso all'API.",
            "status": 401
        }
    ]
}
200 Request completed successfully
400 Bad request - Required parameters are missing or invalid
401 Unauthorized - API key is missing or invalid
404 The requested resource was not found
429 Too many requests - Rate limit exceeded
500 Internal server error - this means there is a problem on our end
Tutti i risultati degli endpoint API funzionano con il fuso orario UTC salvo diversa indicazione.
Utente
Siti Web
Pageviews
Lightweight tracking
Pageviews
Advanced tracking
Sessions
Advanced tracking
Events children
Advanced tracking
Outbound clicks
Advanced tracking / Lightweight tracking
Replays
Advanced tracking
Visitors
Advanced tracking
Obiettivi
Advanced tracking / Lightweight tracking
Goal conversions
Advanced tracking / Lightweight tracking
Heatmaps
Advanced tracking
Statistiche sito web
Advanced tracking / Lightweight tracking
Custom domains
Account logs