Skip to content

fix(opengraph): migrate to v2 opensea nft metadata collection stats endpoint - #125

Merged
davidfurlong merged 1 commit into
mainfrom
fix/opensea-collection-stats-v2
Dec 18, 2023
Merged

fix(opengraph): migrate to v2 opensea nft metadata collection stats endpoint#125
davidfurlong merged 1 commit into
mainfrom
fix/opensea-collection-stats-v2

Conversation

@stephancill

Copy link
Copy Markdown
Contributor

Change Summary

The opengraph endpoint currently doesn't return NFT metadata because the v1 endpoint for collection stats has been removed from the OpenSea API as per the response messsage:

{
    message: 'The /v1 API has been removed. Please migrate to /v2, documentation here: https://docs.opensea.io/reference/api-overview'
}

This change migrates to the v2 opensea API, which does unfortunately not return the number of items in the collection. Hence the itemCount property of the NFT response now returns 0. A separate issue will be opened to address this.

Merge Checklist

  • PR has a changeset
  • PR includes documentation if necessary
  • PR updates the rich-embed examples if necessary
  • includes a parallel PR for Mod-starter and the gateway if necessary

@changeset-bot

changeset-bot Bot commented Dec 15, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f8c73a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Dec 15, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 9:37pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 9:37pm
example-nextjs-shadcn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 9:37pm

@davidfurlong

Copy link
Copy Markdown
Contributor

lgtm

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.

2 participants