Skip to content

chore: point default API base URL to v2-api.scrapegraphai.com#16

Merged
VinciGit00 merged 2 commits intomainfrom
chore/update-api-base-url-v2
Apr 20, 2026
Merged

chore: point default API base URL to v2-api.scrapegraphai.com#16
VinciGit00 merged 2 commits intomainfrom
chore/update-api-base-url-v2

Conversation

@VinciGit00
Copy link
Copy Markdown
Member

Summary

  • Update the default BASE_URL in src/scrapegraphai.ts from https://api.scrapegraphai.com/api/v2 to https://v2-api.scrapegraphai.com/api/v2.
  • Sync the same default in tests/scrapegraphai.test.ts and the SGAI_API_URL row in README.md.
  • No API shape or behavior change — only the default host.

Test plan

  • bun run format
  • bun run lint
  • bunx tsc --noEmit
  • bun run build
  • bun run test (52 passing)
  • Live smoke: sgai.credits() against the new host returns a valid ApiCreditsResponse (remaining, used, plan, jobs).

🤖 Generated with Claude Code

VinciGit00 and others added 2 commits April 20, 2026 11:49
Why: the canonical v2 host for the ScrapeGraph API has moved to
v2-api.scrapegraphai.com. Align the SDK default, docs, and test
fallback so users hitting the default transparently land on the
new host.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@VinciGit00 VinciGit00 merged commit 8bcbe0b into main Apr 20, 2026
3 checks passed
@VinciGit00 VinciGit00 deleted the chore/update-api-base-url-v2 branch April 20, 2026 12:15
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