Skip to content

Commit baa9757

Browse files
VinciGit00claude
andauthored
chore(release): 2.0.1 + fix default API base URL (#87)
* chore: update default API base URL to v2-api host Point SDK at https://v2-api.scrapegraphai.com/api/v2 so clients hit the new v2 endpoint by default. Verified with a live credits call. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(release): 2.0.1 Bump to 2.0.1 and fix default API base URL from `/api/v2` to `/api` (the v2 host already serves the API under `/api`). Updates README docs and env.py default to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a462c15 commit baa9757

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ async with AsyncScrapeGraphAI() as sgai:
333333
| Variable | Description | Default |
334334
|----------|-------------|---------|
335335
| `SGAI_API_KEY` | Your ScrapeGraphAI API key ||
336-
| `SGAI_API_URL` | Override API base URL | `https://v2-api.scrapegraphai.com/api/v2` |
336+
| `SGAI_API_URL` | Override API base URL | `https://v2-api.scrapegraphai.com/api` |
337337
| `SGAI_DEBUG` | Enable debug logging (`"1"`) | off |
338338
| `SGAI_TIMEOUT` | Request timeout in seconds | `120` |
339339

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "scrapegraph-py"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
description = "Official Python SDK for ScrapeGraph AI API"
55
readme = "README.md"
66
license = "MIT"

src/scrapegraph_py/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def timeout(self) -> int:
1515

1616
@property
1717
def base_url(self) -> str:
18-
return os.environ.get("SGAI_API_URL") or "https://v2-api.scrapegraphai.com/api/v2"
18+
return os.environ.get("SGAI_API_URL") or "https://v2-api.scrapegraphai.com/api"
1919

2020

2121
env = Env()

0 commit comments

Comments
 (0)