Skip to main content

LangChain tools for the Synoppy web-data API — read, search, crawl, map, extract, classify, enrich, images, and screenshot the live web from your agent.

Project description

langchain-synoppy

PyPI license

Give your LangChain agent the whole web. Synoppy tools for LangChain — read, search, crawl, map, extract, classify, enrich, screenshot, and pull images from the live web, all on one key.

Get a free key → · Docs · synoppy.com

Install

pip install langchain-synoppy

Quickstart

from langchain_openai import ChatOpenAI
from langchain_synoppy import get_synoppy_tools

tools = get_synoppy_tools(api_key="syn_live_...")

# Bind them to any tool-calling model…
model = ChatOpenAI(model="gpt-4o").bind_tools(tools)

# …or drop them into an agent (e.g. LangGraph's create_react_agent):
# from langgraph.prebuilt import create_react_agent
# agent = create_react_agent(model, tools)

get_synoppy_tools() returns a list of StructuredTools. Want a subset? Filter by name:

tools = [t for t in get_synoppy_tools(api_key="...") if t.name in {"synoppy_read", "synoppy_search"}]

Tools

Tool Endpoint What it does
synoppy_read /api/scrape URL → clean markdown (nav/ads stripped)
synoppy_search /api/search Ranked live-web results, optionally read to markdown
synoppy_crawl /api/crawl Crawl a site → markdown per page (RAG ingest)
synoppy_map /api/map Every URL on a domain
synoppy_extract /api/extract Page → structured JSON from a prompt
synoppy_classify /api/classify NAICS/SIC industry codes, or custom labels
synoppy_enrich /api/brand Domain / email → brand profile (logo, colors, fonts, socials)
synoppy_images /api/images Every image on a page + alt text
synoppy_screenshot /api/screenshot URL → PNG (base64 data URL) for vision models

Each tool returns a compact JSON string plus creditsUsed, and hands back {"error", "code"} on failure so the model can recover.

For typed extraction (a JSON Schema), custom timeouts, or raw responses, use the synoppy client directly.

MIT licensed · built by Saanora

Project details


Download files

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

Source Distribution

langchain_synoppy-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

langchain_synoppy-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file langchain_synoppy-1.0.0.tar.gz.

File metadata

  • Download URL: langchain_synoppy-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for langchain_synoppy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f6d32ea65eed031d7f8203e050325c090017ba7826b6ca76b2211b6dc2986beb
MD5 59a2305126fa617b54ea484d6af86e94
BLAKE2b-256 2b5323412e0ec094e70f73637201556147c54fb72246717950bb14553fc38e13

See more details on using hashes here.

File details

Details for the file langchain_synoppy-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_synoppy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c54130bd33e498236aefcd2028e5b36f7d7384e9b79f0828a34a9ba3c592618
MD5 5c0b29c937830015294680760bfc2ed0
BLAKE2b-256 2ca98994a147241a5abe4c335a22e551741e5ecc14994683b7464dcb8b4b113e

See more details on using hashes here.

Supported by

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