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.

ParameterDescription
per_pageResults per page, 1–500. Default 100.
cursorGet the next page: use next_cursor from the previous response.
searchPart of the domain name.
countryTwo-letter country codes, comma-separated. Example: country=DK,SE
languageLanguage of the site (ISO 639-1), comma-separated. Example: language=da,sv
categoryCategory names, comma-separated. A domain matches if it has at least one of them.
nichecasino, finance, cbd or crypto. Only domains that accept the niche. Price filters then apply to the niche price.
min_dr, max_drAhrefs Domain Rating, 0–100.
min_traffic, max_trafficMonthly organic traffic.
min_price, max_pricePrice in your currency.
hide_sponsor_tagtrue 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

FieldDescription
domainThe domain.
countryTwo-letter country code.
languageLanguage of the site (ISO 639-1).
drAhrefs Domain Rating.
trafficMonthly organic traffic (Ahrefs).
pricesYour prices in currency: general (always present) and casino, finance, cbd, crypto when the domain accepts the niche.
categoriesCategories of the site.
sponsor_tagtrue if the site is known to add a visible sponsor label. false means none is known.
sample_urlAn 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

  1. Call /domains?per_page=500 without filters.
  2. Keep calling with cursor set to next_cursor until there is no next_cursor.
  3. 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": "…" } }

StatusCodeMeaning
400invalid_parameterA parameter is missing or invalid.
401invalid_tokenThe token is missing, wrong or deactivated.
403api_disabledAPI access is not enabled for your account.
404not_foundThe domain is not in your portfolio, or the endpoint does not exist.
429rate_limitedToo many requests. Wait Retry-After seconds.
500 / 503server_error / unavailableA 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.