Skip to content

Website Library endpoints expose public-safe domain and landing page summaries through the /v1 API. These routes return stable metrics, technology slugs, offer and quality fields, timestamps, favicon URLs, counts, linked page previews, and appUrl links for opening records in the AfterLib web app. Raw analysis payloads, crawl state, and scrape internals are not included.

Website Library routes are no-credit in this phase.

ParameterLocationTypeDefaultAllowed valuesDescription
limitquerynumber501 to 100Maximum domains returned.
offsetquerynumber00 or higherOffset for page-style pagination.
searchquerystringnoneup to 255 charsMatch domain text.
sortByquerystringactiveAds30ddomain, activeAds30d, activeLinks30d, firstSeenAt, swGlobalRank, lastSeenAt, technologySlugsSort field.
sortDirectionquerystringdescasc, descSort direction.
Terminal window
curl "https://api.afterlib.com/v1/websites/domains?limit=25&search=example&sortBy=activeAds30d&sortDirection=desc" \
-H "Authorization: Bearer $AFTERLIB_API_KEY"

Response:

{
"items": [
{
"id": "019e6387-e2e9-7478-9d6d-170158c523b1",
"domain": "seed-store.afterlib.local",
"appUrl": "https://app.afterlib.com/websites/domain/019e6387-e2e9-7478-9d6d-170158c523b1",
"technologySlugs": ["shopify", "klaviyo"],
"categories": ["beauty"],
"swGlobalRank": 12450,
"swGlobalTraffic": 1200000,
"activeAds30d": 42,
"activeLinks30d": 8,
"activePages30d": 3,
"firstSeenAt": "2025-08-26T09:04:49.640Z",
"lastSeenAt": "2025-09-03T09:04:49.640Z",
"linkedPages": [
{
"metaPageExternalId": "9000000000500",
"pageName": "Drift Wellness Company",
"linkedAdsCount": 12
}
]
}
],
"pageInfo": {"limit": 50, "offset": 0, "total": 1, "hasMore": false}
}
ParameterLocationTypeDefaultAllowed valuesDescription
domainIdqueryUUID stringnoneWebsite Library domain IDLimit links to one domain.
limitquerynumber501 to 100Maximum links returned.
offsetquerynumber00 or higherOffset for page-style pagination.
searchquerystringnoneup to 255 charsMatch link or domain text.
sortByquerystringactiveAds30ddomain, linkPath, activeAds30d, activeAdsChangePercent30d, firstSeenAt, percentOfDomainAds30d, lastSeenAt, technologySlugsSort field.
sortDirectionquerystringdescasc, descSort direction.
Terminal window
curl "https://api.afterlib.com/v1/websites/links?limit=25&search=product&sortBy=activeAds30d&sortDirection=desc" \
-H "Authorization: Bearer $AFTERLIB_API_KEY"

Response:

{
"items": [
{
"id": "019e6387-e2e9-7478-9d6d-170158c523b2",
"domainId": "019e6387-e2e9-7478-9d6d-170158c523b1",
"domain": "seed-store.afterlib.local",
"appUrl": "https://app.afterlib.com/websites/019e6387-e2e9-7478-9d6d-170158c523b2",
"linkPath": "/products/routine",
"themeText": "daily routine landing page",
"technologySlugs": ["shopify", "klaviyo"],
"activeAds30d": 18,
"percentOfDomainAds30d": 42.86,
"pageType": "product",
"hasDiscount": true,
"offerType": "percentage",
"offerValue": "20%",
"pageQuality": "high",
"generalSummary": "Public landing page summary for competitive research."
}
],
"pageInfo": {"limit": 50, "offset": 0, "total": 1, "hasMore": false}
}

Use related routes to move from a domain or landing page to the public pages and ads connected to it.

ParameterLocationTypeDefaultAllowed valuesDescription
limitquerynumber501 to 100Maximum related records returned.
offsetquerynumber00 or higherOffset for page-style pagination.
searchquerystringnoneup to 255 charsOptional text filter for related pages or ads.
Terminal window
curl "https://api.afterlib.com/v1/websites/domains/019e6387-e2e9-7478-9d6d-170158c523b1/pages?limit=25&offset=0" \
-H "Authorization: Bearer $AFTERLIB_API_KEY"

Related pages from a landing page:

Terminal window
curl "https://api.afterlib.com/v1/websites/links/019e6387-e2e9-7478-9d6d-170158c523b2/pages?limit=25" \
-H "Authorization: Bearer $AFTERLIB_API_KEY"

Related ads from a landing page:

Terminal window
curl "https://api.afterlib.com/v1/websites/links/019e6387-e2e9-7478-9d6d-170158c523b2/ads?limit=25" \
-H "Authorization: Bearer $AFTERLIB_API_KEY"

These related routes are also no-credit in this phase.