Skip to main content

lfx-webz

Search global news with Webz.io inside Langflow.

Webz.io News Search covers news from the last 30 days. Ask in plain language and get article titles, URLs, publish dates, source metadata, and the excerpt that matched.

This package is a Langflow Extension. Langflow discovers it at startup. Webz.io maintains it separately from Langflow core.

Install

pip install lfx-webz

Langflow must already be installed (pip install langflow). Restart Langflow after installing the extension. The Webz.io News Search component appears under the Webz.io bundle.

export WEBZ_API_TOKEN="your-webz-api-token"
langflow run

Get a token from your Webz.io dashboard. The same token is used by the News Search API.

You can leave the component's Webz API Key input empty when WEBZ_API_TOKEN is set in the environment Langflow runs in. Otherwise paste the token into that secret field. The token is not hardcoded.

Use it in a flow

  1. Add Webz.io News Search to the canvas.
  2. Set Query to a natural-language question, for example recent developments on EU AI regulation.
  3. Set Number of results. Optional filters (advanced): days, language, country, site/domain, sentiment, and category.
  4. Connect Data or DataFrame to the next component.

Days is a shortcut. The API has no days field. A value greater than 0 is sent as filters.published_from (UTC date of today minus that many days). 0 leaves the date filter off, which uses the API's 30-day window. Coverage does not go further back than 30 days.

To let an Agent call the search, either:

  • Connect the component's Tools output to the Agent, or
  • Enable tool mode on the component. Query and the filters are tool-mode inputs.

Direct call

import os

from components.lfx_webz.webz_news_search import WebzNewsSearchComponent

component = WebzNewsSearchComponent()
component.api_key = os.environ["WEBZ_API_TOKEN"]
component.query = "recent developments on EU AI regulation"
component.k = 5
component.days = 7
component.language = "english"

for item in component.fetch_content():
    print(item.data["title"], item.data["url"])

Filters

Input API field
Number of results k
Days filters.published_from (derived; days is not sent)
Language filters.language
Country filters.country
Site / domain filters.domain
Sentiment filters.sentiment (positive, negative, neutral)
Category filters.category (one of the 17 article categories)

Full request reference: News Search API.

Develop

From this directory, with lfx installed:

lfx extension validate .
pytest

lfx extension dev . starts a Langflow server with this extension loaded.

Metadata

Release files for lfx-webz 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lfx-webz 0.1.0
File Size Uploaded Provenance Actions
lfx_webz-0.1.0.tar.gz 12.6 kB Without provenance Details for lfx_webz-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lfx-webz 0.1.0
File Interpreter ABI Platform Actions
lfx_webz-0.1.0-py3-none-any.whl Python 3 none any Details for lfx_webz-0.1.0-py3-none-any.whl

Total release size: 21.8 kB

Release files / lfx_webz-0.1.0.tar.gz

Download URL lfx_webz-0.1.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1fd5300f96c1063b70f886d7c5836a5aa2f1c66a47a9950bc88087d206714967
BLAKE2b-256 checksum
How to use checksums
4ccffc0054144df71e067ba7262b74d14058d580e2569b9b51a65d4055ece8e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / lfx_webz-0.1.0-py3-none-any.whl

Download URL lfx_webz-0.1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c2b58894702630e97022ced53ad13af74bfd274a57fd9d29e5d10740153b976
BLAKE2b-256 checksum
How to use checksums
bdf286d421eb1f99efa4772618d279868fea9c822a48d848066a47e21f64c4da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Security for lfx-webz 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page