NFT collection Explorer API Help

Is there any SDK or API available that display the chain for particular NFT collection and where it’s deployed.?

Example :
Input → bored ape yacht club
Output → Ethereum