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
| Actor | Actor ID |
|---|---|
| Agoda and Trip.com Reviews Scraper | arcadium/agoda-tripcom-reviews |
| ATS Lookup | arcadium/ats-lookup |
| Booking.com Reviews Scraper | arcadium/booking-reviews |
| Capterra Products Scraper | arcadium/capterra-products |
| Capterra Reviews Scraper | arcadium/capterra-reviews |
| Career Site Jobs Scraper | arcadium/career-site-jobs |
| AutoScout24 Scraper | arcadium/eu-car-listings |
| Google Hotel Reviews Scraper | arcadium/google-hotel-reviews |
| Google Hotels Scraper | arcadium/google-hotels |
| Google News Scraper | arcadium/google-news |
| Google Trends Scraper | arcadium/google-trends |
| Hotel Reviews Scraper | arcadium/hotel-reputation |
| Review Monitor | arcadium/reputation-monitor |
| Seek Jobs Scraper | arcadium/seek-jobs |
| Software Reviews Scraper | arcadium/software-reviews |
| Tripadvisor Reviews Scraper | arcadium/tripadvisor-reviews |
| TrustRadius Reviews Scraper | arcadium/trustradius-reviews |
| YouTube Transcript & Subtitles Scraper | arcadium/youtube-transcripts |
| YouTube Scraper | arcadium/youtube-videos |