Retrieving analytics data via API allows you to monitor and analyze the performance of your short links programmatically. With the T2M API, you can access detailed statistics such as daily, monthly, yearly, all-time, and geo-specific stats.
- Ensure your plan includes API access by checking the pricing plans or contact support to add API access to your current plan.
- Review your plan's API rate limit, and contact support if you need a customized limit.
Steps to retrieve analytics data using API:
- Login to your T2M dashboard.
- Navigate to
API Keys
page. - Click on the "+ Generate New API Key" button to generate set of API Key and API Secret.
- Copy and securely store your API Key and API Secret. You'll need it to authenticate API requests.
- Use tools like Postman or cURL to test the API endpoints.
- The following API endpoints are available for retrieving analytics data:
- Daily Stats: Retrieve stats grouped by day [daily stats endpoints].
- Monthly Stats: Retrieve stats grouped by month [monthly stats endpoints].
- Yearly Stats: Retrieve stats grouped by year [yearly stats endpoints].
- Alltime Stats: Retrieve cumulative stats since link creation [alltime stats endpoints].
- Geo/Country Stats: Retrieve stats based on visitor geography [geo/country stats endpoints].
This article is about:
- API Automation
- Retrieve Stats via API
- Geo Analytics API