Effortlessly Find and Display Company Logo Icons! The Logo Icons Lookup API offers a convenient way to retrieve company logos based on partial or full company names. This is especially handy when working with external APIs that provide variations of company names.
Example Use Case: You're given 'American Express Europe Ltd' and need the American Express logo. This API simplifies the process by returning the relevant logo through pattern matching.
Check out our Logo Icon Gallery to see all available logos and the repository for an implementation example.
-
Hosted API: Directly use the hosted API at https://logo-icons-lookup-api-deno.deno.dev and add the logos you need by contributing to this repository. Detailed instructions are available in the Contributing section.
-
Self-Hosting: Fork this repository or use it as a template, and deploy your own instance using Deno Deploy.
Returns a JSON array of all available logo icons
GET /all_logo_icons
string[]
GET https://logo-icons-lookup-api.deno.dev/all_logo_icons
[
"118 118 Money",
"American Express",
"Octopus Energy",
"RateSetter"
]
GET /lookup_logo_icon?logoIconName=:logoIconName
Query Parameter | Type | Default | Required | Description |
---|---|---|---|---|
logoIconName | string | undefined | Yes | Name of logo icon you would like to find |
size | number | 200 | No | An integer between 1 and 200 to resize the logo icon. For performance, you want to set this to the same size you will be rendering in the application |
The logo icon for the company name you provided in .png format.
GET https://logo-icons-lookup-api.deno.dev/lookup_logo_icon?logoIconName=monzo bank&size=50
- Find the logo on sites like Brandfetch or Clearbit logo.
- Ensure the logo is square in dimensions, no less than 200x200 and unique within the repository.
- Name the file after the company it represents.
- Add it to the logoIcons directory.
- Create a PR. GitHub actions will auto-format the image (png, 200x200 square, compressed).
Any other changes, or suggestions are welcome.
Install deno:
curl -fsSL https://deno.land/install.sh | sh
deno run --allow-read --allow-net ./index.ts
deno test --allow-read --allow-net
👤 Craig Robertson
- Website: craigrobertson.me
- Github: @frubesss
- LinkedIn: @robertsoncra
Give a ⭐️ if this project helped you!