@reloadapp/deepsearch-client
v0.1.0
Published
Dependency-free TypeScript client for the DeepSearch Developer API.
Maintainers
Readme
DeepSearch TypeScript SDK
Dependency-free client for the DeepSearch Developer API.
import { DeepSearchClient } from "@reloadapp/deepsearch-client";
const deepsearch = new DeepSearchClient({
apiKey: process.env.DEEPSEARCH_API_KEY!,
});
const result = await deepsearch.search({
query: "Ada Lovelace",
type: "name",
sandbox: true,
});
console.log(result.hits);Async jobs
const { job } = await deepsearch.createJob(
{
operation: "dossier",
input: { person: { name: "Ada Lovelace" }, format: "json" },
sandbox: true,
},
{ idempotencyKey: "demo-job-1" },
);
for await (const event of deepsearch.jobEvents(job.id)) {
console.log(event);
}Use sandbox: true for deterministic unmetered fixtures in tests.
