California Attorneys
GET /api/v1/california/attorneys
Search licensed attorneys of the State Bar of California by bar number, name, location, practice area or law school. Returns license status, admission date, contact details, practice areas, languages, certified specialties and disciplinary history.
Overview
Search licensed attorneys of the State Bar of California by bar number, name, location, practice area or law school. Returns license status, admission date, contact details, practice areas, languages, certified specialties and disciplinary history.
GET /api/v1/california/attorneys
Method: GET Path: /api/v1/california/attorneys Category: Legal
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| bar_number | string | Optional | State Bar number, e.g. 115321. |
| city | string | Optional | City of the registered address, e.g. Los Angeles. |
| first_name | string | Optional | First name or its beginning. |
| last_name | string | Optional | Last name or its beginning, e.g. Smi. |
| law_school | string | Optional | Part of the law school name, e.g. Stanford. |
| page | integer | Optional | Page number (default 1). |
| page_size | integer | Optional | Results per page, 1-100 (default 20). |
| practice_area | string | Optional | Exact practice area as listed by the State Bar, e.g. Immigration. |
| q | string | Optional | Free-text search across name, firm, city, practice areas, law school and bar number. |
| state | string | Optional | Two-letter state of the registered address, e.g. CA. |
| zip | string | Optional | ZIP code or its beginning, e.g. 900. |
Request Example
California Attorneys Request Examples
curl -X GET "https://api.dataguru.cc/api/v1/california/attorneys?bar_number=example&city=example&first_name=example&last_name=example&law_school=example&page=1&page_size=1&practice_area=example&q=example&state=example&zip=example" \ -H "Authorization: Api-Key YOUR_API_KEY"
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "...": "Fields returned by the data source", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "California Attorneys", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
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 GET "https://api.dataguru.cc/api/v1/california/attorneys?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
bar_number,city,first_name,last_name,law_school,page,page_size,practice_area,q,state,zip example,example,example,example,example,1,1,example,example,example,example
Pricing & Rate Limits
Endpoint Pricing
$0.001 / per record (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. |