API Freaks logoAPI Freaks logo
CTRL+K

    APIs

  • Pricing
  • Resources
  • Tools

  • Contact us
CTRL+K
Sign InGet Started For Free
  • Credits Usage APIGET
  • IP Geolocation LookupGET
  • Bulk IP Geolocation LookupPOST
  • Domain WHOIS LookupGET
  • IP WHOIS LookupGET
  • ASN LookupGET
  • Domain WHOIS Historical LookupGET
  • Domain WHOIS Reverse LookupGET
  • Bulk Domain WHOIS LookupPOST
  • DNS LookupGET
  • Historical DNS LookupGET
  • Reverse DNS LookupGET
  • Bulk DNS LookupPOST
  • Email Checker APIPOST
  • SSL Certificate LookupGET
  • SSL Certificate Chain LookupGET
  • Domain AvailabilityGET
  • Domain Availability with SuggestionsGET
  • Bulk Domain AvailabilityPOST
  • Website ScreenshotGET
  • Bulk ScreenshotPOST
  • Latest Exchange RatesGET
  • Historical Exchange RatesGET
  • Currency Converter LatestGET
  • Currency Converter HistoricalGET
  • Currency Time SeriesGET
  • Currency FluctuationGET
  • Geolocalized Currency ConverterGET
  • Currency SupportedGET
  • Currency SymbolsGET
  • Currency Historical Data LimitsGET
  • Live Commodity PricesGET
  • Historical Commodity PricesGET
  • Commodity FluctuationGET
  • Commodity Time SeriesGET
  • Commodity SymbolsGET
  • Timezone LookupGET
  • Timezone ConverterGET
  • GeoDB CountriesGET
  • GeoDB Country DetailsGET
  • GeoDB RegionsGET
  • GeoDB SubregionsGET
  • GeoDB Admin LevelsGET
  • GeoDB Admin UnitsGET
  • GeoDB Admin Units DetailsGET
  • GeoDB CitiesGET
  • Zip Code LookupGET
  • ZIP Code Search CityGET
  • ZIP Code Search RegionGET
  • ZIP Code Search RadiusGET
  • ZIP Code DistancePOST
  • ZIP Code Distance MatchPOST
  • ZIP Code Bulk LookupPOST
  • Live WeatherGET
  • Weather ForecastGET
  • Bulk Live WeatherPOST
  • User Agent ParserGET
  • Bulk User Agent ParserPOST
  • Astronomy APIGET

Ready to get started?

Sign Up for Free

APIFreaks

API Catalog

  • Geolocation APIs
  • WHOIS APIs
  • DNS APIs
  • Email Validation APIs
  • SSL APIs
  • Domain APIs
  • Screenshot APIs
  • Currency APIs
  • Commodity APIs
  • Timezone APIs
  • Zipcode APIs
  • Weather APIs
  • User Agent APIs
  • Other APIs

Tools Catalog

  • Code Formatters
  • Data & Query Tools
  • Text Tools
  • Email Utilities
  • DNS Tools
  • Viewers
  • Converters
  • PDF Tools

Docs

  • APIs
  • Swagger Docs

Pricing & Accounts

  • Pricing
  • Sign up
  • Sign In

Company

  • About Us
  • Resources
  • Terms
  • Privacy

Copyright © 2025

Made in Pakistan

Live Weather API

GET

https://api.apifreaks.com/v1.0/weather/current

format
Format of the Response
locationstring
Location to get weather for. Accepts a city name, place, or full address.
latfloat
Latitude coordinate of the location.
longfloat
Longitude coordinate of the location.
ipstring
IPv4 or IPv6 address to infer the user's location automatically.
timezonestring
Specifies the timezone in which the weather results should be returned.
Media Type
JSON
Body

API Keystringrequired
Your private API key. Get it from API Freaks dashboard.

Sample Responses

400
400
400
400
LANGUAGE
Python
PHP
Java
Node
Ruby
JavaScript
C#
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
locationObjectMandatory
Resolved location metadata.
currentObjectMandatory
Live weather details.

"location" (when coordinates Provided) object contains the following fields

FieldTypeRequirementDescription
latitudefloatMandatory
Geographic latitude of the given Coordinates
longitudefloatMandatory
Geographic longitude of the given Coordinates
country_namestringMandatory
Country name by Coordinates
state_provstringMandatory
State or province of given Coordinates
citystringMandatory
City of the given Coordinates
localitystringOptional
Local area, neighborhood, or village name
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier (e.g., GMT, PST, etc.)
timezone_abbreviationstringMandatory
Abbreviation of timezone (e.g., GMT, IST, etc.)

"location" (when IP Provided) object contains the following fields

FieldTypeRequirementDescription
continent_codestringMandatory
Two-letter code of the continent
continent_namestringMandatory
Full name of the continent
country_code2stringMandatory
Two-letter ISO country code
country_code3stringMandatory
Three-letter ISO country code
country_namestringMandatory
Country name of the location
country_name_officialstringMandatory
Official long-form country name
is_eubooleanOptional
Indicates if the country is part of the European Union
state_provstringMandatory
State or province of the location
state_codestringOptional
ISO code for the state or province
districtstringOptional
District or administrative division
citystringMandatory
City of the location
zipcodestringOptional
Postal or ZIP code
latitudefloatMandatory
Geographic latitude of the location
longitudefloatMandatory
Geographic longitude of the location
localitystringOptional
Local area or neighborhood
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier
timezone_abbreviationstringMandatory
Abbreviation of timezone

