Firecrawl → stratless
Firecrawl turns a URL into clean markdown. Scrape your competitor set, then hand the pages to analyze.
import Firecrawl from '@mendable/firecrawl-js'
const firecrawl = new Firecrawl({ apiKey: process.env.FIRECRAWL_API_KEY })
const KEY = process.env.STRATLESS_API_KEY
const set = [
{ name: 'Pinecone', url: 'https://pinecone.io' },
{ name: 'Qdrant', url: 'https://qdrant.tech' },
{ name: 'Weaviate', url: 'https://weaviate.io' },
]
// 1 — scrape each page to markdown
const pages = await Promise.all(
set.map((s) => firecrawl.scrape(s.url).then((r) => r.markdown)),
)
// 2 — analyze the set → a competitive field map
const res = await fetch('https://api.stratless.com/v1/analyze', {
method: 'POST',
headers: { 'x-api-key': KEY, 'content-type': 'application/json' },
body: JSON.stringify({
texts: set.map((s, i) => ({ name: s.name, text: pages[i] })),
}),
})
const fieldMap = await res.json()
See The analyze API for the full response shape.