This is a comprehensive database with all cities in India. The list includes around 4,000 cities, towns, villages, it's free to download, and consume via APIs. Developers can retrieve data using their preferred programming language, for example, Javascript, Swift, Dart, NodeJS, PHP, Phyton, Swift, Java, etc. Data gathered from Wikipedia and Geonames and licensed under Creative Commons 4.0.
This is a ready-to-use database containing all the cities in Portugal. All data can be fetched through REST and GraphQL APIs, or just by cloning the database to your app. Data source: GeoNames.