diff --git a/site/src/config/navigation.yml b/site/src/config/navigation.yml index de9969f12..0e2a7119f 100644 --- a/site/src/config/navigation.yml +++ b/site/src/config/navigation.yml @@ -289,6 +289,7 @@ sidebar: - docs/community/tools/utcp - label: Tools items: + - docs/community/tools/strands-apify - docs/community/tools/strands-deepgram - docs/community/tools/strands-hubspot - docs/community/tools/strands-spraay diff --git a/site/src/content/docs/community/tools/strands-apify.mdx b/site/src/content/docs/community/tools/strands-apify.mdx new file mode 100644 index 000000000..a37de9c24 --- /dev/null +++ b/site/src/content/docs/community/tools/strands-apify.mdx @@ -0,0 +1,70 @@ +--- +project: + pypi: https://pypi.org/project/strands-apify/ + github: https://github.com/apify/strands-apify + maintainer: apify +service: + name: apify + link: https://apify.com/ +title: strands-apify +community: true +description: "Web scraping for social media, search engines, e-commerce, and more via Apify Actors" +integrationType: tool +languages: Python +sidebar: + label: "Apify" +--- + + +[strands-apify](https://github.com/apify/strands-apify) gives your Strands agent web scraping, search, crawling, e-commerce, and social media capabilities through the [Apify platform](https://apify.com/) and its library of thousands of pre-built Actors. + +## Prerequisites + +- An [Apify account](https://apify.com/) (free tier available) +- [Apify API token](https://console.apify.com/account/integrations) from Apify Console > Integrations + +## Installation + +```bash +pip install strands-apify +``` + +## Usage + +For the full tool reference, model provider setup, and more examples, see [Strands Agents on Apify docs](https://docs.apify.com/platform/integrations/strands-agents). + +```python +from strands import Agent +from strands_apify import APIFY_CORE_TOOLS, apify_google_search_scraper + +# Use a pre-built tool set +agent = Agent(tools=APIFY_CORE_TOOLS) +agent("Scrape https://docs.apify.com and summarize the page") + +# Or pick individual tools for a more focused agent +agent = Agent(tools=[apify_google_search_scraper]) +agent("Find the top-rated Italian restaurants in Prague") +``` + +## Key Features + +- **18 pre-built tools** for scraping, search, social media, and e-commerce +- **Focused tool sets** organized into `APIFY_CORE_TOOLS`, `APIFY_SEARCH_TOOLS`, and `APIFY_SOCIAL_TOOLS` for better LLM tool selection +- **Apify Store access** to run any of thousands of Actors with a single generic tool +- **Dataset integration** to fetch and process Actor results directly +- **URL to markdown** conversion for any webpage + +## Configuration + +```bash +APIFY_TOKEN=your_apify_api_token # Required +STRANDS_APIFY_QUIET=1 # Optional: suppress rich panels in interactive shells +``` + +## Resources + +- [PyPI package](https://pypi.org/project/strands-apify/) +- [GitHub repository](https://github.com/apify/strands-apify) +- [Strands Agents on Apify docs](https://docs.apify.com/platform/integrations/strands-agents) +- [Apify Store](https://apify.com/store) +- [Apify API reference](https://docs.apify.com/api/v2)