英国議会検索API
英国議会の討論、書面質問、議員活動(Hansard)を1つのエンドポイントで照会。AI主導のシビックテックツール、立法モニタリング、政策研究向けの事前整形されたJSON。
Integration guide
Copy a snippet, replace your API key, run. Works in any HTTP client — examples below in cURL, JavaScript, and Python.
/api/search/politicshttps://www.apipick.com英国議会Hansard全体のセマンティック検索 — 討論、書面質問、議員活動。後段のLLM向けにランク付けされた抜粋とソースURLを返します。
querystringrequiredNatural-language search query
max_num_resultsintegeroptional1–5, default 5
relevance_thresholdnumberoptional0.0–1.0 quality filter
country_codestringoptionalISO country code (e.g. US, GB)
start_datestringoptionalISO date YYYY-MM-DD
end_datestringoptionalISO date YYYY-MM-DD
curl -X POST "https://www.apipick.com/api/search/politics" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"query": "UK Parliament debates on AI regulation",
"max_num_results": 5,
"country_code": "US",
"start_date": "2026-01-01"
}'{
"query": "UK Parliament debates on AI regulation",
"results": [
{
"title": "Example result",
"url": "https://example.com/article",
"snippet": "Short excerpt of the page content…",
"source_type": "web",
"published_at": "2026-04-15",
"score": 0.92
}
],
"result_count": 1,
"credits_used": 40,
"remaining_credits": 99
}Rate limits
Throttling is per API key, sliding 60-second window. Hit the limit and you get a clean 429 with a Retry-After header.
60req/min
Per API key, per endpoint. Sliding 60-second window.
3concurrent
Max simultaneous in-flight requests per API key.
X-RateLimit-LimitMaximum requests allowed per minuteX-RateLimit-RemainingRequests remaining in the current windowX-RateLimit-ResetSeconds until the current window resetsRetry-AfterSeconds to wait before retrying (only on 429)HTTP/1.1 429 Too Many Requests
Retry-After: 12
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 12
{
"error": "rate_limit_exceeded",
"message": "Rate limit exceeded: 60 requests/minute per API key. Retry after 12s.",
"retry_after": 12
}よくある質問
なぜ1回の呼び出しが40クレジットなのですか?
英国議会のHansardは大規模で継続的に更新されるコーパスであり、継続的なインデックス保守が必要なため、エンドポイントは40クレジット(1回あたり約$0.04)に設定されています。
どのソースが対象ですか?
Hansard(庶民院・貴族院)の英国議会討論、書面質問、議員活動。トピック、法案、議員名を自然言語クエリとして渡してください。
英国のみですか?
はい。このエンドポイントは英国議会を対象とします。英国の判例法と法令は英国法務検索エンドポイントをご利用ください。
日付フィルタリングは?
はい。start_date と end_date を YYYY-MM-DD 形式で渡すと特定の会期やウィンドウに絞り込めます。
OpenAI / Claude 用のツールスキーマは?
GET /api/search/politics/tool-schema がそのまま貼り付け可能なOpenAI関数およびClaudeツール使用の定義を返します。