{"id":20668653,"url":"https://github.com/ournet/news-sources","last_synced_at":"2025-07-11T17:38:15.848Z","repository":{"id":32796518,"uuid":"142615219","full_name":"ournet/news-sources","owner":"ournet","description":"A repository of news sources for every country","archived":false,"fork":false,"pushed_at":"2023-09-20T12:31:14.000Z","size":771,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T05:19:02.809Z","etag":null,"topics":["data","news","news-sources","sources"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ournet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-27T19:16:42.000Z","updated_at":"2023-10-07T13:21:58.000Z","dependencies_parsed_at":"2023-02-18T16:01:07.822Z","dependency_job_id":null,"html_url":"https://github.com/ournet/news-sources","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ournet/news-sources","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ournet%2Fnews-sources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ournet%2Fnews-sources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ournet%2Fnews-sources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ournet%2Fnews-sources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ournet","download_url":"https://codeload.github.com/ournet/news-sources/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ournet%2Fnews-sources/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264863396,"owners_count":23675151,"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":["data","news","news-sources","sources"],"created_at":"2024-11-16T20:10:36.452Z","updated_at":"2025-07-11T17:38:15.830Z","avatar_url":"https://github.com/ournet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# news-sources\n\nA repository of news sources for every country. Data is stored in JSON files.\n\n## Node.js usage\n\n```ts\nimport { getSources, getSource } from 'news-sources';\nconst sources = await getSources('ru'); // Russian sources\nconst source = await getSource('ru', 'vesti.ru');\n```\n\n## Node.js API\n\n### readSources(countryCode: string): Promise\u003cNewsSource[]\u003e\n\nReads news sources from a JSON file by `countryCode` (2 letters country code).\nData is not cached.\n\n### getSources(countryCode: string): Promise\u003cNewsSource[]\u003e\n\nGets news sources from a JSON file by `countryCode` (2 letters country code).\nData is cached.\n\n## Current countries\n\n- `md` - Moldova\n- `ro` - Romania\n- `ru` - Russia\n- `bg` - Bulgaria\n- `in` - India\n- `it` - Italy\n- `hu` - Hungary\n- `cz` - Czech Republic\n- `es` - Spain\n\n## Contributing\n\nFiles you can contribute are in `data/sources` directory.\nEach file contains news sources for a single country.\n\nYou can add a new file or update existing ones.\n\nBefore commiting run `yarn validate` or `npm run validate` to validate the data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fournet%2Fnews-sources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fournet%2Fnews-sources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fournet%2Fnews-sources/lists"}