Skip to content

Commit efe2ff2

Browse files
VinciGit00claude
andcommitted
fix: update API base URL to /api/v2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8c8deab commit efe2ff2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scrapegraph-py/MIGRATION_V2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pip install scrapegraph-py==2.0.0
1313
| Area | v1 | v2 |
1414
|------|----|----|
1515
| **Package version** | 1.x | 2.0.0 |
16-
| **API base URL** | `https://api.scrapegraphai.com/v1` | `https://api.scrapegraphai.com/api/v1` |
16+
| **API base URL** | `https://api.scrapegraphai.com/v1` | `https://api.scrapegraphai.com/api/v2` |
1717
| **Auth header** | `SGAI-APIKEY: <key>` | `Authorization: Bearer <key>` (+ `SGAI-APIKEY` for backwards compat) |
1818
| **SDK version header** | None | `X-SDK-Version: python@2.0.0` |
1919
| **Client init** | `Client(api_key=...)` | `Client(api_key=..., base_url=...)` |
@@ -50,7 +50,7 @@ from scrapegraph_py import Client
5050

5151
client = Client(
5252
api_key="sgai-...",
53-
base_url="https://api.scrapegraphai.com/api/v1", # optional override
53+
base_url="https://api.scrapegraphai.com/api/v2", # optional override
5454
verify_ssl=True,
5555
timeout=30,
5656
max_retries=3,

scrapegraph-py/scrapegraph_py/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
VERSION = "2.0.0"
6-
API_BASE_URL = "https://api.scrapegraphai.com/api/v1"
6+
API_BASE_URL = "https://api.scrapegraphai.com/api/v2"
77
DEFAULT_HEADERS = {
88
"accept": "application/json",
99
"Content-Type": "application/json",

0 commit comments

Comments
 (0)