scouty
v0.1.2
Published
TypeScript client for the Scouty search API.
Readme
scouty
TypeScript client for the Scouty search API.
Installation
npm install scoutyUsage
import { ScoutyClient } from "scouty";
const client = new ScoutyClient({
apiKey: process.env.SCOUTY_API_KEY,
});
const response = await client.search.text({
query: "weather",
backend: ["brave", "bing"],
maxResults: 10,
});
console.log(response.results);Configuration
ScoutyClient accepts:
apiKeybaseUrlfetchheadersapiKeyHeader
If apiKey is not passed explicitly, the client falls back to SCOUTY_API_KEY environment varibale.
Text Search
client.search.text() accepts:
queryregionsafesearchtimelimitmaxResultspagebackend
backend can be a single engine or an array of engines. Supported engines:
autobingbraveduckduckgo
wikipediayahooyandex
License
MIT
