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

Links

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_webmetadata_extractor-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file langchain_webmetadata_extractor-0.1.0.tar.gz.

File metadata

File hashes

Hashes for langchain_webmetadata_extractor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8363c64f27894c3b397f303958cc880f1df1356ed331735324deae63fcf49c6
MD5 6c04190f03b2f61599a1a90b5459927f
BLAKE2b-256 e8186727bea6ce8bb93da4d4887801a5e4c16d6bb10ea92c279caddd2f7634e1

See more details on using hashes here.

File details

Details for the file langchain_webmetadata_extractor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_webmetadata_extractor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a71d808223df288cb57fad1b29d6b4a0e74c1c669329c52fd3e59fed361c6c0
MD5 e6fbbcf7d7e63dfafade041c196c74c5
BLAKE2b-256 0e801571bead57a7a26372292f64a0be849d5a43934cde870f922575b147e608

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page