Meresalg API
Read access to Meresalg's link portfolio with your own prices. Version 1.
The API gives you the same data as your price list from us: every domain you can order through us, with your prices in your currency. Use it to keep your own system up to date, or to look up a single domain.
Ordering is not part of the API. Order as you do today.
Getting started
Base URL: https://api.meresalg.dk/v1
Authentication: send your API token in the Authorization header on every request. You get the token from your contact at Meresalg. Keep it secret and only call the API from a server, not from a browser.
curl https://api.meresalg.dk/v1/domains?per_page=100 \
-H "Authorization: Bearer YOUR_TOKEN"
Endpoints
GET/domains
Lists the domains in your portfolio, sorted by domain name (A–Z). Without filters you get all of them, page by page.
| Parameter | Description |
|---|---|
per_page | Results per page, 1–500. Default 100. |
cursor | Get the next page: use next_cursor from the previous response. |
search | Part of the domain name. |
country | Two-letter country codes, comma-separated. Example: country=DK,SE |
language | Language of the site (ISO 639-1), comma-separated. Example: language=da,sv |
category | Category names, comma-separated. A domain matches if it has at least one of them. |
niche | casino, finance, cbd or crypto. Only domains that accept the niche. Price filters then apply to the niche price. |
min_dr, max_dr | Ahrefs Domain Rating, 0–100. |
min_traffic, max_traffic | Monthly organic traffic. |
min_price, max_price | Price in your currency. |
hide_sponsor_tag | true hides domains known to add a visible sponsor label. |
{
"currency": "EUR",
"total": 11873,
"next_cursor": "djF8ZTNiMmM0YjAtNWQ…",
"data": [
{
"domain": "example.dk",
"country": "DK",
"language": "da",
"dr": 34,
"traffic": 12500,
"prices": { "general": 180, "finance": 240 },
"categories": ["News", "Business"],
"sponsor_tag": false,
"sample_url": "https://example.dk/article"
}
]
}
total is only included on the first page. next_cursor is missing on the last page.
GET/domains/{domain}
Looks up one domain. example.com, www.example.com and https://www.example.com/page all work (URL-encode the last one).
curl https://api.meresalg.dk/v1/domains/example.dk \
-H "Authorization: Bearer YOUR_TOKEN"
{
"currency": "EUR",
"data": { "domain": "example.dk", "country": "DK", … }
}
If the domain is not in your portfolio, you get 404.
The domain object
| Field | Description |
|---|---|
domain | The domain. |
country | Two-letter country code. |
language | Language of the site (ISO 639-1). |
dr | Ahrefs Domain Rating. |
traffic | Monthly organic traffic (Ahrefs). |
prices | Your prices in currency: general (always present) and casino, finance, cbd, crypto when the domain accepts the niche. |
categories | Categories of the site. |
sponsor_tag | true if the site is known to add a visible sponsor label. false means none is known. |
sample_url | An example of a published article. |
Fields without a value are left out. A niche price that is missing means the niche is not offered on that domain.
Keeping your system in sync
- Call
/domains?per_page=500without filters. - Keep calling with
cursorset tonext_cursoruntil there is nonext_cursor. - Domains you did not receive are no longer available. Remove them on your side.
The full portfolio takes a few minutes within the rate limit. Prices are updated every night and after supplier updates; syncing once a day is usually enough. The price that applies is the price on the day you order.
Rate limits
Default: 30 requests per minute and 5,000 per day. Every response includes X-RateLimit-Limit and X-RateLimit-Remaining. If you go over the limit you get 429 with a Retry-After header (seconds).
Errors
Errors have this shape: { "error": { "code": "not_found", "message": "…" } }
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_parameter | A parameter is missing or invalid. |
| 401 | invalid_token | The token is missing, wrong or deactivated. |
| 403 | api_disabled | API access is not enabled for your account. |
| 404 | not_found | The domain is not in your portfolio, or the endpoint does not exist. |
| 429 | rate_limited | Too many requests. Wait Retry-After seconds. |
| 500 / 503 | server_error / unavailable | A problem on our side. Try again a little later. |
OpenAPI
A machine-readable description is at https://api.meresalg.dk/v1/openapi.json.
Questions? Contact your contact person at Meresalg.