The Logo API provides logo images for tens of thousands of different companies.
https://api.api-ninjas.com/v1/logo
Get a list of company names, ticker symbols, and logo image URLs matching the input parameters. Returns at most 10
results.
Either name
or ticker
parameter is required.
name
optionalCompany name.
ticker
optionalCompany ticker symbol.
X-Api-Key
requiredAPI Key associated with your account.
https://api.api-ninjas.com/v1/logo?name=Microsoft
Headers
X-Api-Key
Log in or sign up to get your API Key
1
2
3
4
5
6
7
[
{
"name": "Microsoft",
"ticker": "MSFT",
"image": "https://api-ninjas-data.s3.us-west-2.amazonaws.com/logos/https://api-ninjas-data.s3.us-west-2.amazonaws.com/logos/l11f3242118ff2add5d117cbf216f29ac578f6ba6.png"
}
]
1
2
3
4
5
6
7
8
import requests
name = 'Microsoft'
api_url = 'https://api.api-ninjas.com/v1/logo?name={}'.format(name)
response = requests.get(api_url, headers={'X-Api-Key': 'YOUR_API_KEY'})
if response.status_code == requests.codes.ok:
print(response.text)
else:
print("Error:", response.status_code, response.text)
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.