City Statistics Fetcher is a lightweight, command-line utility designed for Windows that quickly retrieves real-time demographic and meteorological data for any major global city.
Built as a Batch-PowerShell polyglot script, it provides the simplicity of a standard .bat executable while leveraging the advanced web-request and JSON-parsing capabilities of PowerShell under the hood.
🌟 Key Features
- Instant Demographics: Retrieves accurate population metrics and resolves the host country for the queried city.
- Live Weather Data: Fetches the current temperature, alongside the forecasted peak high and peak low temperatures for the day.
- Zero Configuration: Uses free, public APIs (Open-Meteo and Wttr.in) requiring no API keys, authentication, or account setups.
- Color-Coded CLI: Outputs data in a clean, readable, and color-coded command prompt interface.
- Standalone Execution: Requires no third-party installations or dependencies—runs natively on modern Windows systems.
⚙️ How It Works
When executed, the script prompts the user for a city name. Standard Windows Batch cannot natively process complex web APIs, so the script immediately passes the user’s input to a hidden PowerShell instance.
PowerShell then makes synchronous GET requests to:
- Open-Meteo Geocoding API: To resolve the city name to a specific country and pull the latest population estimates.
- Wttr.in API: To grab the current atmospheric conditions and daily temperature extremes.
The JSON responses are parsed, formatted, and pushed back to the console screen.
⚠️ Limitations & Future Expansion
Due to the constraints of free, unauthenticated public APIs, financial metrics such as Total GDP and GDP per Capita are not natively populated by this script.
Placeholders have been included in the code architecture. Developers can easily modify the script to integrate commercial datasets (such as the World Bank API, API-Ninjas, or Trading Economics) by plugging in their personal API keys.
🚀 Usage
Simply double-click the .bat file, enter the name of a city (e.g., Tokyo, Berlin, New York), and press Enter to view the statistics.

Individual $77,000,000,000,002.02
Enterprise / Government [Contact Us]
or kindly contact hussein@phantomproductions.com.tr / hussein.a.shahab@gmail.com /+905540076095 for a license.
