Skip to main content

langchain-webmetadata-extractor

LangChain tools for the Web Metadata, OpenGraph & Contact Extractor API — give an agent the ability to turn any URL into structured web intelligence, clean Markdown for RAG, contact signals for lead-gen, or a graded SEO audit.

pip install langchain-webmetadata-extractor

Quick start

Get a free API key on RapidAPI (1,000 requests/month, no credit card required).

from langchain_webmetadata_extractor import get_tools

tools = get_tools(api_key="YOUR_RAPIDAPI_KEY")
# or leave api_key out and set the WEBMETADATA_API_KEY environment variable instead

agent = create_react_agent(llm, tools)  # or bind_tools(tools), or any LangGraph node

You can also import and use tools individually:

from langchain_webmetadata_extractor import WebMarkdownTool

reader = WebMarkdownTool(api_key="YOUR_RAPIDAPI_KEY")
print(reader.run("https://example.com"))

Tools included

Tool Use it when the agent needs to...
WebMetadataExtractTool Get a broad, all-in-one picture of a page (SEO, contacts, tech stack, security, links)
WebMarkdownTool Ingest a page's actual content into a RAG pipeline as clean Markdown
WebContactsTool Find public emails/phones/social links for outreach or lead-gen workflows
WebSEOAuditTool Grade a page's SEO with a score, warnings, and readability metrics

Every tool supports both sync (.run() / ._run()) and async (.arun() / ._arun()) execution, and returns a JSON string — API errors come back as {"error": true, "status_code": ..., "detail": ...} instead of raising, so an agent loop can react to them without crashing.

Configuration

Pass api_key explicitly per tool, or set it once via the WEBMETADATA_API_KEY environment variable and omit it everywhere:

export WEBMETADATA_API_KEY=your-rapidapi-key

License

MIT

Metadata

Release files for langchain-webmetadata-extractor 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 langchain-webmetadata-extractor 0.1.0
File Size Uploaded
langchain_webmetadata_extractor-0.1.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-webmetadata-extractor 0.1.0
File Interpreter ABI Platform
langchain_webmetadata_extractor-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / langchain_webmetadata_extractor-0.1.0.tar.gz

Download URL langchain_webmetadata_extractor-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e8363c64f27894c3b397f303958cc880f1df1356ed331735324deae63fcf49c6
BLAKE2b-256 checksum
How to use checksums
e8186727bea6ce8bb93da4d4887801a5e4c16d6bb10ea92c279caddd2f7634e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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