Start background web research
perplexity.web.research.mediumQueue a multi-step research answer and receive a response id for polling or cancellation.
- Price
- 가격 미정제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다Last 30 days · 2 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/perplexity.web.research.mediumPreviewTry online출시 예정Provider docs ↗
- Uses platform quota
- Asynchronous response
- Reads public data
파라미터
Only your own key can run this tool. Completed and incomplete runs report usage.cost.total_cost; cancelled runs did not report cost in live tests.
이 도구에는 파라미터가 없습니다. 공급자 문서 ↗를 보세요 Provider docs
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/perplexity.web.research.medium' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"input":"Compare the purposes of example.com and example.org with citations.","preset":"medium","max_steps":2,"background":true,"max_output_tokens":1200}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/perplexity.web.research.medium",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"input\":\"Compare the purposes of example.com and example.org with citations.\",\"preset\":\"medium\",\"max_steps\":2,\"background\":true,\"max_output_tokens\":1200}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/perplexity.web.research.medium", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"input\":\"Compare the purposes of example.com and example.org with citations.\",\"preset\":\"medium\",\"max_steps\":2,\"background\":true,\"max_output_tokens\":1200}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다.