Skip to content

Commit 13902a9

Browse files
fix: update default API URL and rename SGAI_TIMEOUT_S to SGAI_TIMEOUT
- Default URL: https://api.scrapegraphai.com/api/v2 - Env var: SGAI_TIMEOUT_S -> SGAI_TIMEOUT Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f53c01e commit 13902a9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ async with AsyncScrapeGraphAI() as sgai:
331331
| Variable | Description | Default |
332332
|----------|-------------|---------|
333333
| `SGAI_API_KEY` | Your ScrapeGraphAI API key ||
334-
| `SGAI_API_URL` | Override API base URL | `https://api.scrapegraphai.com/v2` |
334+
| `SGAI_API_URL` | Override API base URL | `https://api.scrapegraphai.com/api/v2` |
335335
| `SGAI_DEBUG` | Enable debug logging (`"1"`) | off |
336-
| `SGAI_TIMEOUT_S` | Request timeout in seconds | `120` |
336+
| `SGAI_TIMEOUT` | Request timeout in seconds | `120` |
337337

338338
## Development
339339

src/scrapegraph_py/env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ def debug(self) -> bool:
1010

1111
@property
1212
def timeout(self) -> int:
13-
val = os.environ.get("SGAI_TIMEOUT_S")
13+
val = os.environ.get("SGAI_TIMEOUT")
1414
return int(val) if val else 120
1515

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

2020

2121
env = Env()

0 commit comments

Comments
 (0)