v1city
Search and filter global city data by name, country, population range, and geographic coordinates to retrieve detailed information.
Instructions
API Ninjas City API endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of city. | |
| country | No | Country filter. Must be an ISO-3166 alpha-2 code (e.g. US). | |
| min_population | No | Minimum city population. | 0 |
| max_population | No | Maximum city population. | 0 |
| min_lat | No | Minimum latitude coordinate. | 0 |
| max_lat | No | Maximum latitude coordinate. | 0 |
| min_lon | No | Minimum longitude coordinate. | 0 |
| max_lon | No | Maximum longitude coordinate. | 0 |
| limit | No | How many results to return. Must be between 1 and 30. Default is 1. | 1 |