Proximitii Book a Demo

Community Highlights API Documentation

Retrieve community scorecards and local highlights. Read the installation details, parameters and examples.

The Proximitii Community Highlights API returns 10 community scorecards and up to 20 local highlights for a selected radius. It combines local lifestyle and demographic data into display-ready community insights.

Displaying this API's data on a public page? Show the Powered by Proximitii logo directly below it. See API Attribution.

Example Calls

node.js

const params = new URLSearchParams({
  lat: 40.778832684988224,
  lon: -73.98103168840414,
  radius: 500,
  munit: 'm',
  country: 'us'
});

const response = await fetch(
  `https://api.proximitii.com/v1/community-highlights/?${params.toString()}`,
  {
    method: 'GET',
    headers: {
      'Public-Key': 'YOUR_PUBLIC_KEY',
      'Private-Key': 'YOUR_PRIVATE_KEY'
    }
  }
);

const body = await response.json();
console.log(body);

PHP

<?php
$url = 'https://api.proximitii.com/v1/community-highlights/';
$headers = [
  'Public-Key: YOUR_PUBLIC_KEY',
  'Private-Key: YOUR_PRIVATE_KEY'
];
$params = [
  'lat' => 40.778832684988224,
  'lon' => -73.98103168840414,
  'radius' => 500,
  'munit' => 'm',
  'country' => 'us'
];

$ch = curl_init($url . '?' . http_build_query($params));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$body = json_decode(curl_exec($ch), true);
?>

Keys

Community Highlights API requests require both a public and private key. Call the API from your backend so the private key is not exposed publicly. Send keys as request headers named Public-Key and Private-Key.

Values

Use the supported parameter values below. If a parameter is omitted, its default is used.

NameDescriptionDefault ValueAccepted ValuesVariable
LatitudeSets the latitude of the location being analyzed.N/ADecimal between -90 and 90lat
LongitudeSets the longitude of the location being analyzed.N/ADecimal between -180 and 180lon or lng
CountrySelects the demographic dataset and scoring ranges.usus or cacountry
RadiusSets the search area.500100 to 6400 metersradius
Radius UnitSets the radius unit. With mi, the supplied radius is treated as miles.mm or mimunit

Sample Output

{
  "data": {
    "scorecards": [
      {
        "id": "walkability",
        "title": "Walkability",
        "icon": "active",
        "score": 8.6,
        "rating": "Very Walkable",
        "description": "Daily destinations are easy to reach on foot."
      }
    ],
    "highlights": [
      {
        "id": "dining-variety",
        "title": "Dining Variety",
        "icon": "dining",
        "score": 8.1,
        "rating": "Strong",
        "description": "Restaurants and cafes create more ways to enjoy the area."
      }
    ]
  },
  "status": {
    "code": "201",
    "message": "Created"
  }
}