Skip to main content
1 credit per call

Method

services.scrape.sitemap(params);

Input

domain
string
required
Domain to search
keywords
string[]
required
Keywords to match against sitemap URLs

Output

Returns an array of matching pages, ranked by keyword relevance:
url
string
Page URL
title
string
Page title
description
string
Page description

Example

const pages = await services.scrape.sitemap({
   domain: "stripe.com",
   keywords: ["pricing", "plans"],
});

return pages[0]?.url;