Skip to main content
1 of 3
kenorb
  • 529
  • 4
  • 12

How to list NFT items from collection on Magic Eden via curl?

I'd like to retrieve a list of NFT collection from Magic Eden using curl.

I've checked the docs at /collections/:symbol/listings, and I've tried to use the following request:

$ curl --location -s 'api-devnet.magiceden.dev/v2/collections/solice_genesis_avatars/listings'
[]

but it doesn't return any items. I've also tried to use api.magiceden.dev or api.magiceden.io instead, but these also fails. And I don't see any endpoint available which I can use for the main website.

What I'm missing?

kenorb
  • 529
  • 4
  • 12