Power AI agents with real-time web data for autonomous decision-making, tool use, and intelligent workflows.
import { SearchHive } from '@searchhive/sdk'
const client = new SearchHive({ apiKey: process.env.SEARCHHIVE_API_KEY })
// AI agent searches the web in real-time
const results = await client.search({
query: "latest developments in quantum computing 2024",
maxResults: 10,
includeAnswer: true
})
// Extract structured data for agent reasoning
const data = await client.scrape({
url: results.organic[0].link,
extractSchema: {
title: "string",
summary: "string",
keyPoints: "string[]"
}
})