Skip to content

feat: accept the /v2 API version path in baseUrl and publicBaseUrl - #1077

Open
vdusek wants to merge 2 commits into
v3from
feat/base-url-api-version
Open

vdusek wants to merge 2 commits into
v3from
feat/base-url-api-version

Conversation

@vdusek

@vdusek vdusek commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

baseUrl and publicBaseUrl now accept a URL that already ends with the /v2 API version path. Previously the client always appended /v2, so https://api.apify.com/v2 turned into .../v2/v2. A URL without the version path still gets /v2 appended, and trailing slashes are stripped as before.

Only /v2 counts as a version path. Other /vN suffixes are treated as part of the host path, because the client's endpoints only exist in v2.

Closes #179

✍️ Drafted by Claude Code

@vdusek vdusek added the t-tooling Issues with this label are in the ownership of the tooling team. label Sep 25, 2026
@vdusek vdusek self-assigned this Sep 25, 2026
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ There are broken links in the documentation.

See more at https://github.com/apify/apify-client-js/actions/runs/36111731261#summary-107996494534

@vdusek
vdusek requested a review from janbuchar September 25, 2026 09:12
@vdusek
vdusek marked this pull request as ready for review September 25, 2026 09:12
@janbuchar janbuchar linked an issue Sep 25, 2026 that may be closed by this pull request

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow baseUrl to include the API version segment

2 participants