Logo API

The Logo API provides logo images for tens of thousands of different companies.

/v1/logo GET

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.


Parameters

    Either name or ticker parameter is required.

  • name  optional

    Company name.

  • ticker  optional

    Company ticker symbol.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Sample Request Live Demo!

name
https://api.api-ninjas.com/v1/logo?name=Microsoft

Sample Response

JSON
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" } ]

Code Examples

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.