weatherapi-com

weatherapi-com

4.0

WeatherAPI.com MCP Server provides tools for accessing weather and geolocation data.

realtime_weather_api

Current weather or realtime weather API method allows a user to get up to date current weather information in json and xml. The data is returned as a Current Object.

Try it

Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

      Result:

      forecast_weather_api

      Forecast weather API method returns upto next 14 day weather forecast and weather alert as json. It contains astronomy data, day weather forecast and hourly interval weather information for a given city.

      Try it

      Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

        Number of days of forecast required. Default: 3

        Returns 'condition:text' field in API in the desired language

          If passing 'dt', it should be between today and next 10 day in yyyy-MM-dd format.

            Result:

            history_weather_api

            History weather API method returns historical weather for a date on or after 1st Jan, 2010 (depending upon subscription level) as json.

            Try it

            Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

              For history API 'dt' should be on or after 1st Jan, 2010 in yyyy-MM-dd format

                Returns 'condition:text' field in API in the desired language

                  Restricting history output to a specific hour in a given day. Default: 0

                  Restrict date output for History API method. Should be on or after 1st Jan, 2010. Make sure end_dt is equal to or greater than 'dt'.

                    Result:

                    marine_weather_api

                    Marine weather API returns upto next 7 day marine and sailing weather forecast and tide data for global marine/sea points.

                    Try it

                    Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

                      Default: 1

                          Result:

                          future_weather_api

                          Future weather API method returns weather in a 3 hourly interval in future for a date between 14 days and 300 days from today in the future.

                          Try it

                          Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

                            'dt' should be between 14 days and 300 days from today in the future in yyyy-MM-dd format (i.e. dt=2023-01-01)

                              Returns 'condition:text' field in API in the desired language

                                  Result:

                                  search_autocomplete_api

                                  Search or Autocomplete API returns matching cities and towns.

                                  Try it

                                  Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

                                      Result:

                                      time_zone_api

                                      Time Zone API method allows a user to get up to date time zone and local time information in json.

                                      Try it

                                      Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

                                          Result:

                                          iplookup_api

                                          IP Lookup API method allows a user to get up to date information for an IP address in json.

                                          Try it

                                          e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

                                              Result:

                                              astronomy_api

                                              Astronomy API method allows a user to get up to date information for sunrise, sunset, moonrise, moonset, moon phase and illumination in json.

                                              Try it

                                              Query parameter based on which data is sent back. It could be following: Latitude and Longitude (Decimal degree) e.g: q=48.8567,2.3508 city name e.g.: q=Paris US zip e.g.: q=10001 UK postcode e.g: q=SW1 Canada postal code e.g: q=G2J metar: e.g: q=metar:EGLL iata:<3 digit airport code> e.g: q=iata:DXB auto:ip IP lookup e.g: q=auto:ip IP address (IPv4 and IPv6 supported) e.g: q=100.0.0.1

                                                Date

                                                  Result:

                                                  sports_api

                                                  Sports API method allows a user to get listing of all upcoming sports events for football, cricket and golf in json.

                                                  Try it

                                                      Result:

                                                      alerts_api

                                                      Alerts API returns alerts and warnings issued by government agencies (USA, UK, Europe and Rest of the World) as an array if available for the location provided.

                                                      Try it

                                                          Result: