GeoNames

GeoNames

Geocoding

Place names and other geographical data

Visit API

📚 Documentation & Examples

Everything you need to integrate with GeoNames

🚀 Quick Start Examples

GeoNames Javascript Examplejavascript
// GeoNames API Example
const response = await fetch('http://www.geonames.org/export/web-services.html', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

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

The Geonames API offers a powerful suite of web services for accessing a wealth of geographical data, including detailed place names and a variety of spatial information. This API can be invaluable for developers looking to integrate reliable geographical references into their applications. By leveraging the extensive database maintained by Geonames, users can easily enrich their projects with accurate location information, enabling functionalities such as map visualizations, local search capabilities, and geocoding features. Accessible documentation is available at Geonames Web Services to help users navigate through its offerings.

Utilizing the Geonames API comes with numerous benefits, including:

  • Access to a comprehensive database of geographical names worldwide.
  • Ability to retrieve data in various formats suitable for diverse applications.
  • Enhanced user experience through accurate and dynamic geographical information.
  • Cost-effective solution, as many features are accessible for free.
  • Seamless integration with other web services for enhanced functionality.

Here's a JavaScript code example to demonstrate how to call the Geonames API:

const fetch = require('node-fetch');

const username = 'your_username'; // Replace with your Geonames username
const placeName = 'Los Angeles';
const url = `http://api.geonames.org/searchJSON?q=${placeName}&maxRows=10&username=${username}`;

fetch(url)
  .then(response => response.json())
  .then(data => {
    console.log(data);
  })
  .catch(error => {
    console.error('Error:', error);
  });
🔒

Security Assessment

F
🔒HTTPS
Enabled
SSL Grade: T
đŸ›Ąī¸Headers
15/100
XFO
🕒Last Assessed
1 weeks ago
â„šī¸Click for detailed analysis

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 4Jun 6Jun 8Jun 10Jun 12Jun 14Jun 16Jun 18Jun 20Jun 22Jun 24Jun 26Jun 28Jun 30Jul 304008001440Minutes
Online
Offline

Related APIs in Geocoding