Discover/Justia API
live

Justia APIjustia.com

Access Justia's lawyer directory, US state statutes, court opinions, legal guides, and law schools via a structured JSON API. 8 endpoints.

Endpoint health
verified 7h ago
get_case_detail
get_legal_guides
get_state_statutes_index
get_statute_section
search_lawyers
8/8 passing latest checkself-healing
Endpoints
8
Updated
17d ago

What is the Justia API?

The Justia API covers 8 endpoints spanning attorney profiles, state statutes, federal and appellate court opinions, legal guides, and law school listings. Use search_lawyers to query attorneys by practice area and location, get_statute_section to retrieve the full text of any state code section, or get_case_detail to pull a complete court opinion — all returning structured JSON.

Try it
Page number for pagination.
Practice area or lawyer name to search for.
Location to search in (city, state).
api.parse.bot/scraper/9cf3f8bd-b3c7-4d90-80f8-b414979bcada/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/9cf3f8bd-b3c7-4d90-80f8-b414979bcada/search_lawyers?page=1&query=family+law&location=New+York' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace justia-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Justia SDK — lawyer search, profiles, cases, statutes, law schools, legal guides."""
from parse_apis.Justia_API import Justia, State, ResourceNotFound

justia = Justia()

# Search for lawyers by practice area and location
for lawyer in justia.lawyers.search(query="criminal law", location="Los Angeles", limit=5):
    print(lawyer.name, lawyer.phone, lawyer.rating, lawyer.profile_url)

# Get a detailed lawyer profile by slug
profile = justia.lawyer_profiles.get(slug="adam-leitman-bailey-1236057")
print(profile.name, profile.phone, profile.biography, profile.practice_areas)

# Retrieve a court case opinion — formatting preserved for regex separation of opinions
case = justia.case_details.get(path="federal/appellate-courts/ca9/20-70424/20-70424-2024-12-31.html")
print(case.title, case.text[:200])

# Handle a missing resource gracefully
try:
    missing = justia.statute_sections.get(path="nonexistent/path/section-000/")
    print(missing.title)
except ResourceNotFound as exc:
    print(f"Statute not found: {exc}")

# List law schools and browse legal guides
for entry in justia.law_school_entries.list(limit=5):
    print(entry.state, entry.url)

for guide in justia.legal_guides.list(limit=5):
    print(guide.title, guide.url)

# Explore a state's lawyer categories and statute year index
california = justia.state("california")

for cat in california.lawyers(limit=3):
    print(cat.category, [link.text for link in cat.links[:3]])

for year in california.statutes_index(limit=5):
    print(year.year, year.url)

print("exercised: lawyers.search / lawyer_profiles.get / case_details.get / statute_sections.get / law_school_entries.list / legal_guides.list / state.lawyers / state.statutes_index")
All endpoints · 8 totalmissing one? ·

Search for lawyers by practice area or name and location on Justia's lawyer directory. Returns paginated results with basic lawyer information including name, phone, rating, and profile URL. Pagination via page number. Results vary by query specificity; omitting both query and location returns a broad directory listing.

Input
ParamTypeDescription
pageintegerPage number for pagination.
querystringPractice area or lawyer name to search for.
locationstringLocation to search in (city, state).
Response
{
  "type": "object",
  "fields": {
    "lawyers": "array of objects with name, firm, practice_areas, phone, location, rating, profile_url",
    "total_on_page": "integer count of lawyers returned on this page"
  },
  "sample": {
    "data": {
      "lawyers": [
        {
          "firm": null,
          "name": "John Doe",
          "phone": "+1 (555) 012-3456",
          "rating": "Top Rated Lawyer 10/10",
          "location": null,
          "profile_url": "https://lawyers.justia.com/lawyer/stephen-bilkis-1244778",
          "practice_areas": []
        }
      ],
      "total_on_page": 53
    },
    "status": "success"
  }
}

About the Justia API

Lawyer Directory

The search_lawyers endpoint accepts a query (practice area or name) and a location (city or state), returning paginated arrays where each object includes name, firm, practice_areas, phone, location, rating, and profile_url. For deeper detail, get_lawyer_profile takes a lawyer slug or full profile URL and returns biography, practice_areas, education, fees, languages, and video_conferencing availability alongside contact fields like phone, address, and website. list_lawyers_by_state complements those two by returning directory browse links grouped into Practice Areas, Cities, and Counties tabs for any given state slug.

Statutes and Case Law

