{"id":45190290,"url":"https://github.com/emergentmethods/asknews-python-sdk","last_synced_at":"2026-04-30T00:01:17.271Z","repository":{"id":239296879,"uuid":"799137221","full_name":"emergentmethods/asknews-python-sdk","owner":"emergentmethods","description":"Infusing news into any LLM with a single line of code","archived":false,"fork":false,"pushed_at":"2026-04-28T13:44:36.000Z","size":1144,"stargazers_count":9,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-28T15:30:41.077Z","etag":null,"topics":["llm","news","newsapi","nlp","rag"],"latest_commit_sha":null,"homepage":"https://docs.asknews.app","language":"Python","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/emergentmethods.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-11T09:23:01.000Z","updated_at":"2026-04-28T13:48:15.000Z","dependencies_parsed_at":"2024-07-24T00:17:45.516Z","dependency_job_id":"059955bf-dba4-409a-89cd-9581b40805a9","html_url":"https://github.com/emergentmethods/asknews-python-sdk","commit_stats":null,"previous_names":["emergentmethods/asknews-python-sdk"],"tags_count":158,"template":false,"template_full_name":null,"purl":"pkg:github/emergentmethods/asknews-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emergentmethods%2Fasknews-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emergentmethods%2Fasknews-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emergentmethods%2Fasknews-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emergentmethods%2Fasknews-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emergentmethods","download_url":"https://codeload.github.com/emergentmethods/asknews-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emergentmethods%2Fasknews-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["llm","news","newsapi","nlp","rag"],"created_at":"2026-02-20T12:02:07.638Z","updated_at":"2026-04-30T00:01:17.252Z","avatar_url":"https://github.com/emergentmethods.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AskNews Python SDK\n\n![Static Badge](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue?style=flat-square)\n\n\nPython SDK for the AskNews API.\n\n## Installation\n\n```bash\npip install asknews\n```\n\n## Usage\n\n```python\nfrom asknews_sdk import AskNewsSDK\n\nask = AskNewsSDK(\n    api_key=\"\u003cYOUR API KEY\u003e\"\n    scopes=[\"news\", \"chat\", \"stories\", \"analytics\"]\n)\n\nquery = \"Effect of fed policy on tech sector\"\n\n# prompt-optimized string ready to go for any LLM:\nnews_context = ask.news.search_news(query).as_string\n```\n\nAnd you will have a prompt-optimized string ready to go for any LLM. The API doesn't stop there, explore a wide range of endpoints:\n\n- /stories, high level event tracking and state of the art article clustering\n- /forecasts, industry leading forecasting on any real-time event\n- /analytics, time-series data on finance and politics\n- /deepnews, a deep research agent that can explore the new knowledge graph, X, Reddit, Google, Wikipedia and more to build forecasts, reports, analytics, and anything else your system may need.\n- /graph, build any news knowledge graph imaginable from the largest news graph on the planet\n- /websearch, search the web and get back an LLM distillation of all the relevant web pages\n\nFind full details at the [AskNews API documentation](https://docs.asknews.app).\n\n## Support\n\nJoin our [Discord](https://discord.gg/2Yw66XXEhY) to see what other people are building, and to get support with your projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femergentmethods%2Fasknews-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femergentmethods%2Fasknews-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femergentmethods%2Fasknews-python-sdk/lists"}