EN

Demo — Explore the data

Install the free widget on your website

Copy this HTML into your page. No API key or registration is required. The map and table only access the 2,000 cities in the free worldwide selection, ranked by population. Filtering by country does not provide 2,000 cities per country. To display France only, add country: 'FR' to the configuration.

See the live widget on AffectionPlus — Madagascar

Grid columns
Map information fields

Loading fields…

Widget preview

HTML / JavaScript code

<div id="capit-villes"></div>
<script src="https://api.capit.net/assets/cities/affection-cities.js?v=unlock-20261107"></script>
<script>
  AffectionCities.create({
    container: '#capit-villes',
    lang: 'en',
    pageSize: 10,
    map: true,
    apiUrl: 'https://api.capit.net/v1/cities',
    downloadUrl: 'https://countries.capit.net/en/donnees-villes.html',
    developerUrl: 'https://countries.capit.net/en/demo.html#widget'
  });
</script>

Explore the data

Public access: 2,000 cities worldwide

Fixed worldwide selection: filtering by country does not expand it. No API key needed.

Visible columns
Advanced filters

Show results

City preview
Download this previewPlans and pricing

Explorer exports are batches of up to 1,000 rows. For an entire country, select its CSV file in the catalogue.

API request
API REST / OpenAPI