langchain-geekflare
LangChain tools for the Geekflare API: live web search (including full Google SERP results), scraping public pages to Markdown or structured JSON, page metadata, brand data, screenshots, URL-to-PDF, and website diagnostics (uptime, DNS, DNSSEC, TLS, redirects, broken links, load time, mixed content, Lighthouse).
Built on the official Python SDK, geekflare-api.
Installation
pip install -U langchain-geekflare
Setup
Get an API key at dash.geekflare.com (free tier available) and set it as an environment variable:
export GEEKFLARE_API_KEY="your-api-key"
You can also pass it directly: GeekflareSearch(geekflare_api_key="...").
Tools
| Tool | Name | What it does |
|---|---|---|
GeekflareSearch |
geekflare_search |
Web, news, or image search; serp=True returns the full Google results page (AI Overview, People Also Ask) by country or city |
GeekflareScrape |
geekflare_scrape |
Page content as Markdown, text, HTML, or JSON; template="product" or "contact" for structured data |
GeekflareMetaScrape |
geekflare_meta_scrape |
Title, description, canonical, Open Graph, Twitter Card tags |
GeekflareBrand |
geekflare_brand |
Logos, brand colors, fonts, social profiles |
GeekflareScreenshot |
geekflare_screenshot |
Viewport, full-page, or element screenshot (hosted image URL) |
GeekflareUrlToPdf |
geekflare_url_to_pdf |
Page as PDF (hosted file URL) |
GeekflareSiteStatus |
geekflare_site_status |
Is the site up, and its HTTP status |
GeekflareDnsRecords |
geekflare_dns_records |
A, AAAA, CNAME, MX, NS, SOA, TXT, CAA, SRV records |
GeekflareDnsSec |
geekflare_dnssec |
DNSSEC configured and validating |
GeekflareTlsScan |
geekflare_tls_scan |
Certificate details and expiry, supported TLS versions |
GeekflareRedirectCheck |
geekflare_redirect_check |
Redirect chain with status codes |
GeekflareBrokenLinks |
geekflare_broken_links |
Broken links on a page |
GeekflareLoadTime |
geekflare_load_time |
Page load timing |
GeekflareMixedContent |
geekflare_mixed_content |
HTTP resources on HTTPS pages |
GeekflareLighthouse |
geekflare_lighthouse |
Lighthouse performance, SEO, accessibility, best-practices scores |
Each tool returns the API's JSON response as a dict. API errors (invalid key, no credits, unreachable site) come back to the agent as a short error message instead of raising.
Usage
Call a tool directly
from langchain_geekflare import GeekflareSearch, GeekflareScrape
search = GeekflareSearch()
results = search.invoke({"query": "latest stable python release", "limit": 5})
scrape = GeekflareScrape()
page = scrape.invoke({"url": "https://example.com", "formats": ["markdown"]})
Google results page for a city:
search.invoke({
"query": "best project management software",
"serp": True,
"city": "London,England,United Kingdom",
})
Use with an agent
from langchain.agents import create_agent
from langchain_geekflare import (
GeekflareSearch,
GeekflareScrape,
GeekflareTlsScan,
GeekflareDnsRecords,
)
agent = create_agent(
model="anthropic:claude-sonnet-5-5",
tools=[GeekflareSearch(), GeekflareScrape(), GeekflareTlsScan(), GeekflareDnsRecords()],
)
agent.invoke({"messages": [{"role": "user", "content": "Is the TLS setup on example.com healthy?"}]})
Async is supported on every tool: await tool.ainvoke({...}).
Notes
- Every call spends Geekflare credits on your account; see pricing.
- Use the tools for publicly accessible pages only.
- The tools send the URLs, queries, and options you pass to
api.geekflare.com. See the Geekflare privacy policy.
Development
uv venv --python 3.12 && uv pip install -e . --group test
pytest --disable-socket --allow-unix-socket tests/unit_tests
GEEKFLARE_API_KEY=... pytest tests/integration_tests
Links
- API docs: https://docs.geekflare.com
- Python SDK: https://github.com/geekflare/geekflare-api-python
- MCP server: https://docs.geekflare.com/mcp/overview
Metadata
Release files for langchain-geekflare 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| langchain_geekflare-0.1.0.tar.gz | 10.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_geekflare-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / langchain_geekflare-0.1.0.tar.gz
| Download URL | langchain_geekflare-0.1.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e186dcf67d59c25fc28ace7b9730a41a244e47210ec0a8d45dddbceeef4e4e35
|
|
BLAKE2b-256 checksum How to use checksums |
7db66a909fe96a39e972c302eeb14e3afe29cbf0cc4fb39db6e6c9e474771cad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / langchain_geekflare-0.1.0-py3-none-any.whl
| Download URL | langchain_geekflare-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e17cda6d15ffc9d9e36c6201d4b728c1d8c58eeb7a5262fd96bb852c11260a56
|
|
BLAKE2b-256 checksum How to use checksums |
4670f8daff642f590f68a4a5f3fc8fea8666fb1fb4d3a5c5be27df49c4383bd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for langchain-geekflare 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for langchain_geekflare-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA 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.