Logo API for PHP & Laravel
Simple PHP function and Laravel Blade directive for logo URL generation.
What is apistemic logos?
A free logo API that returns company logos by domain or LinkedIn slug.
Any Company
Fetch logos for any domain — from Fortune 500 to startups. Just pass the domain and get a logo.
No API Keys
No registration, no authentication, no rate limits for reasonable usage. Just HTTP requests.
WebP Format
All logos served in WebP format — 25-35% smaller than PNG with full transparency support.
Code Examples
Production-ready code you can copy and paste into your project.
<?php
// Basic PHP
function getLogoUrl(string $domain): string {
return "https://logos-api.apistemic.com/domain:{$domain}";
}<?php
// Laravel Blade directive (in AppServiceProvider.php)
Blade::directive('logoUrl', function ($domain) {
return "<?php echo 'https://logos-api.apistemic.com/domain:' . {$domain}; ?>";
});
// In your Blade template
<img src="@logoUrl($company->domain)" alt="{{ $company->name }} logo"><?php
// For caching logos or server-side processing
function fetchLogo(string $domain): string {
$ch = curl_init(getLogoUrl($domain));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Include contact info so we can reach you if needed
curl_setopt($ch, CURLOPT_USERAGENT, 'MyApp ([email protected])');
$logo = curl_exec($ch);
curl_close($ch);
return $logo;
}Free with Attribution
The logo API is completely free. Just add a visible attribution link.
- ✓Add a backlink on your homepage and on pages displaying logos
- ✓Use a User-Agent with contact information for server-side requests
Add this link:
Logos by <a href="https://logos.apistemic.com">apistemic logos</a>Server-side? Use a User-Agent with contact info and limit to 1 rps. We verify attribution. Don't use rel="nofollow". See full rules.
Can't add attribution? Let's talk.
Related Integrations
Explore more ways to integrate the Logo API.
Ready to integrate?
Try the API live or explore all available integrations.