Skip to main content
POST
/
api
/
hemnet
/
locations
/
search
/hemnet/locations/search
curl --request POST \
  --url https://api.anysite.io/api/hemnet/locations/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@hemnet_location",
    "name": "<string>",
    "type": "<string>",
    "alias": "<string>",
    "parent_name": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Free text to resolve into Hemnet location ids (area, municipality, district or address)

Minimum string length: 1
Examples:

"Stockholm"

"Södermalm"

"Sollentuna kommun"

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

Response

Successful Response

id
string
required
@type
string
default:@hemnet_location
name
string | null
type
string | null
alias
string | null
parent_name
string | null