Skip to content

feat: replace GraphQL search with REST API search endpoint#33

Merged
ryanio merged 1 commit intomainfrom
feat/rest-search-api
Feb 26, 2026
Merged

feat: replace GraphQL search with REST API search endpoint#33
ryanio merged 1 commit intomainfrom
feat/rest-search-api

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Feb 26, 2026

Summary

  • Replace 4 separate GraphQL search subcommands (search collections, search nfts, search tokens, search accounts) with a single unified search <query> command backed by the new GET /api/v2/search REST endpoint
  • Remove GraphQL client method, queries.ts, and graphqlUrl config option since search was the only GraphQL consumer
  • New CLI: opensea search <query> [--types collection,nft,token,account] [--chains <chains>] [--limit <n>]
  • New SDK: client.search.query("mfers", { assetTypes: ["collection"], chains: ["ethereum"], limit: 10 })
  • Bump version to 0.4.1

Test plan

  • All 151 existing tests pass
  • TypeScript type-check passes
  • Biome lint/format passes
  • Manual smoke test with live API key
  • Verify search results include mixed types ranked by relevance

🤖 Generated with Claude Code


Open with Devin

Replace the 4 separate GraphQL search subcommands (collections, nfts,
tokens, accounts) with a single unified REST endpoint (GET /api/v2/search).
The new search command supports --types, --chains, and --limit options.
Remove GraphQL client method, queries.ts, and graphqlUrl config since
search was the only GraphQL consumer. Bump version to 0.4.1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional findings.

Open in Devin Review

@ryanio ryanio merged commit 7a06fc4 into main Feb 26, 2026
4 checks passed
@ryanio ryanio deleted the feat/rest-search-api branch February 26, 2026 15:57
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