Search economic indicators
valyu.economics.indicators.searchFind BLS and World Bank statistics.
- Price
- $0.05/callZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/valyu.economics.indicators.searchPreviewTry onlineDemnächstProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameter
The selected Valyu sources are fixed for shared-key calls; use a Valyu own tool for arbitrary source mixes.
Dieses Tool hat keine Parameter. Siehe Anbieterdokumentation ↗ Provider docs
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/valyu.economics.indicators.search' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"query":"United States unemployment rate","max_price":5,"search_type":"proprietary","max_num_results":1,"response_length":"short","included_sources":["valyu/valyu-bls","valyu/valyu-worldbank-indicators"]}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/valyu.economics.indicators.search",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"query\":\"United States unemployment rate\",\"max_price\":5,\"search_type\":\"proprietary\",\"max_num_results\":1,\"response_length\":\"short\",\"included_sources\":[\"valyu/valyu-bls\",\"valyu/valyu-worldbank-indicators\"]}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/valyu.economics.indicators.search", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"query\":\"United States unemployment rate\",\"max_price\":5,\"search_type\":\"proprietary\",\"max_num_results\":1,\"response_length\":\"short\",\"included_sources\":[\"valyu/valyu-bls\",\"valyu/valyu-worldbank-indicators\"]}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.05/call einschließlich Servicegebühr abgerechnet.