Data APIs
Documentation for Linkrunner Data APIs
Base URL
Authentication
All API requests require authentication. Include your server key in the request headers.
Error Responses
- 401 Unauthorized
"Server key missing!"
"Server key invalid!"
- 429 Too Many Requests
- Message:
"Rate limit exceeded. Please try again later."
- Cause: You’ve exceeded the rate limit of 10 requests per second.
Rate Limit Details
- Rate: 10 requests per second
- Status code on limit exceeded: 429 (Too Many Requests)
Authentication
All API requests require authentication using an API key. You must include this key in the header of every request.
API Key Header
Include the following header in all API requests:
Replace YOUR_API_KEY
with your actual API key.
Obtaining Your API Key
You can find your API key on the Linkrunner settings page:
- Go to https://www.linkrunner.io/settings?s=data-apis
- Locate your Server key on this page
- Use this key in the
linkrunner-key
header for all API requests
Keep your API key confidential. Do not share it or expose it in client-side code. Always make API requests from a secure server-side environment.
Endpoints
1. List Campaigns
Retrieve a list of campaigns based on their status.
Request
Query Parameters
Parameter | Type | Description |
---|---|---|
filter | string | Filter campaigns by status (ACTIVE/INACTIVE/ALL) |
Example Request
Response
TypeScript Types
2. Get Attributed Users
Retrieve a list of users attributed to a specific campaign.
Request
Query Parameters
Parameter | Type | Description |
---|---|---|
display_id | string | The display ID of the campaign |
Example Request
Response
TypeScript Types
Notes
- All timestamps are in ISO 8601 format.
- The
device_data
object contains detailed information about the user’s device. - The
active
field in the campaign data indicates whether the campaign is currently active. - The
attributed_users
field in the campaign data shows the number of users attributed to that campaign. - User data provided in this documentation is randomized for privacy reasons. Actual API responses will contain real user data.
- The TypeScript types provided are based on the example responses
For any help please reach out to darshil@linkrunner.io
Want to track revenue using Linkrunner APIs? Checkout the documentation here