get_statute_section retrieves the full text of any statute section on law.justia.com/codes/ given a path parameter such as california/2024/code-civ/division-3/part-4/title-5/chapter-2/section-1940/. The response includes text, title, and an optional citation string. Before fetching a section you can discover available years via get_state_statutes_index, which returns an available_years array of year strings and URLs for a given state. Court opinions are accessible through get_case_detail, which takes a path matching a case on law.justia.com/cases/ and returns the full text of the opinion plus a title that includes court and year.

Legal Guides and Law Schools

get_legal_guides returns a deduplicated list of guide topics with title and url fields, covering the broad subject taxonomy on Justia's guides section — useful for building navigation or categorizing legal content. get_law_schools_list returns an array of US states, each with a state name and url pointing to that state's law school listings page on Justia.

Reliability & maintenanceVerified

The Justia API is a managed, monitored endpoint for justia.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when justia.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official justia.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7h ago
Latest check
8/8 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build an attorney finder that filters results by practice area and city using search_lawyers and surfaces ratings and phone numbers.
  • Create a statute lookup tool that lets users navigate a state's code years via get_state_statutes_index then fetch full section text with get_statute_section.
  • Aggregate court opinion text for legal research or NLP analysis using get_case_detail across federal and appellate case paths.
  • Populate a legal directory with enriched attorney bios, fee information, and language support from get_lawyer_profile.
  • Generate a browsable state-by-state lawyer directory index using the links categories returned by list_lawyers_by_state.
  • Index legal guide topics from get_legal_guides to build a subject-area taxonomy for a legal content site.
  • Compile a database of ABA-accredited law schools organized by state using get_law_schools_list.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Justia have an official developer API?+
Justia does not publish a general-purpose developer API for its lawyer directory, statutes, or case law content. This Parse API provides structured access to that data.
What does `get_lawyer_profile` return beyond what the search results include?+
search_lawyers returns summary fields: name, firm, practice areas, phone, location, and rating. get_lawyer_profile adds a details object with biography, education, fees, languages, and video_conferencing, plus website and full address. It requires a lawyer slug or full profile URL as input.
Does `get_statute_section` cover all US states and all historical years?+
The endpoint retrieves text for any valid path on law.justia.com/codes/. Year coverage varies by state; use get_state_statutes_index first to confirm which years Justia hosts for a given state before constructing a section path.
Can I search or filter court cases by date range, jurisdiction, or keyword?+
get_case_detail retrieves a specific case by path and does not accept search or filter parameters. The API currently covers direct case lookup rather than case search. You can fork it on Parse and revise to add a case-search endpoint targeting Justia's case browse structure.
Does the API return bar admission status or disciplinary records for attorneys?+
No attorney bar admission status or disciplinary history fields are present in the current response schema. get_lawyer_profile covers biography, education, fees, languages, and contact details. You can fork this API on Parse and revise it to add an endpoint targeting that data if Justia surfaces it on a profile page.
Page content last updated . Spec covers 8 endpoints from justia.com.
Related APIs in Government PublicSee all →
lawyers.com API
Search and discover lawyers and law firms with detailed profiles, client reviews, and practice area information. Find legal articles and featured firms by specialty to help you locate the right legal representation for your needs.
avvo.com API
Search for attorneys by location and specialty to find detailed professional profiles, reviews, and practice areas that match your legal needs. Browse community-driven legal Q&A to get answers to common legal questions and learn from other users' experiences.
examplecourt.gov API
Search and retrieve court judgments, case details, and legal metadata from a national court reporting portal, with support for advanced filtering by court and case category. Access complete case information including full text and browse paginated results to find relevant legal precedents.
judyrecords.com API
Search and retrieve detailed court records including case information and statistics from a comprehensive legal database. Access specific case details and view aggregated court record stats to research legal proceedings and case outcomes.
ailalawyer.com API
Search and find immigration lawyers on AilaLawyer.com by location, language, and specialty, then view detailed profiles including their credentials and practice information. Easily browse through filtered results and discover the right legal expert for your immigration needs.
canlii.org API
Access Canadian legal information from CanLII.org. Discover jurisdictions and databases, search case law and legislation across all provinces and territories, and retrieve full document text and metadata.
bailii.org API
Search and retrieve court judgments and case law from British and Irish courts across multiple jurisdictions, with filtering by date range and location. Access complete case details including full judgment text and metadata to research legal precedents and decisions.
austlii.edu.au API
Search and access Australian legal cases from AustLII's comprehensive database, browsing by year and downloading decisions in multiple formats including RTF, PDF, and print-friendly versions. Discover available case databases and retrieve specific court rulings with prioritized download options to suit your preferred format.