I am trying to get the metadata (such as organization name, logo) of asset issuers in the Stellar network.
What API should I use that could possibly contain this information when I pass the Public Key, I can't find such API in stellar labaratory?
Stellar Stack Exchange is a question and answer site for developers and users of Stellar and the Stellar Distributed Exchange. It only takes a minute to sign up.
Sign up to join this communityfrom stellar docs metadata is attached to the issuer account. To retrieve this info you can use the following api request
https://horizon.stellar.org/accounts/:issuer
where issuer is the issuer's public key and metadata are the data
entry in the ouput.
Or with stellar-sdk in javascript
const server = new StellarSdk.Server("https://horizon.stellar.org/");
const account = await server.loadAccount(issuerPublicKey);
console.log(JSON.stringify(account.data_attr));