Data export
Download your data as CSV files. Both endpoints return raw CSV with appropriate headers for browser download.
GET /workspaces/:wsId/export/links
Export all links as CSV.
Role: admin+
curl https://nobsredir.com/api/workspaces/ws_abc123/export/links \ -H "X-API-Key: nobs_your_key" \ -o links.csvResponse headers:
Content-Type: text/csvContent-Disposition: attachment; filename="links-your-slug.csv"CSV columns:
| Column | Description |
|---|---|
id | Link ID |
domain | Domain (e.g. fnl.sh) |
slug | Short path |
target | Destination URL |
title | Display name |
click_count | Total clicks |
created_at | Creation timestamp |
updated_at | Last update timestamp |
Example output:
id,domain,slug,target,title,click_count,created_at,updated_atlnk_abc,fnl.sh,demo,https://example.com/page,Demo Link,142,2025-01-15T10:00:00.000Z,2025-01-18T09:00:00.000Zlnk_def,go.yourco.com,blog,https://yourco.com/blog,,38,2025-01-16T12:00:00.000Z,2025-01-16T12:00:00.000ZGET /workspaces/:wsId/export/clicks
Export click data as CSV. Limited to the most recent 10,000 rows.
Role: admin+
curl https://nobsredir.com/api/workspaces/ws_abc123/export/clicks \ -H "X-API-Key: nobs_your_key" \ -o clicks.csvResponse headers:
Content-Type: text/csvContent-Disposition: attachment; filename="clicks-your-slug.csv"CSV columns:
| Column | Description |
|---|---|
id | Click ID |
link_id | Associated link ID |
domain | Domain clicked |
slug | Slug clicked |
clicked_at | Timestamp |
country | ISO country code |
referer | Referrer URL |
browser | Browser name |
os | Operating system |
device | Device type: desktop, mobile, or tablet |
Example output:
id,link_id,domain,slug,clicked_at,country,referer,browser,os,device1,lnk_abc,fnl.sh,demo,2025-01-20T14:30:00.000Z,US,https://twitter.com,Chrome,Windows,desktop2,lnk_abc,fnl.sh,demo,2025-01-20T14:31:00.000Z,DE,,Firefox,macOS,desktopThe 10K row limit is ordered by clicked_at DESC (most recent first). For larger exports, use the Stats endpoints to query aggregated data.