{"schemaVersion":1,"resourceType":"connector","slug":"news","name":"News","catalog":"news","description":"Search worldwide news articles from SQL via GDELT (free) or NewsAPI (with a key)","language":"Python","categories":["web"],"repository":"https://github.com/Query-farm/vgi-news","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T18:30:55Z","url":"https://github.com/Query-farm/vgi-news/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/news/","llms":"https://query.farm/products/orchard/connectors/news/llms.txt","markdown":"https://query.farm/products/orchard/connectors/news/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/news.json","objects":"https://query.farm/products/orchard/api/v1/connectors/news/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=news&q={query}"},"authentication":{"mode":"optional","guidance":"The default GDELT provider needs no key; a NewsAPI key adds that provider.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[{"type":"newsapi","description":"Optional NewsAPI.org key, needed only for news_search(..., provider := 'newsapi'); the default GDELT provider is keyless.","documentation":"https://newsapi.org/register","parameters":[{"name":"api_key","type":"VARCHAR","required":false,"redact":true,"description":"NewsAPI.org API key, shown on your account page after registering at newsapi.org."}],"requiredBy":[],"createSql":"CREATE SECRET newsapi (\n    TYPE newsapi,\n    api_key '<NEWSAPI_API_KEY>'  -- secret\n);"}]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'news' AS news (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-news@v0.5.0 vgi-news-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'news' AS news (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-news:0.5.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'news' AS news (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-news@v0.5.0 vgi-news-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'news' AS news (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-news:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-news","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=news","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'news' AS news (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-news@v0.5.0 vgi-news-worker'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Find recent headlines about a topic","sql":"SELECT title, url, domain, seendate FROM news.main.news_search('climate summit', count := 10)","requiresCredentials":null,"note":null,"objects":[{"name":"news.main.news_search","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/news/#obj-main-news_search","markdown":"https://query.farm/products/orchard/connectors/news/objects/table_function.bWFpbg.bmV3c19zZWFyY2g.md","json":"https://query.farm/products/orchard/api/v1/connectors/news/objects/table_function.bWFpbg.bmV3c19zZWFyY2g.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:16:30+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["title","url","domain","seendate"],"types":["VARCHAR","VARCHAR","VARCHAR","TIMESTAMP WITH TIME ZONE"],"rows":[["Джон Миршаймер , Джеффри Сакс и Чжэн Юннянь о встрече Си , Трампа и Путина ( So…","https://inosmi.ru/20261201/mirshaymer-281480863.html","inosmi.ru","2026-12-01T04:30:00+00:00"],["COP31 and the end of the global sustainability consensus","https://www.freemalaysiatoday.com/category/opinion/2026/12/01/cop31-and-the-end…","freemalaysiatoday.com","2026-12-01T04:30:00+00:00"],["粤车闯世界 ： 从产品出海到跨国建链","https://news.southcn.com/node_457bd632a7/157a407388.shtml","news.southcn.com","2026-12-01T04:30:00+00:00"],["Beyond a billion trees : ASEAN post - Manila reckoning - Academia","http://www.thejakartapost.com/opinion/2026/12/01/beyond-a-billion-trees-aseans-…","thejakartapost.com","2026-12-01T04:30:00+00:00"],["Trump administration issues new warning to US companies about risks in China","https://www.koaa.com/politics/foreign-policy/trump-administration-issues-new-wa…","koaa.com","2026-12-01T03:30:00+00:00"]],"more":true}},"artifact":null},"objects":{"total":2,"index":"https://query.farm/products/orchard/api/v1/connectors/news/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=news&q={query}"},"agentTasks":["List every news provider this worker supports and whether each one requires an API key.","How many news providers can I search?","Which news providers can I use for free, without supplying an API key?","Search recent worldwide news coverage of 'climate' with the default provider and confirm at least one article comes back."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-news","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":1,"passed":1,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-news@v0.5.0 vgi-news-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:14:58+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}