ailalawyer.com APIailalawyer.com ↗
Search immigration lawyers on AilaLawyer.com by location, language, and practice area. Retrieve profiles with credentials, AILA membership year, and contact info.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/2dc488ce-97ce-4b46-9e00-4c0dd5b95dd2/get_form_options' \ -H 'X-API-Key: $PARSE_API_KEY'
Get dropdown values for states, countries, languages, and practice areas to use as search filters in search_lawyers.
No input parameters required.
{
"type": "object",
"fields": {
"states": "array of objects with value and label keys representing US states and Canadian provinces",
"countries": "array of objects with value and label keys representing countries",
"languages": "array of objects with value and label keys representing languages",
"practice_areas": "array of objects with value and label keys representing practice areas"
},
"sample": {
"data": {
"states": [
{
"label": "Alabama",
"value": "1"
},
{
"label": "California",
"value": "5"
},
{
"label": "New York",
"value": "35"
}
],
"countries": [
{
"label": "USA",
"value": "1"
},
{
"label": "Canada",
"value": "2"
}
],
"languages": [
{
"label": "Spanish",
"value": "89"
},
{
"label": "French",
"value": "1"
}
],
"practice_areas": []
},
"status": "success"
}
}About the ailalawyer.com API
The AilaLawyer.com API provides 3 endpoints to search, filter, and retrieve detailed profiles of immigration attorneys listed on AilaLawyer.com. Starting with get_form_options, you can fetch valid filter values for states, countries, languages, and practice areas, then pass those IDs directly to search_lawyers to get paginated results including attorney names, firm names, locations, and profile identifiers used to pull full records.
Endpoints and Data Coverage
The API exposes three endpoints that work in sequence. get_form_options returns four lookup arrays — states, countries, languages, and practice_areas — each containing value and label keys. These values are the correct IDs to pass as filter parameters in search_lawyers, ensuring searches match the directory's own taxonomy rather than free-text guesses.
Searching for Attorneys
search_lawyers accepts up to eight optional parameters including zip, city, state, country, miles (radius), language, practice, and last (last name). Results come back in pages of up to 25, with a pagination object exposing current_page, total_pages, and total_count. Each lawyer summary in the lawyers array includes name, firm, geographic location, and the a (attorney ID) and p (firm ID) fields required to fetch a full profile.
Attorney Detail Records
get_lawyer_details takes the a and p IDs from search results and returns a richer profile: full_name, first_name, last_name, firm_name, address_lines, phone, website, law_school, languages spoken, and member_since (the year the attorney joined AILA). The phone field may be empty if the attorney has not published a number, and website is only present when listed.
Filter Workflow
Because search_lawyers uses numeric IDs for state, country, language, and practice, the correct workflow is to call get_form_options first, map human-readable labels to their value fields, then pass those values as query parameters. Setting language to 0 signals any language. The miles parameter scopes results to a radius around a zip or city, useful for building proximity-based lookups.
- Build a referral tool that surfaces immigration lawyers near a given ZIP code filtered by practice area
- Aggregate AILA member attorney contact info including phone and website by state or province
- Filter attorneys who speak a specific language to serve non-English-speaking clients
- Display law school credentials and AILA membership year to compare attorney backgrounds
- Power a CRM enrichment workflow that resolves firm names and addresses from attorney IDs
- Compile a regional directory of immigration lawyers for a legal aid or nonprofit platform
- Support last-name lookup to verify whether a specific attorney is listed in the AILA directory
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does AilaLawyer.com have an official developer API?+
What does `get_lawyer_details` return beyond what `search_lawyers` provides?+
search_lawyers returns summary fields: name, firm, location, and the a and p IDs. get_lawyer_details adds phone, website, law_school, member_since (AILA membership year), spoken languages, and full address_lines. You need both the attorney ID (a) and firm ID (p) from search results to call this endpoint.Does `search_lawyers` return results beyond the first page?+
pagination metadata including total_pages and total_count. Multi-page traversal is not built into the current endpoint. You can fork this API on Parse and revise it to accept a page parameter and iterate through additional pages.Can I retrieve attorney reviews or client ratings through this API?+
Are Canadian attorneys included, or is this US-only?+
get_form_options returns both US states and Canadian provinces in the states array, and search_lawyers accepts a country parameter populated from the countries lookup. Coverage depends on what attorneys are listed in the AilaLawyer.com directory, which is primarily AILA members.