Skip to content

chore: update default API base URL to v2-api host#86

Merged
VinciGit00 merged 1 commit intomainfrom
chore/update-api-base-url-v2-host
Apr 20, 2026
Merged

chore: update default API base URL to v2-api host#86
VinciGit00 merged 1 commit intomainfrom
chore/update-api-base-url-v2-host

Conversation

@VinciGit00
Copy link
Copy Markdown
Member

Summary

  • Switch the SDK's default base URL from https://api.scrapegraphai.com/api/v2 to https://v2-api.scrapegraphai.com/api/v2 (env.py + README).
  • Users can still override via SGAI_API_URL.

Test plan

  • Live call: client.credits() against the new host returns a valid CreditsResponse.
  • uv run ruff format src tests
  • uv run ruff check src tests --fix
  • uv build
  • uv run pytest tests/ -v (28 passed, 1 skipped)

🤖 Generated with Claude Code

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>
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@VinciGit00 VinciGit00 merged commit a462c15 into main Apr 20, 2026
6 checks passed
@VinciGit00 VinciGit00 deleted the chore/update-api-base-url-v2-host branch April 20, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant