|
24 | 24 | Removed on v2 (no API equivalent): sitemap, agentic_scrapper, markdownify_status, smartscraper_status. |
25 | 25 |
|
26 | 26 | Environment variables (match scrapegraph-py v2): |
27 | | -- SGAI_API_URL (default https://api.scrapegraphai.com/api/v2) — base URL override |
| 27 | +- SGAI_API_URL (default https://v2-api.scrapegraphai.com/api) — base URL override |
28 | 28 | - SGAI_TIMEOUT (default 120) — request timeout in seconds |
29 | 29 | - SCRAPEGRAPH_API_BASE_URL — legacy alias for SGAI_API_URL (still honored) |
30 | 30 | - SGAI_TIMEOUT_S — legacy alias for SGAI_TIMEOUT (still honored) |
|
88 | 88 | logger = logging.getLogger(__name__) |
89 | 89 |
|
90 | 90 | MCP_SERVER_VERSION = "2.0.0" |
91 | | -# Matches scrapegraph-py v2 (env.py): https://api.scrapegraphai.com/api/v2 |
92 | | -DEFAULT_API_BASE_URL = "https://api.scrapegraphai.com/api/v2" |
| 91 | +# Matches scrapegraph-py v2 (env.py): https://v2-api.scrapegraphai.com/api |
| 92 | +DEFAULT_API_BASE_URL = "https://v2-api.scrapegraphai.com/api" |
93 | 93 |
|
94 | 94 |
|
95 | 95 | def _api_base_url() -> str: |
@@ -662,7 +662,7 @@ def web_scraping_guide() -> str: |
662 | 662 | 1. Use **markdownify** or **scrape** before **smartscraper** when you only need readable text. |
663 | 663 | 2. Multi-page **AI** extraction: run **smartscraper** per URL, or use **monitor_create** on a schedule. |
664 | 664 | 3. Poll **smartcrawler_fetch_results** until the crawl finishes. |
665 | | -4. Override API host with env **SGAI_API_URL** if needed (default `https://api.scrapegraphai.com/api/v2`). |
| 665 | +4. Override API host with env **SGAI_API_URL** if needed (default `https://v2-api.scrapegraphai.com/api`). |
666 | 666 | """ |
667 | 667 |
|
668 | 668 |
|
@@ -727,7 +727,7 @@ def api_status() -> str: |
727 | 727 | return """# ScapeGraph API Status (MCP v2) |
728 | 728 |
|
729 | 729 | - **MCP package version**: 2.0.0 (matches [scrapegraph-py#84](https://github.com/ScrapeGraphAI/scrapegraph-py/pull/84) API surface) |
730 | | -- **Default API base**: `https://api.scrapegraphai.com/api/v2` (override with `SGAI_API_URL`) |
| 730 | +- **Default API base**: `https://v2-api.scrapegraphai.com/api` (override with `SGAI_API_URL`) |
731 | 731 | - **Auth headers**: `SGAI-APIKEY`, `X-SDK-Version: scrapegraph-mcp@2.0.0` |
732 | 732 |
|
733 | 733 | ## Tools |
|
0 commit comments