跳转到内容
EN

搜索 API

(待译)

Praxis searches the web and retrieves page content for agents. Concepts and behavior follow Tavily (Search, Extract, Crawl and Map), so Tavily experience applies. Differences: use a Praxis credential rather than a Tavily API key; Praxis manages the upstream credential and bills the authenticated caller through platform billing. Research and upstream account usage, organization usage and request logs are unavailable; read your own usage through platform billing instead. Start with praxis.search.search.create to search for a query.

基础地址

https://api.deepraxis.com/search/v1

接入

curl
curl https://api.deepraxis.com/search/v1/search \
  -H "Authorization: Bearer $PRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"Who is Leo Messi?"}'
Python
import os

from tavily import TavilyClient

tavily_client = TavilyClient(
    api_key=os.environ["PRAXIS_API_KEY"],
    api_base_url="https://api.deepraxis.com/search/v1",
)

response = tavily_client.search("Who is Leo Messi?")
print(response)
TypeScript
import { tavily } from "@tavily/core";

const tvly = tavily({
  apiKey: process.env.PRAXIS_API_KEY,
  apiBaseURL: "https://api.deepraxis.com/search/v1",
});

const response = await tvly.search("Who is Leo Messi?");
console.log(response);

端点

方法路径说明支持
POST/v1/search搜索● 支持
POST/v1/extract提取网页内容● 支持
POST/v1/crawl站内爬取● 支持
POST/v1/map站点地图● 支持

与官方的差异

  • 站内爬取:调用前要求账户余额大于 0;按本次调用实际消耗的 credits 计费,每 credit $0.01;上游未返回用量时,按本次请求可能消耗的上限计费。
  • 站点地图:调用前要求账户余额大于 0;按本次调用实际消耗的 credits 计费,每 credit $0.01;上游未返回用量时,按本次请求可能消耗的上限计费。

参数与字段的权威定义以 Tavily 官方文档为准。

错误按 Tavily 格式返回,参见错误;额度与响应头参见限流。