# Justia Attorney Directory Scraper

> Justia Attorney Directory Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-02).

Scrapes structured attorney and law firm data from the Justia lawyer directory by state, practice area, or specific profile URLs

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/justia?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/justia-attorney-directory-scraper-0599c27b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TA-1ssf9sbqfRyhA5zp14

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability justia-attorney-directory-scraper-0599c27b -d '<json body>'
```

Example prompt: Pull up to 200 attorney records from the Justia directory for family law lawyers in Texas, including full profile details like practice areas, education, and office locations.

## When to prefer this

Choose this endpoint when you need structured attorney data from Justia's public directory at scale — especially when you need profile-level details like biographies, education, and practice areas that are not available via a general-purpose search engine. Prefer this over manual web scraping or generic crawlers when you need clean, typed JSON output and pay only for successful runs.

## Known failure modes

- Empty result if no attorneys match the specified state or practice area
- Justia site structure changes may break scraping and return empty or malformed data
- Page cap of 25 pages per directory URL limits total records for large directories
- Invalid or non-Justia URLs in startUrls will yield no results
- Rate limiting or blocking by Justia may cause partial or failed runs (not charged on failure)

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of records and an array of attorney items, each containing fields such as id, url, name, type, title, biography, profileUrl, and profileImage, plus a product label ('justia'). Full profile scraping optionally adds practice areas, education, and office details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 100,
   "minimum": 1,
   "description": "Maximum number of unique attorney records across all input URLs."
  },
  "location": {
   "type": "string",
   "default": "California",
   "description": "State name used when no URLs are supplied, for example California."
  },
  "maxPages": {
   "type": "integer",
   "default": 25,
   "maximum": 25,
   "minimum": 1,
   "description": "Stop after this many pages for each directory URL, up to the site's observed 25 page search cap."
  },
  "startUrls": {
   "type": "array",
   "description": "Public Justia lawyer directory, city, practice area, or individual attorney profile URLs. These take precedence over state and practice area."
  },
  "practiceArea": {
   "type": "string",
   "default": "All",
   "description": "Practice area name for the state search. Use All for the general state directory."
  },
  "includeProfiles": {
   "type": "boolean",
   "default": true,
   "description": "Open each attorney profile for practice areas, education, offices, and other details. Turn off for faster basic records."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "id": null,
    "url": null,
    "name": null,
    "type": null,
    "title": null,
    "biography": null,
    "profileUrl": null,
    "profileImage": null
   }
  ],
  "product": "justia"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/justia-attorney-directory-scraper-0599c27b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
