Skip to the page

Agno

For Agno developers: the Searxng toolkit searches with the Search API once you set its host.

Set it up

Give Searxng this host, with your key in place of YOUR_SPECSTREAM_KEY:

host
https://[email protected]/searxng

The address then holds your key, so keep it in a secret or an environment setting.

Read the key from the environment, here SPECSTREAM_API_KEY, and build the address in code:

Python
import os
from agno.agent import Agent
from agno.tools.searxng import Searxng
searxng = Searxng(host=f"https://{os.environ['SPECSTREAM_API_KEY']}@api.specstream.ai/searxng")
agent = Agent(tools=[searxng])

Check it works

Call the toolkit's web search once. It prints the results as JSON, each with a title, URL, and text:

Python
print(searxng.search_web("latest SEC rule on climate disclosure", max_results=5))

Cost

Each search is one Search API call at $5 per 1,000 searches of up to 10 results. It comes out of your balance, with no quote and no approval. Search API has the details.

Your key

Create the key under Agents & API in your SpecStream workspace. Sign up and get $10 of credit, no card.

The same setting works in other tools too: Search API by one setting.