Apify web scraping, social media, search and automation tools for Strands Agents SDK
Project description
strands-apify
Apify tools for the Strands Agents SDK - web scraping, social media, search, and automation.
This package gives Strands agents access to Apify Actors: serverless cloud programs that scrape websites, social platforms, search engines, and e-commerce sites, returning structured JSON or Markdown.
Installation
pip install strands-apify
Set your Apify token:
export APIFY_TOKEN=your_apify_token_here
Get a token at Apify Console > Settings > API & Integrations.
Quick start
from strands import Agent
from strands_apify import APIFY_CORE_TOOLS
agent = Agent(tools=APIFY_CORE_TOOLS)
result = agent("Scrape https://example.com and summarize it.")
Or register specific tools:
from strands import Agent
from strands_apify import apify_scrape_url, apify_google_search_scraper
agent = Agent(tools=[apify_scrape_url, apify_google_search_scraper])
Convenience presets:
APIFY_CORE_TOOLS- generic Actor/task/dataset/scrape toolsAPIFY_SOCIAL_TOOLS- Instagram, LinkedIn, Twitter/X, TikTok, FacebookAPIFY_SEARCH_TOOLS- Google Search, Google Maps, YouTube, multi-page crawler, e-commerceAPIFY_ALL_TOOLS- everything (use sparingly; many tools may overwhelm an LLM's tool choice)
Tools
Core tools
Generic Apify platform access - run any Actor, run saved tasks, fetch dataset items, and scrape a single URL.
| Tool | What it does |
|---|---|
apify_run_actor |
Run any Apify Actor by id with custom input; returns run metadata |
apify_get_dataset_items |
Fetch items from an Apify dataset with pagination |
apify_run_actor_and_get_dataset |
Run an Actor and fetch its default dataset in one step |
apify_run_task |
Run a saved Actor task |
apify_run_task_and_get_dataset |
Run a task and fetch its dataset in one step |
apify_scrape_url |
Scrape a single URL via the Website Content Crawler, return Markdown |
from strands_apify import apify_scrape_url, apify_run_actor_and_get_dataset
# Single URL
apify_scrape_url(url="https://example.com")
# Any Actor with custom input
apify_run_actor_and_get_dataset(
actor_id="apify/website-content-crawler",
run_input={"startUrls": [{"url": "https://docs.example.com"}], "maxCrawlPages": 5},
)
Social media tools
Scrape structured data from popular social platforms.
| Tool | Platform | Actor |
|---|---|---|
apify_instagram_scraper |
Instagram (profiles, posts, hashtags, places) | apify/instagram-scraper |
apify_linkedin_profile_posts |
LinkedIn profile posts | apimaestro/linkedin-profile-posts |
apify_linkedin_profile_search |
LinkedIn profile search | harvestapi/linkedin-profile-search |
apify_linkedin_profile_detail |
LinkedIn profile details | apimaestro/linkedin-profile-detail |
apify_twitter_scraper |
Twitter/X (search, handles, URLs) | apidojo/twitter-scraper-lite |
apify_tiktok_scraper |
TikTok (search, hashtags, profiles, URLs) | clockworks/tiktok-scraper |
apify_facebook_posts_scraper |
Facebook page posts | apify/facebook-posts-scraper |
from strands_apify import apify_twitter_scraper, apify_linkedin_profile_search
apify_twitter_scraper(search_query="from:NASA min_faves:100", results_limit=30)
apify_linkedin_profile_search(
search_query="software engineer",
locations=["San Francisco"],
profile_scraper_mode="Full",
)
Search & crawling tools
Search engines, maps, video, multi-page crawls, and e-commerce.
| Tool | What it does | Actor |
|---|---|---|
apify_google_search_scraper |
Google search (organic, ads, People Also Ask) | apify/google-search-scraper |
apify_google_places_scraper |
Google Maps places and reviews | compass/crawler-google-places |
apify_youtube_scraper |
YouTube search and video/channel URLs | streamers/youtube-scraper |
apify_website_content_crawler |
Multi-page website crawl with Markdown extraction | apify/website-content-crawler |
apify_ecommerce_scraper |
Product data from Amazon, eBay, Walmart, etc. | apify/e-commerce-scraping-tool |
from strands_apify import apify_google_search_scraper, apify_website_content_crawler
apify_google_search_scraper(search_query="best AI frameworks 2025", country_code="us")
apify_website_content_crawler(
start_url="https://docs.example.com",
max_pages=20,
max_depth=3,
)
Configuration
| Variable | Description | Required |
|---|---|---|
APIFY_TOKEN |
Your Apify token from console.apify.com | Yes |
STRANDS_APIFY_QUIET |
Set to 1 to suppress the rich panels printed on each tool call. Panels are auto-suppressed in non-interactive environments (CI, Docker, web services); use this flag to silence them in interactive shells too. |
No |
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Apache-2.0
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strands_apify-0.1.0.tar.gz.
File metadata
- Download URL: strands_apify-0.1.0.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8934950df860754acf77e432adfa91aa670df0356612218de9b7ff2ae33fe75
|
|
| MD5 |
11cad97337dc7123b7cc04ec33088ceb
|
|
| BLAKE2b-256 |
a0b0a0163e93a09236cce8d0cdc9b9ed7b5635a64c0d431859d280bf88886125
|
Provenance
The following attestation bundles were made for strands_apify-0.1.0.tar.gz:
Publisher:
release.yml on apify/strands-apify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strands_apify-0.1.0.tar.gz -
Subject digest:
a8934950df860754acf77e432adfa91aa670df0356612218de9b7ff2ae33fe75 - Sigstore transparency entry: 1652337980
- Sigstore integration time:
-
Permalink:
apify/strands-apify@dfb4732435084db3fa4197951414bb52f5c7e95a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/apify
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dfb4732435084db3fa4197951414bb52f5c7e95a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file strands_apify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: strands_apify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fdebf8d73d34eb42b083a16556b45d17faaa18e8a8892ba1f1a7b89e40cf3ce
|
|
| MD5 |
52663b2d5182b98eddea7867f864ff19
|
|
| BLAKE2b-256 |
7ef56db92208cdf99d970a376f12c18acccf997dc9a1809431404e7c15e82dcd
|
Provenance
The following attestation bundles were made for strands_apify-0.1.0-py3-none-any.whl:
Publisher:
release.yml on apify/strands-apify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strands_apify-0.1.0-py3-none-any.whl -
Subject digest:
7fdebf8d73d34eb42b083a16556b45d17faaa18e8a8892ba1f1a7b89e40cf3ce - Sigstore transparency entry: 1652338301
- Sigstore integration time:
-
Permalink:
apify/strands-apify@dfb4732435084db3fa4197951414bb52f5c7e95a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/apify
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dfb4732435084db3fa4197951414bb52f5c7e95a -
Trigger Event:
workflow_dispatch
-
Statement type: