API Documentation

Integrate Blogur's powerful analytics and link management into your applications

Getting Started

The Blogur API allows you to programmatically manage your tracking links, access analytics data, and integrate our platform with your applications.

Base URL

https://api.blogur.com/v1/

Response Format

All API responses are returned in JSON format with consistent structure:

{ "success": true, "data": { ... }, "message": "Success", "timestamp": "2024-01-15T10:30:00Z" }

Authentication

All API requests require authentication using your API key. Include your API key in the request headers:

curl -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ https://api.blogur.com/v1/links
You can find your API key in your dashboard under Account Settings > API Access

Analytics API

GET/analytics/summary

Get analytics summary for a date range

Parameters
Parameter Type Required Description
start_date date Yes Start date (YYYY-MM-DD)
end_date date Yes End date (YYYY-MM-DD)
group_by string No Group by: day, advertiser, link

Webhooks

Set up webhooks to receive real-time notifications about clicks, conversions, and payments.

Supported Events

  • link.clicked - When a tracking link is clicked
  • conversion.tracked - When a conversion is recorded
  • payment.processed - When a payment is processed

Webhook Payload Example

{ "event": "link.clicked", "data": { "link_id": "abc123", "short_code": "Kx9mN2", "advertiser": "example.com", "clicked_at": "2024-01-15T10:30:00Z", "user_agent": "Mozilla/5.0...", "ip_address": "192.168.1.1" }, "timestamp": "2024-01-15T10:30:00Z" }

Rate Limits

API requests are limited to ensure platform stability:

  • Standard API: 1000 requests per hour
  • Analytics API: 500 requests per hour
  • Webhooks: Unlimited (receive only)
Rate limit headers are included in all responses to help you track usage.

Error Codes

Code Message Description
400 Bad Request Invalid request parameters
401 Unauthorized Invalid or missing API key
403 Forbidden Insufficient permissions
429 Too Many Requests Rate limit exceeded
500 Internal Server Error Server error occurred