All URIs are relative to https://api.unifapi.com
| Method | HTTP request | Description |
|---|---|---|
| MapsSearchPost | POST /maps/search | Search Maps |
MapsSearchPost200Response MapsSearchPost (MapsSearchRequest? mapsSearchRequest = null)
Search Maps
Run one live Maps search and receive ranked local business listings for a query, including title, address, rating, category, phone, coordinates, and place id.
using System.Collections.Generic;
using System.Diagnostics;
using Unifapi.Sdk.Api;
using Unifapi.Sdk.Client;
using Unifapi.Sdk.Model;
namespace Example
{
public class MapsSearchPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.unifapi.com";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new MapsApi(config);
var mapsSearchRequest = new MapsSearchRequest?(); // MapsSearchRequest? | (optional)
try
{
// Search Maps
MapsSearchPost200Response result = apiInstance.MapsSearchPost(mapsSearchRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MapsApi.MapsSearchPost: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Search Maps
ApiResponse<MapsSearchPost200Response> response = apiInstance.MapsSearchPostWithHttpInfo(mapsSearchRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MapsApi.MapsSearchPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| mapsSearchRequest | MapsSearchRequest? | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Validation or invalid-id error | - |
| 401 | Missing, invalid, disabled, revoked, or expired UnifAPI API key | - |
| 402 | Insufficient workspace credits | - |
| 404 | Resource not found | - |
| 429 | Rate limited | - |
| 500 | Internal error | - |
| 502 | Source error | - |
| 503 | Source unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]