Arcadium Data Scrapers
Home / Integrations / LangChain

LangChain

Call an actor as a LangChain tool or load its results as documents. The example uses YouTube Transcript & Subtitles Scraper; swap in any actor ID below.

The langchain-apify package wraps an actor as a LangChain tool. It reads APIFY_API_TOKEN.

# pip install langchain-apify   (reads APIFY_API_TOKEN from the environment)
from langchain_apify import ApifyActorsTool

tool = ApifyActorsTool("arcadium/youtube-transcripts")
rows = tool.invoke({"run_input": {
    "urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "languages": [],
    "captionType": "any",
    "maxVideosPerSource": 10,
    "subtitleFormat": "none",
}})
# or give `tool` to an agent: create_react_agent(llm, [tool])

Actor IDs

ActorActor ID
Agoda and Trip.com Reviews Scraperarcadium/agoda-tripcom-reviews
ATS Lookuparcadium/ats-lookup
Booking.com Reviews Scraperarcadium/booking-reviews
Capterra Products Scraperarcadium/capterra-products
Capterra Reviews Scraperarcadium/capterra-reviews
Career Site Jobs Scraperarcadium/career-site-jobs
AutoScout24 Scraperarcadium/eu-car-listings
Google Hotel Reviews Scraperarcadium/google-hotel-reviews
Google Hotels Scraperarcadium/google-hotels
Google News Scraperarcadium/google-news
Google Trends Scraperarcadium/google-trends
Hotel Reviews Scraperarcadium/hotel-reputation
Review Monitorarcadium/reputation-monitor
Seek Jobs Scraperarcadium/seek-jobs
Software Reviews Scraperarcadium/software-reviews
Tripadvisor Reviews Scraperarcadium/tripadvisor-reviews
TrustRadius Reviews Scraperarcadium/trustradius-reviews
YouTube Transcript & Subtitles Scraperarcadium/youtube-transcripts
YouTube Scraperarcadium/youtube-videos