Recent Bills
- H.R. 10171August 27, 2026
- H.R. 10156August 27, 2026
- H.R. 10172August 27, 2026
- H.R. 10160August 27, 2026
- H.R. 10181August 27, 2026
- H.R. 10176August 27, 2026
- H.Res. 1496August 27, 2026
- H.R. 10164August 27, 2026
- H.R. 10170August 27, 2026
- H.Res. 1494August 27, 2026
- H.R. 10163August 27, 2026
- H.R. 10157August 27, 2026
Committees
- Administration
- Agriculture
- Agriculture, Nutrition, And Forestry
- Appropriations
- Armed Services
- Banking, Housing, And Urban Affairs
- Budget
- Commerce, Science, And Transportation
- Education and Workforce
- Energy And Commerce
- Energy And Natural Resources
- Environment And Public Works
- Ethics
- Finance
- Financial Services
- Foreign Affairs
- Foreign Relations
- Health, Education, Labor, And Pensions
- Homeland Security
- Homeland Security And Governmental Affa…
- Indian Affairs
- Indian and Insular Affairs
- Intelligence
- Judiciary
- Natural Resources
- Oversight And Government Reform
- Permanent Select Intelligence
- Rules
- Rules And Administration
- Science, Space, And Technology
- Select Intelligence
- Small Business
- Small Business And Entrepreneurship
- Subcommittee on Aviation
- Subcommittee on Border Security and Enf…
- Subcommittee on Coast Guard and Maritim…
- Subcommittee on Commodity Markets, Digi…
- Subcommittee on Conservation, Research,…
- Subcommittee on Counterterrorism and In…
- Subcommittee on Cybersecurity and Infra…
- Subcommittee on Disability Assistance a…
- Subcommittee on Economic Development, P…
- Subcommittee on Economic Opportunity
- Subcommittee on Emergency Management an…
- Subcommittee on Energy and Mineral Reso…
- Subcommittee on Federal Lands
- Subcommittee on Forestry and Horticultu…
- Subcommittee on General Farm Commoditie…
- Subcommittee on Health
- Subcommittee on Highways and Transit
- Subcommittee on Livestock, Dairy, and P…
- Subcommittee on Nutrition and Foreign A…
- Subcommittee on Oversight and Investiga…
- Subcommittee on Oversight, Investigatio…
- Subcommittee on Railroads, Pipelines, a…
- Subcommittee on Transportation and Mari…
- Subcommittee on Water Resources and Env…
- Subcommittee on Water, Wildlife and Fis…
- Transportation And Infrastructure
- Veterans' Affairs
- Ways And Means
On the site it lives at /home. Open it on the canvas, where it can be sized, coloured and rearranged with the rest.
Installation
pnpm dlx shadcn@latest add @44gov/apiOr copy the source into your project and update the import paths to match it.
"use client" import Link from "next/link" import * as F from "@/lib/fixtures"import { useJurisdiction } from "@/lib/policy/jurisdiction"import { CardFrame, ComponentActions } from "@/components/card-frame"import { CopyButton } from "@/components/copy-button"import { CardAnchor } from "@/components/admin/blocks/card-tools"import { Button } from "@govblock/ui/components/button"import { CardAction, CardContent, CardHeader, CardTitle } from "@govblock/ui/components/card"import { CardFoot } from "@/components/card-foot" // API — the same numbers this page renders, as JSON, for the scope in the// header. The card is the documentation: the URL it shows is meant to be live.export function ApiCard() { const { state } = useJurisdiction() const path = `/api/policy/bills?state=${state}&limit=5` const command = `curl https://gov.nysgpt.com${path}` return ( <CardFrame id="api"> <CardHeader> <CardAnchor>API</CardAnchor> <CardAction> <ComponentActions /> </CardAction> </CardHeader> <CardContent> <div className="relative rounded-lg bg-muted p-3 pr-10 font-mono text-xs break-all"> {command} <CopyButton value={command} className="absolute top-2 right-2" variant="ghost" /> </div> </CardContent> <CardFoot href="/docs/api" label="The API"> <Button size="sm" nativeButton={false} render={<Link href={path} target="_blank" />}> Try it </Button> </CardFoot> </CardFrame> )} Usage
import { ApiCard } from "@/components/cards/api"<ApiCard />Composition
The parts the block is built from, in the order they appear.
ApiCard├── CardHeader├── CardAction└── CardContentData
The block reads no route of its own. What it shows comes from the page that holds it.
API Reference
ApiCard takes no props. It reads the jurisdiction and year from the page.