{"id":19433080,"url":"https://github.com/pariazar/weathers-watch","last_synced_at":"2026-02-09T23:03:43.448Z","repository":{"id":65293309,"uuid":"589347959","full_name":"pariazar/weathers-watch","owner":"pariazar","description":"A stable and free API to get weather forecast worldwide.","archived":false,"fork":false,"pushed_at":"2023-06-28T19:06:38.000Z","size":43,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T00:15:20.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pariazar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-15T21:43:39.000Z","updated_at":"2023-11-22T20:11:45.000Z","dependencies_parsed_at":"2023-02-10T02:15:16.945Z","dependency_job_id":null,"html_url":"https://github.com/pariazar/weathers-watch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pariazar%2Fweathers-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pariazar%2Fweathers-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pariazar%2Fweathers-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pariazar%2Fweathers-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pariazar","download_url":"https://codeload.github.com/pariazar/weathers-watch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223967472,"owners_count":17233403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T14:38:26.784Z","updated_at":"2026-02-09T23:03:41.038Z","avatar_url":"https://github.com/pariazar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weathers-watch\n[![npm](https://img.shields.io/npm/v/weathers-watch.svg?style=flat-square)](https://www.npmjs.com/package/weathers-watch)\n![building workflow](https://github.com/hamedpa/weathers-watch/actions/workflows/nodejs.yml/badge.svg)\n[![license](https://img.shields.io/npm/l/@vitalets/google-translate-api.svg)](https://www.npmjs.com/package/weathers-watch)\n![alt text](./img/logo.png?raw=true)\n\n\nA stable and free API to get weather forecast worldwide.\n\n## Features\n\n* unlimited request\n* don't require any API key\n* service  available more than 10 years\n* fetch fresh data\n\n## Installation\nInstall via NPM:\n\n```bash\nnpm install weathers-watch\n```\n\n## Usage\n\nfirst parameter is city: string\nsecond parameter is country: string\nfetch weather data by following:\n\n#### javascript\n\n```javascript\n\nvar { getWeather } = require(\"weathers-watch\");\n\nvar weatherResult = await getWeather('london', 'united kingdom');\nconsole.log(weatherResult);\n```\n\n#### TypeScript\n\n```typescript\n\nimport { getWeather } from 'weathers-watch';\n\nvar weatherResult = await getWeather('london', 'united kingdom');\nconsole.log(weatherResult);\n```\n\n#### Result \n```javascript\n{\n  location: 'London',\n  locationDetail: 'England, United Kingdom',\n  currentWeather: {\n    temperature: '4°C',\n    dewPoint: '2°C',\n    barometer: '98.4 kPa',\n    wind: 'NNW 15 km/h',\n    humidity: '86.8 %',\n    visibility: 'n/a',\n    time: 'Updated Jan 16, 2023 08:50 AM'\n  },\n  forecastSummary: [\n    {\n      day: 'Today',\n      date: 'Jan 16th',\n      result: 'Mostly Cloudy',\n      min: '3°C',\n      max: undefined\n    },\n    {\n      day: 'Tuesday',\n      date: 'Jan 17th',\n      result: 'Mostly Sunny',\n      min: '1°C',\n      max: '-2°C'\n    },\n    {\n      day: 'Wednesday',\n      date: 'Jan 18th',\n      result: 'Mostly Cloudy',\n      min: '3°C',\n      max: '-2°C'\n    },\n    {\n      day: 'Thursday',\n      date: 'Jan 19th',\n      result: 'Mix of Cloud and Sun',\n      min: '2°C',\n      max: '1°C'\n    },\n    {\n      day: 'Friday',\n      date: 'Jan 20th',\n      result: 'Mix of Cloud and Sun',\n      min: '3°C',\n      max: '-2°C'\n    }\n  ],\n  forecastDetails: [\n    {\n      date: 'Monday, January 16th, 2023',\n      results: [\n        {\n          time: 'Monday Morning',\n          forecast: 'Cloudy with a few showers or wet flurries. 4 to 9 mm of rain. Windy at times.',\n          temperature: '2°C'\n        },\n        {\n          time: 'Monday Afternoon',\n          forecast: 'Cloudy with a slight chance of showers. Showers possibly mixed with wet flurries. Windy at times.',\n          temperature: '3°C'\n        },\n        {\n          time: 'Monday Evening',\n          forecast: 'Cloudy with clear periods. Windy at times.',\n          temperature: '1°C'\n        }\n      ]\n    },\n    {\n      date: 'Tuesday, January 17th, 2023',\n      results: [\n        {\n          time: 'Overnight',\n          forecast: 'Clear with cloudy periods.',\n          temperature: undefined\n        },\n        {\n          time: 'Tuesday Morning',\n          forecast: 'Cloudy.',\n          temperature: '-1°C'\n        },\n        {\n          time: 'Tuesday Afternoon',\n          forecast: 'A mix of cloud and sun.',\n          temperature: '1°C'\n        },\n        {\n          time: 'Tuesday Evening',\n          forecast: 'Clear with cloudy periods.',\n          temperature: '-2°C'\n        }\n      ]\n    },\n    {\n      date: 'Wednesday, January 18th, 2023',\n      results: [\n        {\n          time: 'Overnight',\n          forecast: 'Mostly clear.',\n          temperature: undefined\n        },\n        {\n          time: 'Wednesday Morning',\n          forecast: 'Cloudy with sunny periods with a slight chance of flurries. Windy at times.',\n          temperature: '0°C'\n        },\n        {\n          time: 'Wednesday Afternoon',\n          forecast: 'Cloudy with sunny periods with a slight chance of showers. Showers possibly mixed with wet flurries. Windy at times.',\n          temperature: '3°C'\n        },\n        {\n          time: 'Wednesday Evening',\n          forecast: 'Cloudy with clear periods with a slight chance of flurries or showers. Windy.',\n          temperature: '1°C'\n        }\n      ]\n    },\n    {\n      date: 'Thursday, January 19th, 2023',\n      results: [\n        {\n          time: 'Overnight',\n          forecast: 'Cloudy with clear periods. Windy.',\n          temperature: undefined\n        },\n        {\n          time: 'Thursday Morning',\n          forecast: 'Sunny with cloudy periods. Windy.',\n          temperature: '1°C'\n        },\n        {\n          time: 'Thursday Afternoon',\n          forecast: 'A mix of cloud and sun. Windy at times.',\n          temperature: '2°C'\n        },\n        {\n          time: 'Thursday Evening',\n          forecast: 'A mix of cloudy and clear skies. Windy at times.',\n          temperature: '1°C'\n        }\n      ]\n    },\n    {\n      date: 'Friday, January 20th, 2023',\n      results: [\n        {\n          time: 'Overnight',\n          forecast: 'Clear.',\n          temperature: undefined\n        },\n        {\n          time: 'Friday Morning',\n          forecast: 'Sunny.',\n          temperature: '1°C'\n        },\n        {\n          time: 'Friday Afternoon',\n          forecast: 'Sunny.',\n          temperature: '3°C'\n        },\n        {\n          time: 'Friday Evening',\n          forecast: 'A mix of cloudy and clear skies.',\n          temperature: '-0°C'\n        }\n      ]\n    },\n    {\n      date: 'Saturday, January 21st, 2023',\n      results: [\n        {\n          time: 'Overnight',\n          forecast: 'Cloudy.',\n          temperature: undefined\n        },\n        {\n          time: 'Saturday Morning',\n          forecast: 'Cloudy with a slight chance of showers. Windy at times.',\n          temperature: '3°C'\n        },\n        {\n          time: 'Saturday Afternoon',\n          forecast: 'Cloudy with a chance of showers. Showers possibly mixed with wet flurries. 1 to 3 mm of rain. Windy at times.',\n          temperature: '4°C'\n        },\n        {\n          time: 'Saturday Evening',\n          forecast: 'Cloudy with a chance of showers. 1 to 3 mm of rain. Windy at times.',\n          temperature: '3°C'\n        }\n      ]\n    },\n    {\n      date: 'Sunday, January 22nd, 2023',\n      results: [\n        {\n          time: 'Overnight',\n          forecast: 'Cloudy with a slight chance of showers. Windy at times.',\n          temperature: undefined\n        },\n        {\n          time: 'Sunday Morning',\n          forecast: 'Cloudy with sunny periods.',\n          temperature: '4°C'\n        }\n      ]\n    }\n  ]\n}\n```\n\n## Support\n  - [Bug Reports](https://github.com/hamedpa/weathers-watch/issues/)\n\n## Contributors\n\u003cp\u003e\nPull requests are always welcome! Please base pull requests against the main branch and follow the contributing guide.\n\nif your pull requests makes documentation changes, please update readme file.\n\u003c/p\u003e\n\n## License\n\nThis project is licensed under the terms of the\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpariazar%2Fweathers-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpariazar%2Fweathers-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpariazar%2Fweathers-watch/lists"}