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.
Get an access token.
https://your-application.com/oauth-callbackThe authorization code you received from the OAuth callback
Access token successfully generated.
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"
}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 information about how you are currently authenticated.
Information about the current authentication.
You are not authenticated.
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 the number of matching contacts for a set of object properties.
The latitude of the location to search around.
53.595173The longitude of the location to search around.
10.022174The price of the object in EUR.
400000The number of rooms in the object.
4.5The land area of the object, in square meters. This is only relevant for houses and plots.
1200The living space of the object, in square meters.
82.5The type of object.
housePossible values: The number of matching contacts.
You are not authenticated.
You are not authorized to access this resource.
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?