OpenSea API returning null when i want to fetch my data

1.4k Views Asked by At

when i go to this link

https://api.opensea.io/api/v1/assets?asset_contract_address=0x892848074ddea461a15f337250da3ce55580ca85

It returns me some data i can use. But when i tried to fetch MY assets its not return any data from this link.

https://api.opensea.io/api/v1/assets?owner=0xA48Db0a225703b25ef95B863C1aa44929bBA7FDe

You can see my assets from this link https://opensea.io/M1croNFT

How can i fetch my assets data with opensea api?

1

There are 1 best solutions below

1
On

Most likely, your problem is that to use the api/v1/assets method. For this request you need to use the api key. This is written in the description of the method in the documentation.

GET api/v1/assets

Please Note: This API endpoint requires an API key to use. Please fill out the API request form to obtain one. Request an API key

So, I think that if you get the key, you will be able to fulfill any request

Another option is to use queries in the test network - OPENSEA TESTNETS API. I tried to run a query there and got the correct response.

enter image description here