"location" (when location Provided) object contains the following fields

FieldTypeRequirementDescription
location_stringstringMandatory
Full address or free-text location input
country_namestringMandatory
Country name of the location
state_provstringMandatory
State or province of the location
citystringMandatory
City of the location
localitystringOptional
Local area, neighborhood, or village name
latitudefloatMandatory
Geographic latitude of the location
longitudefloatMandatory
Geographic longitude of the location
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier
timezone_abbreviationstringMandatory
Abbreviation of timezone

"current" Object contains the following fields

FieldTypeRequirementDescription
timestampstringMandatory
ISO 8601 formatted timestamp of the weather observation
temperature_2mfloatMandatory
Current air temperature measured at 2 meters above ground (°C)
relative_humidity_2mfloatMandatory
Current relative humidity at 2 meters above ground (%)
apparent_temperaturefloatOptional
Apparent temperature (°C)
snowfallfloatOptional
Snowfall amount (cm)
rainfloatOptional
Rainfall amount (mm)
showersfloatOptional
Shower precipitation (mm)
precipitationfloatOptional
Total precipitation (mm)
weather_codeintegerMandatory
weather condition code
cloud_coverfloatOptional
Percentage of sky covered by clouds (%)
pressure_mslfloatOptional
Atmospheric pressure at mean sea level (hPa)
surface_pressurefloatOptional
Atmospheric pressure at surface level (hPa)
wind_speed_10mfloatOptional
Wind speed measured at 10 meters above ground (km/h)
wind_direction_10mintegerOptional
Wind direction (°)
wind_gusts_10mfloatOptional
Maximum wind gust speed at 10 meters (km/h)
astronomyObjectMandatory
Astronomical info for the current date.
air_qualityObjectMandatory
Air quality and AQI data.

"current.astronomy" object contains the following fields

FieldTypeRequirementDescription
datestringMandatory
Calendar date of astronomical data (YYYY-MM-DD)
mid_nightstringOptional
Time of true midnight (HH:MM)
night_endstringOptional
Time when astronomical twilight ends, marking dawn beginning (HH:MM)
sunrisestringMandatory
Time when Sun becomes visible above horizon (HH:MM)
solar_noonstringOptional
Time when Sun reaches highest point in the sky (HH:MM)
sunsetstringMandatory
Time when Sun disappears below horizon (HH:MM)
night_beginstringOptional
Time when astronomical twilight begins, marking night start (HH:MM)
day_lengthstringOptional
Total daylight duration (HH:MM)
sun_statusstringOptional
Current Sun position ("above_horizon", "below_horizon", or "-")
moon_phasestringOptional
Current Moon phase (e.g., NEW_MOON, WAXING_CRESCENT, FULL_MOON, etc.)
moonrisestringOptional
Time when Moon becomes visible above horizon (HH:MM)
moonsetstringOptional
Time when Moon disappears below horizon (HH:MM)
moon_statusstringOptional
Current Moon visibility ("visible", "not_visible", or "-")

"current.air_quality" object contains the following fields

FieldTypeRequirementDescription
timestampstringMandatory
ISO 8601 formatted timestamp of the AQI observation
european_aqiintegerMandatory
European Air Quality Index (AQI) calculated for different particulate matter and gases individually. The consolidated european_aqi returns the maximum of all individual indices. Ranges from 0–20 (good), 20–40 (fair), 40–60 (moderate), 60–80 (poor), 80–100 (very poor), and exceeds 100 for extremely poor conditions.
us_aqiintegerMandatory
United States Air Quality Index (AQI) calculated for different particulate matter and gases individually. The consolidated us_aqi returns the maximum of all individual indices. Ranges from 0–50 (good), 51–100 (moderate), 101–150 (unhealthy for sensitive groups), 151–200 (unhealthy), 201–300 (very unhealthy), and 301–500 (hazardous).
pm10floatMandatory
Concentration of particulate matter <10 micrometers (10 meters above ground) in μg/m³
pm2_5floatMandatory
Concentration of particulate matter <2.5 micrometers (10 meters above ground) in μg/m³
carbon_monoxidefloatOptional
Concentration of carbon monoxide in the air (10 meters above ground) in μg/m³
nitrogen_dioxidefloatOptional
Concentration of nitrogen dioxide in the air (10 meters above ground) in μg/m³
sulphur_dioxidefloatOptional
Concentration of sulphur dioxide in the air (10 meters above ground) in μg/m³
ozonefloatOptional
Concentration of ozone in the air (10 meters above ground) in μg/m³
dustfloatOptional
Concentration of dust particles in the air (10 meters above ground) in μg/m³
uv_indexfloatOptional
Ultraviolet radiation index under current sky conditions (dimensionless)
aerosol_optical_depthfloatOptional
Aerosol optical depth at 550 nm of the entire atmosphere to indicate haze (dimensionless)
uv_index_clear_skyfloatOptional
Ultraviolet radiation index under clear sky conditions (dimensionless)