INTEGRATIONS

Build Web Data Tools for LangChain with Scrapeless

Call Scrapeless services through the SDK and wrap them as tools for your LangChain chains and agents.

  • Custom API tool
  • Tool arguments such as a query or URL
  • API data returned by your tool
Scrapeless
LangChain
Input
Custom API toolYour LangChain wrapper
tool_input{"query": "workflow automation"}
Workflow resultIllustrative data
{
  "tool_result": {
    "sources": [
      {
        "title": "Example source",
        "url": "https://example.com/source"
      }
    ]
  }
}

Trusted by teams bringing web data into their workflows

What is LangChain?

LangChain is a framework for building applications with language models and tools. Connect external data sources, define tool inputs, and compose the steps used by your chains and agents.

Build Automated Web Data Workflows with Scrapeless and LangChain

Call these services through the official Python or Node.js SDK, then wrap the request as a LangChain tool.

Google Search

Send a search query to Scrapeless Google Search API. Return search results for the next step in your workflow.

Scraping API

Call Scraping API through the SDK for structured Amazon and TikTok data, then return selected fields from your LangChain tool.

Agent Browser

Create a cloud-browser session with the SDK. Use browser-control code inside your tool to navigate, interact, and extract page content.

Web Unlocker

Request a target URL through Scrapeless Web Unlocker to retrieve supported protected or JavaScript-rendered page content.

Crawl

Use the SDK to scrape a single page or crawl a website and return content to your chain. Your application chooses the formats and handles results.

AI Scraper

Create an AI Scraper task through the SDK and retrieve its answer and available citations. Your application handles polling and passes results to the agent.

Call Scrapeless from a LangChain tool

Call a Scrapeless service through the SDK and wrap it as a custom tool. Your chain chooses when to call it; Scrapeless returns the web data for the next step.

View setup guide

The SDK returns service data.

Your LangChain application defines tool inputs, handles errors and polling, and controls model context.

Try for Free

How to Connect Scrapeless to LangChain and Run Your First Workflow

A working LangChain application. A Scrapeless API key and chosen API operation. Your own tool wrapper and response handling.

Prepare the Python environment
# Use Python 3.10 or later.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install "langchain-scrapeless==0.1.4"
python -m pip check

# Set your Scrapeless key before running Step 02.
export SCRAPELESS_API_KEY="YOUR_SCRAPELESS_API_KEY"

Use Python 3.10 or later. Install langchain-scrapeless in a virtual environment and set SCRAPELESS_API_KEY before testing the search tool.

Ready to get started? Create your Scrapeless account →

Create a ScrapelessDeepSerpGoogleSearchTool and invoke it with a query. Inspect organic_results before adding an agent.

Configure your model separately, pass the tested tool to create_agent, and verify that the agent uses the returned sources.

Explore Web Data Workflows with Scrapeless and LangChain

Give a LangChain tool a research query. Scrapeless retrieves Google search results, and your chain or agent uses the returned titles, links, and snippets as context for its response.

  1. LangChain

    Call a Search Tool

  2. Scrapeless

    Google Search API

    {
      "organic_results": [
        {
          "position": 1,
          "title": "Workflow automation guide",
          "link": "https://example.com/research",
          "snippet": "A guide to connecting apps and automating tasks."
        }
      ]
    }
  3. LangChain

    Inspect Tool Results

  4. LangChain

    Answer with Context

Illustrative workflow and example data. Scrapeless provides the web data or browser session. LangChain performs the following workflow steps.

Frequently asked questions

How does this page connect LangChain to Scrapeless?

Use the official Scrapeless SDK to call a service, then wrap that SDK call as a LangChain tool. Your application controls inputs and results.

Which services can I wrap as tools?

This page covers Google Search, Scraping API, Agent Browser, Web Unlocker, Crawl, and AI Scraper through SDK calls.

Who handles parsing and agent decisions?

Your application does. Scrapeless returns API data; the tool wrapper and agent decide how to parse, present, and use it.

Where do I get the API key?

Create or sign in to your Scrapeless account and get the API key from the dashboard. Save it in the connection or environment used by your integration.

How is usage billed?

Check the current Scrapeless pricing for the product you call. Your automation platform or model provider may bill separately; the integration does not combine those charges.

What should I check if the connection fails?

Check the credentials and the first operation’s raw response. Then inspect each transformation and field mapping separately before running the full workflow again.

Connect your tools to web data

Bring search, scraping, and browser automation into the tools you already use.