diff --git a/README.md b/README.md index 72e0653..c601dfd 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ async with AsyncScrapeGraphAI() as sgai: | Variable | Description | Default | |----------|-------------|---------| | `SGAI_API_KEY` | Your ScrapeGraphAI API key | — | -| `SGAI_API_URL` | Override API base URL | `https://v2-api.scrapegraphai.com/api/v2` | +| `SGAI_API_URL` | Override API base URL | `https://v2-api.scrapegraphai.com/api` | | `SGAI_DEBUG` | Enable debug logging (`"1"`) | off | | `SGAI_TIMEOUT` | Request timeout in seconds | `120` | diff --git a/pyproject.toml b/pyproject.toml index b28439e..5fd39d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scrapegraph-py" -version = "2.0.0" +version = "2.0.1" description = "Official Python SDK for ScrapeGraph AI API" readme = "README.md" license = "MIT" diff --git a/src/scrapegraph_py/env.py b/src/scrapegraph_py/env.py index 95437eb..c9657c4 100644 --- a/src/scrapegraph_py/env.py +++ b/src/scrapegraph_py/env.py @@ -15,7 +15,7 @@ def timeout(self) -> int: @property def base_url(self) -> str: - return os.environ.get("SGAI_API_URL") or "https://v2-api.scrapegraphai.com/api/v2" + return os.environ.get("SGAI_API_URL") or "https://v2-api.scrapegraphai.com/api" env = Env()