corpusTypestring必須
Corpus to browse. Other corpora are flatter — search them instead.
指定可能な値: USC, CFR, STATE, REGULATION
https://api.sandbase.ai/v1/api/vaquill/divisionsWalk a US legal code level by level: titles, chapters, parts, then sections.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Walk a US legal code level by level: titles, chapters, parts, then sections.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/vaquill/divisions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"corpusType": "USC"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
corpusTypestring必須Corpus to browse. Other corpora are flatter — search them instead.
指定可能な値: USC, CFR, STATE, REGULATION
codestringState code identifier to drill into, e.g. 'tx_pe' — the identifier returned by browsing corpusType=STATE with a state.
partstringPart identifier to drill into (CFR).
statestringLowercase two-letter jurisdiction code, e.g. 'tx'; required for STATE and REGULATION.
指定可能な値: al, ak, az, ar, ca, co, ct, de, dc, fl, ga, hi, id, il, in, ia, ks, ky, la, me, md, ma, mi, mn, ms, mo, mt, ne, nv, nh, nj, nm, ny, nc, nd, oh, ok, or, pa, pr, ri, sc, sd, tn, tx, ut, vt, va, wa, wv, wi, wy
cursorstringResume token from a previous response's nextCursor, at the level that lists sections.
chapterstringChapter identifier to drill into (USC and state codes).
actStatusstringList only sections carrying this status, e.g. 'repealed'.
指定可能な値: abolished, deleted, expired, in_force, inactive, non_precedential, not_funded, not_yet_effective, omitted, proposed, recodified, recompiled, rejected, relocated, removed, renumbered, repealed, rescinded, reserved, revoked, superseded, terminated, transferred, unconstitutional, vacant, vacated, vetoed, withdrawn
titleNumberintegerUSC or CFR title number to drill into.
excludeRepealedbooleanLeave out sections whose status is affirmatively dead. A section with no recorded status is kept.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Vaquill Divisionsこの API Vaquill | $0.01 / 回 | 非同期 JSON |
Vaquill | $0.01 / 回 | 非同期 JSON |
Vaquill | 1回あたり $0 から | 非同期 JSON |
Vaquill | 1回あたり $0.02 から | 非同期 JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/vaquill/divisions に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: corpusType(USC, CFR, STATE, REGULATION のいずれか)。 任意: code (string), part (string), state(al, ak, az, ar, ca, co, ct, de, dc, fl, ga, hi, id, il, in, ia, ks, ky, la, me, md, ma, mi, mn, ms, mo, mt, ne, nv, nh, nj, nm, ny, nc, nd, oh, ok, or, pa, pr, ri, sc, sd, tn, tx, ut, vt, va, wa, wv, wi, wy のいずれか), cursor (string), chapter (string) と actStatus(abolished, deleted, expired, in_force, inactive, non_precedential, not_funded, not_yet_effective, omitted, proposed, recodified, recompiled, rejected, relocated, removed, renumbered, repealed, rescinded, reserved, revoked, superseded, terminated, transferred, unconstitutional, vacant, vacated, vetoed, withdrawn のいずれか) と他 2 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
JSON 結果です。このエンドポイントは非同期で実行されるため、レスポンスには完了した結果の取得方法が含まれます。
いいえ。Vaquill Divisions は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Vaquill の API アクセスを別途申請する必要はありません。