๐ Features
Free to Use
No registration or API keys required.
Global Coverage
Access logos for companies worldwide.
Easy Integration
Simple API endpoint for SVG logos.
Comprehensive Data
JSON file with company slugs and symbols.
๐ Supported Stock Exchanges
NYSE
NASDAQ
LSE
XETRA
SZSE
TSE
NSE
ASX
๐ Getting Started
Prerequisites
- ๐ Basic knowledge of HTTP requests.
- ๐ Access to
companies.json
file containing company slugs and exchange symbols.
Installation
No installation required! You can start using the API by making HTTP requests to the endpoint.
๐ API Usage
1๏ธโฃ Fetch Company Slugs
Get company slugs from the companies.json
file. The file follows this format:
{ "totalCount": 131280, "data": [ { "s": "SZSE:000001", "d": [ "ping-an" ] }, { "s": "SZSE:000002", "d": [ "china-vanke-co" ] } ] }
2๏ธโฃ API Endpoint
Replace {slug}
with the company slug from companies.json
.
3๏ธโฃ Example Request
To fetch the Ping An logo (ping-an
):
๐ Sample Code (Python)
import requests slug = "ping-an" url = f"https://logo.tradient.org/v1/{slug}.svg" response = requests.get(url) if response.status_code == 200: with open(f"{slug}.svg", "wb") as file: file.write(response.content) print(f"Logo for {slug} saved successfully.") else: print(f"Failed to fetch logo for {slug}. Status code: {response.status_code}")
๐งช Try it yourself
Try these: apple microsoft amazon
๐ค Contributing
Contributions are welcome! If you have any improvements, bug fixes, or feature suggestions, follow these steps:
๐ License
This project is licensed under the MIT License. See the LICENSE file for details.
๐ Acknowledgments
๐ Thanks to contributors and maintainers of the companies.json
file for providing comprehensive data.
๐ Special thanks to Tradient for providing the logo API.