Skip to content

Commit a462c15

Browse files
authored
chore: update default API base URL to v2-api host (#86) [skip ci]
Switch SDK default base URL to https://v2-api.scrapegraphai.com/api/v2. [skip ci]
1 parent 2dd5809 commit a462c15

2 files changed

Lines changed: 2 additions & 2 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://api.scrapegraphai.com/api/v2` |
336+
| `SGAI_API_URL` | Override API base URL | `https://v2-api.scrapegraphai.com/api/v2` |
337337
| `SGAI_DEBUG` | Enable debug logging (`"1"`) | off |
338338
| `SGAI_TIMEOUT` | Request timeout in seconds | `120` |
339339

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://api.scrapegraphai.com/api/v2"
18+
return os.environ.get("SGAI_API_URL") or "https://v2-api.scrapegraphai.com/api/v2"
1919

2020

2121
env = Env()

0 commit comments

Comments
 (0)