Available API Endpoints

OAuth

Get or Refresh an Access Token

Use this endpoint to retrieve access tokens, for example after OAuth authorization or for refreshing an existing access token.

post

Get an access token.

Body
grant_typestring · enumRequiredPossible values:
client_idstringRequired
client_secretstringRequired
redirect_uristringRequiredExample: https://your-application.com/oauth-callback
codestringRequired

The authorization code you received from the OAuth callback

Responses
200

Access token successfully generated.

application/json
post
/v1/oauth/token
POST /v1/oauth/token HTTP/1.1
Host: api.smatchly.com
Content-Type: application/json
Accept: */*
Content-Length: 152

{
  "grant_type": "authorization_code",
  "client_id": "text",
  "client_secret": "text",
  "redirect_uri": "https://your-application.com/oauth-callback",
  "code": "text"
}
200

Access token successfully generated.

{
  "access_token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "refresh_token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "expires_in": 31536000
}

Token Meta Information

Use this endpoint to retrieve meta information about the used API key. It is also helpful to check the validity of a provided API token.

get

Get information about how you are currently authenticated.

Responses
200

Information about the current authentication.

application/json
get
/v1/about
GET /v1/about HTTP/1.1
Host: api.smatchly.com
Accept: */*
{
  "authentication_type": "oauth"
}

Get the number of matching contacts for a set of object properties

Use this endpoint to get the number of contacts matching with the provided object characteristics.

get

Get the number of matching contacts for a set of object properties.

Query parameters
latnumber · floatRequired

The latitude of the location to search around.

Example: 53.595173
lngnumber · floatRequired

The longitude of the location to search around.

Example: 10.022174
pricenumber · floatOptional

The price of the object in EUR.

Example: 400000
roomsnumber · floatOptional

The number of rooms in the object.

Example: 4.5
land_areanumber · floatOptional

The land area of the object, in square meters. This is only relevant for houses and plots.

Example: 1200
living_spacenumber · floatOptional

The living space of the object, in square meters.

Example: 82.5
typestring · enumOptional

The type of object.

Example: housePossible values:
Responses
200

The number of matching contacts.

application/json
get
/v1/matching-contacts-count
GET /v1/matching-contacts-count?lat=53.595173&lng=10.022174 HTTP/1.1
Host: api.smatchly.com
Accept: */*
{
  "count": 1
}

Last updated

Was this helpful?