Martindale-Hubbell Firm Search API
Search Martindale-Hubbell law firms by query and location via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, where, and retrieve structured data including source firm identifier, source office identifier, source peer rating, source client recommendation share, and available source filter values for firm search, and facet controls.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Martindale-Hubbell Firm Search API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
Martindale-Hubbell Firm Search API
Use q and optionally where, then apply values from facets. Several documented facet inputs accept pipe-separated values; peer_rating and client_rating use different source rating concepts.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required: q. Optional: where, practice_area, location, peer_rating, client_rating, firm_size, feature, language, sort, page, page_size. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks. |
| Selected implementation | apish · Martindale-Hubbell law firm search API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Firm search: Keep organisation and office identity with each result.
- Facet controls: Populate filter options from the source response.
Returned Data
| Field | Meaning |
|---|---|
firms[].id |
Source firm identifier |
firms[].office_id |
Source office identifier when available |
firms[].peer_rating |
Source peer rating |
firms[].client_recommended |
Source client recommendation share |
facets |
Available source filter values |
next_page |
Next page number when available |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/martindale/v1/firms \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode output=json \
--data-urlencode q=divorce \
--data-urlencode 'where=Seattle, WA'
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published Martindale-Hubbell Firm Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Martindale-Hubbell law firm search API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/martindale/v1/firms- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
q | URL query parametersquery | string | Yes | Legal issue, practice area or firm name, e.g. `divorce`. |
where | URL query parametersquery | string | No | City and state, e.g. `Seattle, WA` (optional). |
practice_area | URL query parametersquery | string | No | Practice area as the site lists it, e.g. `Divorce` or `Family Law` (`facets` lists the values for the search). Several: separate with `|`. |
location | URL query parametersquery | string | No | City as the site lists it in `facets`, e.g. `Seattle, WA`. Several: separate with `|`. |
peer_rating | URL query parametersquery | string | No | Peer review rating. enum: "5to5", "4to5", "3to5", "2to5", "1to5", "prNotReviewed" |
client_rating | URL query parametersquery | string | No | Share of clients who recommend. enum: "100to100", "90andUp", "70andUp", "50andUp", "0to50", "crNotReviewed" |
firm_size | URL query parametersquery | string | No | Firm size. enum: "1to1", "2to9", "10to24", "25to49", "50to99", "100+" |
feature | URL query parametersquery | string | No | `Open For Business` or `Offers Video Chat` (both: separate with `|`). |
language | URL query parametersquery | string | No | Language spoken, e.g. `Spanish`. Several: separate with `|`. |
sort | URL query parametersquery | string | No | Sort order (default: best match). enum: "name_asc", "name_desc", "peer_reviews", "client_reviews", "peer_awards" |
page | URL query parametersquery | integer | No | Page number (1-500), default 1. |
page_size | URL query parametersquery | integer | No | Results per page: 30 (default) or 50. |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed. enum: "json" |
records | URL query parametersquery | string | No | Native CSV/NDJSON record selector; it has no effect on this JSON-only product. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
applied_filtersobjectpractice_areastring[]
cachedbooleancountintegercredits_usedintegerfacets(object | string)[]paramstringtitlestringvalues(object | string)[]labelstringselectedbooleanvaluestring
firms(object | string)[]avvo_ratingnumberavvo_reviews_countintegerclient_recommendednull | stringclient_reviews_countintegerclient_scoreintegeridstringlocationstringnamestringoffice_idnullopen_for_businessbooleanpeer_ratingnull | integerpeople(object | string)[]idstringnamestringphotostringurlstring
phonestringurlstringwebsitestring
keywordstringnext_pageintegerpageintegerpage_sizeintegerquerystringsortstringsortsstring[]totalintegertotal_pagesintegertypestring
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Official documentation response · Supplier-tr
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 17
Review these request fields before running. Keep the published provider and request method unchanged.
q- Legal issue, practice area or firm name, e.g. `divorce`.
where- City and state, e.g. `Seattle, WA` (optional).
practice_area- Practice area as the site lists it, e.g. `Divorce` or `Family Law` (`facets` lists the values for the search). Several: separate with `|`.
location- City as the site lists it in `facets`, e.g. `Seattle, WA`. Several: separate with `|`.
peer_rating- Peer review rating.
client_rating- Share of clients who recommend.
firm_size- Firm size.
feature- `Open For Business` or `Offers Video Chat` (both: separate with `|`).
language- Language spoken, e.g. `Spanish`. Several: separate with `|`.
sort- Sort order (default: best match).
page- Page number (1-500), default 1.
page_size- Results per page: 30 (default) or 50.
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
records- Native CSV/NDJSON record selector; it has no effect on this JSON-only product.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/apish/martindale/v1/firms?output=json&q=divorce&where=Seattle%2C+WA' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "applied_filters": { "practice_area": [ "Divorce" ] }, "cached": false, "count": 30, "credits_used": 1, "facets": [ { "param": "practice_area", "title": "AREAS OF PRACTICE", "values": [ { "label": "Divorce", "selected": true, "value": "Divorce" }, { "label": "Family Law", "selected": false, "value": "Family Law" }, "… 14 more" ] }, { "param": "location", "title": "LOCATIONS", "values": [ { "label": "Seattle, WA", "selected": false, "value": "Seattle, WA" } ] }, "… 6 more" ], "firms": [ { "avvo_rating": 4.87, "avvo_reviews_count": 164, "client_recommended": null, "client_reviews_count": 0, "client_score": 0, "id": "300030549", "location": "Seattle, WA U.S.A", "name": "Lawgena Lawyers", "office_id": null, "open_for_business": true, "peer_rating": null, "people": [ { "id": "2202671", "name": "Matthew Webbeking", "photo": "https://www.martindale.com/LBM_Images/Lawyers/lawyer-matthew-s-webbeking-915712456-26326.jpg", "url": "https://www.martindale.com/attorney/matthew-swain-webbeking-2202671/" } ], "phone": "+1 555 010 0000", "url": "https://www.martindale.com/organization/lawgena-lawyers-300030549/", "website": "https://www.lawgena.com" }, { "avvo_rating": 4.60375, "avvo_reviews_count": 22, "client_recommended": "50%", "client_reviews_count": 2, "client_score": 0, "id": "300029619", "location": "Seattle, WA U.S.A\n\n(3 Locations)", "name": "Truce Law, PLLC", "office_id": null, "open_for_business": true, "peer_rating": 5, "people": [ { "id": "45723566", "name": "Brian Chase", "photo": "https://www.martindale.com/LBM_Images/Lawyers/lawyer-brian-chase-photo-5215240.png", "url": "https://www.martindale.com/attorney/brian-m-chase-45723566/" }, { "id": "168618882", "name": "Justin Aanenson", "photo": "https://www.martindale.com/LBM_Images/Lawyers/lawyer-justin-aanenson-photo-5210898.png", "url": "https://www.martindale.com/attorney/justin-aanenson-168618882/" }, "… 1 more" ], "phone": "+1 555 010 0000", "url": "https://www.martindale.com/organization/truce-law-pllc-300029619/", "website": "https://trucelaw.com/" }, "… 28 more" ], "keyword": "Seattle, WA", "next_page": 2, "page": 1, "page_size": 30, "query": "divorce Seattle, WA", "sort": "best_match", "sorts": [ "name_asc", "name_desc", "… 3 more" ], "total": 141, "total_pages": 5, "type": "law_firms" }