Find Floor Of Opensea NFT
Solution 1:
I have no idea why this works, but...
https://api.opensea.io/collection/${slug}
slug
= the collection slug (name in URL).
For reference, I found this in some random other library's documentation... But it seems to work
Solution 2:
Floor price is for collections (contracts). Opensea api does have a collections endpoint but it can't filter by anything except owner address. So you have to know the address of someone why owns a token I guess, which seems pretty retarded.
Also you can get the owner of a token from the assets endpoint which can filter by contract address and token id.