DEV Community

hasna dev
hasna dev

Posted on

How I Built Smart Scraper M2M: A Fast ~30ms Scraper API for AI Agents

Building AI Agents with frameworks like CrewAI or LangChain often hits a bottleneck: heavy, slow web scraping that bloats context windows and increases LLM token costs.

To solve this, I built Smart Scraper M2M β€” a lightweight, high-performance web scraper API designed specifically for machine-to-machine (M2M) communication.

🌟 Key Features

  • ⚑ Ultra-fast: Returns clean structured JSON in ~30ms.
  • 🧠 Context-optimized: Strips out useless HTML/CSS junk so your LLMs process only relevant data.
  • πŸ€– Agent-friendly: Built to integrate seamlessly into CrewAI, LangChain, or custom Node.js agents.

πŸš€ Quick Start

You can test the API or check the full source code directly on GitHub:

πŸ”— GitHub Repository: https://github.com/MRIGL/smart-scraper-m2m


πŸ’¬ Feedback & Community

I’m actively improving the API and would love to hear your thoughts, feature requests, or contributions! Feel free to star the repo or leave a comment below.

Top comments (0)