Search

Search, Deepsearch & Extract Quickstart

This quickstart walks you through generating your first search with Infron.

Tavily

from tavily import TavilyClient

tavily_client = TavilyClient(
    api_key="<API_KEY>",
    api_base_url="https://search.onerouter.pro/v1/tavily"
)
response = tavily_client.search("Who is Leo Messi?")

print(response)
Tavilychevron-right

Jina

import json
import requests

response = requests.post(
    "https://search.onerouter.pro/v1/chat/completions",
    headers={"Authorization":"text","Content-Type":"application/json"},
    data=json.dumps({
      "model": "jina-deepsearch-v1",
      "messages": [
        {
          "role": "user",
          "content": "Hi!"
        },
        {
          "role": "assistant",
          "content": "Hi, how can I help you?"
        },
        {
          "role": "user",
          "content": "what's the latest blog post from jina ai?"
        }
      ],
      "stream": True
    })
)

data = response.json()
Jinachevron-right

Firecrawl

Firecrawlchevron-right

Perplexity

Perplexitychevron-right

Exa

Exachevron-right

Cloudsway

Cloudswaychevron-right

Last updated