{"id":22073375,"url":"https://github.com/developerpaaji/googlenewsapi","last_synced_at":"2025-07-24T11:31:15.080Z","repository":{"id":57252470,"uuid":"168149875","full_name":"developerpaaji/GoogleNewsApi","owner":"developerpaaji","description":"REST Api which will give news of different categories from any location  and also related news","archived":false,"fork":false,"pushed_at":"2019-01-31T18:54:08.000Z","size":19,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T03:43:14.209Z","etag":null,"topics":["google","google-news","google-news-api","nodejs-module"],"latest_commit_sha":null,"homepage":"https://news-20e36.firebaseio.com/.json","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/developerpaaji.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":"2019-01-29T12:18:46.000Z","updated_at":"2024-11-16T13:17:15.000Z","dependencies_parsed_at":"2022-08-31T22:20:48.384Z","dependency_job_id":null,"html_url":"https://github.com/developerpaaji/GoogleNewsApi","commit_stats":null,"previous_names":["singhbhavneet/googlenewsapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerpaaji%2FGoogleNewsApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerpaaji%2FGoogleNewsApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerpaaji%2FGoogleNewsApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerpaaji%2FGoogleNewsApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developerpaaji","download_url":"https://codeload.github.com/developerpaaji/GoogleNewsApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227432623,"owners_count":17775953,"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":["google","google-news","google-news-api","nodejs-module"],"created_at":"2024-11-30T21:18:23.497Z","updated_at":"2024-11-30T21:18:24.122Z","avatar_url":"https://github.com/developerpaaji.png","language":"JavaScript","readme":"# GoogleNewsApi\nA REST api which will give all news from any location of different categories and also related news\n\n### Firebase Api Usage\nCurrently only following countries are supported :-\n['IN','US','AU','CA','CN','FR','JP','PK','RU','UK']\n\nCategories are Business, Entertainment, Health, Science, Sports, World and Techology.\n\nFirebase api - https://news-20e36.firebaseio.com/.json\n\nUse as https://news-20e36.firebaseio.com/:countryCode/:category.json\n\nSample\nhttps://news-20e36.firebaseio.com/US.json\n\nhttps://news-20e36.firebaseio.com/US/Business.json\n\n### Installation \n```\nnpm i googlenewsapi\n\n```\n### Sample\n\n```\nNews {\n  title: 'Watch SpaceX get very close to catching its rocket’s nose cone during a test',\n  description: 'SpaceX is getting excruciatingly close to catching a part of its rocket that falls out of the sky after each launch. A new video shows a recent drop test of the ...',\n  thumbnail: 'https://lh3.googleusercontent.com/NKOw3Vvids-nNCfx1vmll-wR88AvTqnRK3vakt4XhxhtYzgWlurhPEOWY-lq413YTava0bMKdwIKrxQvRjQ=pf-w200-h200',\n  publisher: 'The Verge',\n  publishedAt: 1548865689,\n  category: 'Science',\n  url: 'https://news.google.com/articles/CAIiEGxY4QfBKcLIDNpvJ1mDS2AqFggEKg4IACoGCAow3O8nMMqOBjD38Ak?hl=en-US\u0026gl=US\u0026ceid=US%3Aen',\n  related:\n   [ News {\n       title: 'Watch SpaceX rocket\\'s nose cone miss the boat, again',\n       description: 'A ship named Mr. Steven keeps trying to catch the thing.',\n       thumbnail: '',\n       publisher: 'CNET',\n       publishedAt: 1548870300,\n       category: 'Science',\n       url: 'https://news.google.com/articles/CAIiECurGhHT3ziGtrQLkWIu6OIqEwgEKgwIACoFCAow4GowoAgwkRo?hl=en-US\u0026gl=US\u0026ceid=US%3Aen',\n       related: [] \n       }\n   ] \n}\n\n```\n### Usage \n```\nvar googleNewsApi=require('googlenewsapi');\n// Initialize with storeFunction,country code.\ngoogleNewsApi.initialize(storeFunction);\ngoogleNewsApi.addCountryCode(code);\nsetInterval(googleNewsApi.refresh,1000*60*60);\n\n//Search \ngoogleNewsApi.search('Modi','IN').then((results)=\u003e{\n   \n})\n```\n\n### Built With\n\nFollowing is list of  libraries used in app.\n1) async\n2) cheerio\n5) request\n\n\n## Authors\n\n* **Bhavneet Singh**  - [singhbhavneet](https://github.com/singhbhavneet)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\nIts because of my mummy's motivation,god's blessing and family'support that I am able to complete this project.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperpaaji%2Fgooglenewsapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperpaaji%2Fgooglenewsapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperpaaji%2Fgooglenewsapi/lists"}