Public records provider · 4 capabilities

Justia Law API for AI agents and assistants

Justia's free U.S. law pages: state code hierarchies, current statute section text and court opinion pages. Available to your AI agents via Firecrawl Alexandria.

Sign up to use Justia Law
Sign in

Try Justia Law with
Firecrawl Alexandria

Choose an example or ask your own question.

Justia Law
TRY ASKING

Capabilities

Justia Law API capabilities via Firecrawl Alexandria

4 capabilities your agent can call with one Firecrawl API key. Open one to try it below.

Playground

Try the Justia Law API via Firecrawl Alexandria

Pick a capability, fill in its inputs and run it, or copy the JavaScript, Python, cURL or CLI code.

1Request
string

Justia codes path below /codes/, with or without the state prefix, e.g. code-pen or california/code-pen/part-1. Omit to list the state's codes.

string

USPS code (CA), state name (California) or Justia slug (new-york). All 50 states plus DC, PR, GU and VI.

string

A law.justia.com/codes/ listing URL, e.g. https://law.justia.com/codes/mississippi/title-57/chapter-75/. Mutually exclusive with state/path.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "law-justia-com",
    capability: "statutes/statute_browse",
    options: {
      path: "code-pen",
      state: "CA",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Justia Law.

{
  "breadcrumbs": [
    {
      "name": "Justia",
      "path": null,
      "url": null
    },
    {
      "name": "U.S. Law",
      "path": null,
      "url": null
    },
    {
      "name": "U.S. Codes and Statutes",
      "path": null,
      "url": null
    },
    {
      "name": "California Code",
      "path": "california",
      "url": "https://law.justia.com/codes/california/"
    },
    {
      "name": "2025 California Code",
      "path": "california/2025",
      "url": "https://law.justia.com/codes/california/2025/"
    },
    {
      "name": "Penal Code - PEN",
      "path": null,
      "url": null
    }
  ],
  "count": 9,
  "entries": [
    {
      "kind": "container",
      "name": "TITLE OF THE ACT",
      "path": "california/code-pen/title-of-the-act",
      "range_end": null,
      "range_start": null,
      "url": "https://law.justia.com/codes/california/code-pen/title-of-the-act/"
    },
    {
      "kind": "text",
      "name": "THE PENAL CODE OF CALIFORNIA",
      "path": null,
      "range_end": null,
      "range_start": null,
      "url": null
    },
    {
      "kind": "container",
      "name": "PRELIMINARY PROVISIONS",
      "path": "california/code-pen/preliminary-provisions",
      "range_end": null,
      "range_start": null,
      "url": "https://law.justia.com/codes/california/code-pen/preliminary-provisions/"
    },
    {
      "kind": "container",
      "name": "PART 1 - OF CRIMES AND PUNISHMENTS",
      "path": "california/code-pen/part-1",
      "range_end": "680.4",
      "range_start": "25",
      "url": "https://law.justia.com/codes/california/code-pen/part-1/"
    },
    {
      "kind": "container",
      "name": "PART 2 - OF CRIMINAL PROCEDURE",
      "path": "california/code-pen/part-2",
      "range_end": "1620",
      "range_start": "681",
      "url": "https://law.justia.com/codes/california/code-pen/part-2/"
    },
    {
      "kind": "container",
      "name": "PART 3 - OF IMPRISONMENT AND THE DEATH PENALTY",
      "path": "california/code-pen/part-3",
      "range_end": "10008",
      "range_start": "2000",
      "url": "https://law.justia.com/codes/california/code-pen/part-3/"
    },
    {
      "kind": "container",
      "name": "PART 4 - PREVENTION OF CRIMES AND APPREHENSION OF CRIMINALS",
      "path": "california/code-pen/part-4",
      "range_end": "14315",
      "range_start": "11006",
      "url": "https://law.justia.com/codes/california/code-pen/part-4/"
    },
    {
      "kind": "container",
      "name": "PART 5 - PEACE OFFICERS' MEMORIAL",
      "path": "california/code-pen/part-5",
      "range_end": "15003",
      "range_start": "15001",
      "url": "https://law.justia.com/codes/california/code-pen/part-5/"
    },
    {
      "kind": "container",
      "name": "PART 6 - CONTROL OF DEADLY WEAPONS",
      "path": "california/code-pen/part-6",
      "range_end": "34400",
      "range_start": "16000",
      "url": "https://law.justia.com/codes/california/code-pen/part-6/"
    }
  ],
  "has_section_text": false,
  "observed_at_ms": 1794096000000,
  "path": "california/code-pen",
  "requests": 1,
  "source_url": "https://law.justia.com/codes/california/code-pen/",
  "state": "california",
  "title": "California Penal Code - 2025 California Codes",
  "year": 2025
}

Connect

Use the Justia Law API in your agent via Firecrawl Alexandria

Connect Firecrawl once and your agent can call Justia Law and every other provider in Alexandria.

  1. Setup guide for

    01

    Connect your agent to Firecrawl Alexandria

    Add Firecrawl to Claude, ChatGPT, Cursor or your own agent, signed in on a team with Alexandria enabled. One API key from that team reaches Justia Law and every other provider in Alexandria.

  2. 02

    Ask in plain language

    Tell your agent what you need from Justia Law. Alexandria finds the capability that fits, and your agent runs it.

    • States0 credits
    • Statute browse5 credits
    • Statute section5 credits
    One Firecrawl billFirecrawl credits

    03

    Pay per use

    Each Justia Law call costs Firecrawl credits, all on one Firecrawl bill, so you pay only for what your agent uses.

Why Alexandria

Why use Firecrawl Alexandria

What you get when your agent calls Justia Law through Alexandria instead of a one-off integration.

  • API KEYfc-••••3f2aJustia LawWeb searchScrapeData providers
    01

    One key for every provider

    • No separate Justia Law account, contract or API key. Calls are billed in Firecrawl credits.
    • The same key reaches Alexandria's data providers plus Firecrawl's web search and scraping.
  • CAPABILITYstatutes/statesOUTresponsejson
    02

    Built for agents

    • Every capability has documented inputs and outputs your agent can read before it calls.
    • Searching Alexandria for the capability that fits is free, through MCP, the CLI or the API.
  • NOT ENOUGH CALLS TO BENCHMARK YETQualitySpeedCost
    03

    Measured in public

    • Quality, speed and cost benchmarks come from real agent calls across every Alexandria user.
    • Category benchmarks compare providers side by side, so you can see which one works best.
  • SOC 2 TYPE IIOPT-IN ZERO DATA RETENTION
    04

    Secure by default

    • Firecrawl is SOC 2 Type II compliant, and the annual renewal audit is in progress.
    • Zero data retention on Firecrawl's side is available on supported Justia Law capabilities when a request opts in; Justia Law's own retention policy still applies. ZDR searches leave out Alexandria provider results, so call the capability directly.

Benchmarks

Justia Law API benchmarks via Firecrawl Alexandria

Quality, speed and cost, last 24 hours, across every agent call to Justia Law through Alexandria.

Fewer than 20 calls in the last 24 hours, so there is not enough to report yet.

FAQ

Justia Law API via Firecrawl Alexandria FAQs

What is Firecrawl Alexandria?
Firecrawl Alexandria is Firecrawl's library of data providers for AI agents, Justia Law among them. Each provider returns structured data through documented capabilities, and your agent reaches all of them, along with Firecrawl's web search and scraping, from Claude, ChatGPT, Cursor, the MCP server, the CLI or the API. Alexandria needs a Firecrawl account on a team with Alexandria enabled, or an API key from one; keyless connections don't include it.
How do I use the Justia Law API with Firecrawl Alexandria?
Connect Firecrawl to Claude, ChatGPT, Cursor or another AI tool, signed in on a team with Alexandria enabled, and ask for what you need: your agent searches Alexandria, finds Justia Law and calls it. From your own code, search Alexandria for the Justia Law capability you need with the Firecrawl API, SDKs or CLI, then call it with your API key. Either way you don't write any Justia Law integration code.
Do I need a Justia Law account or API key?
No. Calls to Justia Law run through Alexandria and are billed in Firecrawl credits, so you don't need a separate Justia Law account, contract or API key.
How much does the Justia Law API cost through Alexandria?
Calls cost from 0 to 5 Firecrawl credits, depending on the capability. The capabilities list on this page shows the price of each one, and finding the right capability is free.
Can I combine Justia Law with other data providers?
Yes. Your agent can call Justia Law alongside the live web and any other provider in Alexandria, with the same Firecrawl account.
Does Justia Law support zero data retention?
Yes. Every Justia Law capability can run under zero data retention on Firecrawl's side when a request opts in. That covers Firecrawl's retention only: Justia Law's own retention policy still applies, and requests that don't opt in are retained as usual. ZDR searches leave out Alexandria provider results, so call the capability directly.

Related

Other Public records providers, on the same Firecrawl API key.

//
Get started
//
Give your agent Justia Law.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options