Skip to main content
POST
/
api
/
massachusetts
/
companies
/
search
/massachusetts/companies/search
curl --request POST \
  --url https://api.anysite.io/api/massachusetts/companies/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "query": "<string>",
  "count": 2,
  "timeout": 300,
  "search_type": "begins_with"
}
'
[
  {
    "id_number": "<string>",
    "@type": "@massachusetts_company_search_item",
    "name": "<string>",
    "old_id_number": "<string>",
    "address": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
query
string
required

Company name to search for

Minimum string length: 1
Examples:

"DUNKIN"

"WALMART"

count
integer
required

Max number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
search_type
enum<string>
default:begins_with

How to match the name against the registry

Available options:
begins_with,
exact_match,
full_text,
soundex

Response

Successful Response

id_number
string
required
@type
string
default:@massachusetts_company_search_item
name
string | null
old_id_number
string | null
address
string | null