Justia Lawyer Search
POST /api/v1/justia/lawyers/search
Search Justia's US lawyer directory by state, city and practice area and get up to 40 lawyers per page with firms, phone numbers, addresses, ratings, experience, practice areas and law schools.
Overview
Search Justia's US lawyer directory by state, city and practice area and get up to 40 lawyers per page with firms, phone numbers, addresses, ratings, experience, practice areas and law schools.
POST /api/v1/justia/lawyers/search
Method: POST Path: /api/v1/justia/lawyers/search Category: Research & Public Records
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| city | string | Optional | City within the state, e.g. "Los Angeles". Leave empty for the whole state. |
| limit | integer | Optional | Maximum number of lawyers to return from the page (1-40). |
| page | integer | Optional | Directory page number (40 lawyers per page). |
| practice_area | string | Optional | Practice area, e.g. "Criminal Law", "Personal Injury", "Immigration Law" or "DUI & DWI". Leave empty for all lawyers. |
| state | string | Required | US state as a two-letter code or full name, e.g. "CA" or "New York". |
Request Example
Justia Lawyer Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/justia/lawyers/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"city": "example", "limit": "40", "page": "1", "practice_area": "example", "state": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "search_url": "https://example.com/...", "page_title": "string", "filters": { "state": "string", "city": "string", "practice_area": "string" }, "page": 0, "has_next_page": false, "returned_results": 0, "results": [ { "profile_id": 0, "name": "string", "profile_url": "https://example.com/...", "photo_url": "https://example.com/...", "firm": "string", "phone": "string", "address": { "street": "string", "city": "string", "region": "string", "postal_code": "string", "country": "string" }, "latitude": 0.0, "longitude": 0.0, "years_experience": 0, "summary": "string", "practice_areas": [ "string" ], "law_schools": [ "string" ], "free_consultation": false, "claimed_profile": false, "badges": [ "string" ], "rating": 0.0, "rating_label": "string", "peer_reviews": 0 } ], "featured": [ { "profile_id": 0, "name": "string", "profile_url": "https://example.com/...", "photo_url": "https://example.com/...", "phone": "string", "serving": "string", "tagline": "string", "description": "string", "website": "string", "free_consultation": false, "rating": 0.0, "rating_label": "string", "peer_reviews": 0 } ], "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Justia Lawyer Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| search_url | string | Yes | Justia lawyer directory page that was read. |
| page_title | string | null | No | Heading of the directory page, e.g. 'Best Criminal Lawyers in Los Angeles, CA'. |
| filters | object | Yes | Directory filters applied, as Justia URL slugs; unused filters are empty. |
| filters.state | string | No | State slug, e.g. california. |
| filters.city | string | No | City slug, e.g. los-angeles, or empty. |
| filters.practice_area | string | No | Practice area slug, e.g. criminal-law, or empty. |
| page | integer | Yes | Directory page number returned. |
| has_next_page | boolean | Yes | Whether another page of lawyers is available. |
| returned_results | integer | Yes | Number of lawyers in results. |
| results | array<object> | Yes | Lawyers listed on the directory page, in the directory's order. |
| results[].profile_id | integer | Yes | Justia lawyer ID. |
| results[].name | string | Yes | Lawyer's name. |
| results[].profile_url | string | Yes | Justia lawyer profile URL (use with the Justia Lawyer Details endpoint). |
| results[].photo_url | string | null | No | Profile photo URL. |
| results[].firm | string | null | No | Law firm or office name. |
| results[].phone | string | null | No | Phone number. |
| results[].address | object | null | No | Office address. |
| results[].address.street | string | null | No | |
| results[].address.city | string | null | No | |
| results[].address.region | string | null | No | State code. |
| results[].address.postal_code | string | null | No | |
| results[].address.country | string | null | No | |
| results[].latitude | number | null | No | |
| results[].longitude | number | null | No | |
| results[].years_experience | integer | null | No | Years of experience, when shown. |
| results[].summary | string | null | No | Listing summary line, e.g. 'Beverly Hills, CA Criminal Law Lawyer with 32 years of experience serving Los Angeles'. |
| results[].practice_areas | array<string> | No | Practice areas shown on the listing. |
| results[].law_schools | array<string> | No | Law schools attended. |
| results[].free_consultation | boolean | No | Whether the lawyer offers a free consultation. |
| results[].claimed_profile | boolean | No | Whether the lawyer has claimed the profile. |
| results[].badges | array<string> | No | Profile badges, e.g. 'Offers Video Conferencing'. |
| results[].rating | number | null | No | Justia lawyer rating out of 10, when rated. |
| results[].rating_label | string | null | No | Rating label, e.g. 'Top Rated Lawyer 10/10'. |
| results[].peer_reviews | integer | null | No | Number of peer reviews, when shown. |
| featured | array<object> | Yes | Paid featured listings shown on the same page (may repeat lawyers from results). |
| featured[].profile_id | integer | Yes | |
| featured[].name | string | Yes | |
| featured[].profile_url | string | Yes | |
| featured[].photo_url | string | null | No | |
| featured[].phone | string | null | No | |
| featured[].serving | string | null | No | Service area line, e.g. 'Criminal Lawyer Serving Los Angeles, CA'. |
| featured[].tagline | string | null | No | |
| featured[].description | string | null | No | |
| featured[].website | string | null | No | |
| featured[].free_consultation | boolean | No | |
| featured[].rating | number | null | No | |
| featured[].rating_label | string | null | No | |
| featured[].peer_reviews | integer | null | No | |
| error | string | No | Present only when the search failed. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/justia/lawyers/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
state,city,limit,page,practice_area example,example,40,1,example
Pricing & Rate Limits
Endpoint Pricing
$0.0012 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |