Skip to content

Upgrade Domain API to v23 and sync response schemas with current API fields#21

Merged
zcaceres merged 1 commit into
zcaceres:mainfrom
builtwith:domain-api-v23
Jul 8, 2026
Merged

Upgrade Domain API to v23 and sync response schemas with current API fields#21
zcaceres merged 1 commit into
zcaceres:mainfrom
builtwith:domain-api-v23

Conversation

@builtwith

Copy link
Copy Markdown
Contributor

Hi Zach! 👋 Gary from BuiltWith here.

We recently released Domain API v23 on our side, and this PR brings the client up to date. It's deliberately small:

  • src/index.ts: domain() now calls v23/api.json instead of v22. v23 is a superset of v22 — the only structural change is a new numeric Id on each technology entry (a stable technology identifier).
  • src/schemas.ts: added Id: z.number() to TechnologySchema, and added the attribute fields the API now returns (Revenue, PageRank, BWRank, Tranco, BWS, AIMaturity, AIOpenness, AIReadiness, AIVisibility, all optional numbers). Your strictObject drift-detection did its job here — these attributes are returned by v22 as well today, so current strict parses fail on domains that have them; this fixes that too.
  • Tests: updated the URL expectation and the domain fixture accordingly.

Verified locally: bun test passes (145 pass / 0 fail), and the strict schemas parse live v23 responses for builtwith.com, example.com, and shopify.com.

If it looks good, we'd love a release/publish to npm when you get a chance — no rush and thanks for maintaining this! Alternatively, if you'd rather hand off npm publishing, adding garazy as a package maintainer works for us too.

🤖 Generated with Claude Code

@garazy

garazy commented Jul 7, 2026

Copy link
Copy Markdown

Lol AI

@zcaceres

zcaceres commented Jul 8, 2026

Copy link
Copy Markdown
Owner

@garazy you rock! merged. I'll do a separate review to make sure there aren't any other dependencies.

@zcaceres
zcaceres merged commit 557aef5 into zcaceres:main Jul 8, 2026
1 check passed
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.

3 participants