# Martindale-Hubbell law 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.

Documentation: https://openany.si/market/apis/martindale-hubbell/martindale-hubbell-law-firm-search-api/?offering=ddb91d3d-86c4-4ae1-8009-e7139ee3627e
API ID: ddb91d3d-86c4-4ae1-8009-e7139ee3627e
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/martindale/v1/firms
Page update time: 2026-12-03T02:46:26.027Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:46:25.141Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Martindale-Hubbell law firm search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Legal issue, practice area or firm name, e.g. `divorce`."
        },
        "where": {
          "type": "string",
          "description": "City and state, e.g. `Seattle, WA` (optional)."
        },
        "practice_area": {
          "type": "string",
          "description": "Practice area as the site lists it, e.g. `Divorce` or `Family Law` (`facets` lists the values for the search). Several: separate with `|`."
        },
        "location": {
          "type": "string",
          "description": "City as the site lists it in `facets`, e.g. `Seattle, WA`. Several: separate with `|`."
        },
        "peer_rating": {
          "type": "string",
          "description": "Peer review rating.",
          "enum": [
            "5to5",
            "4to5",
            "3to5",
            "2to5",
            "1to5",
            "prNotReviewed"
          ]
        },
        "client_rating": {
          "type": "string",
          "description": "Share of clients who recommend.",
          "enum": [
            "100to100",
            "90andUp",
            "70andUp",
            "50andUp",
            "0to50",
            "crNotReviewed"
          ]
        },
        "firm_size": {
          "type": "string",
          "description": "Firm size.",
          "enum": [
            "1to1",
            "2to9",
            "10to24",
            "25to49",
            "50to99",
            "100+"
          ]
        },
        "feature": {
          "type": "string",
          "description": "`Open For Business` or `Offers Video Chat` (both: separate with `|`)."
        },
        "language": {
          "type": "string",
          "description": "Language spoken, e.g. `Spanish`. Several: separate with `|`."
        },
        "sort": {
          "type": "string",
          "description": "Sort order (default: best match).",
          "enum": [
            "name_asc",
            "name_desc",
            "peer_reviews",
            "client_reviews",
            "peer_awards"
          ]
        },
        "page": {
          "type": "integer",
          "description": "Page number (1-500), default 1."
        },
        "page_size": {
          "type": "integer",
          "description": "Results per page: 30 (default) or 50."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "q"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "practice_area": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "facets": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "param": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "values": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string"
                        },
                        "selected": {
                          "type": "boolean"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "firms": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "avvo_rating": {
                "type": "number"
              },
              "avvo_reviews_count": {
                "type": "integer"
              },
              "client_recommended": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "client_reviews_count": {
                "type": "integer"
              },
              "client_score": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "location": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "office_id": {
                "type": "null"
              },
              "open_for_business": {
                "type": "boolean"
              },
              "peer_rating": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer"
                  }
                ]
              },
              "people": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "photo": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "phone": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "website": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "keyword": {
      "type": "string"
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "page_size": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "sorts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer"
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  '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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/martindale-hubbell/martindale-hubbell-law-firm-search-api/?offering=ddb91d3d-86c4-4ae1-8009-e7139ee3627e

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
