Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 15, 2025

Clearbit's free Logo API (logo.clearbit.com) is being discontinued December 1, 2025. This replaces it with Google's Favicon Service.

Changes

website/models.py - Domain.get_logo() method:

  • Replaced Clearbit API call with Google Favicon Service URL generation
  • Removed image download/save logic - now returns direct URL
  • Uses https://www.google.com/s2/favicons?domain={domain}&sz=128 (128px for quality)
  • Cleaned up unused ContentFile import

Before:

def get_logo(self):
    if self.logo:
        return self.logo.url
    image_request = requests.get("https://logo.clearbit.com/" + self.name)
    try:
        if image_request.status_code == 200:
            image_content = ContentFile(image_request.content)
            self.logo.save(self.name + ".jpg", image_content)
            return self.logo.url
    except:
        favicon_url = self.url + "/favicon.ico"
        return favicon_url

After:

def get_logo(self):
    if self.logo:
        return self.logo.url
    # Use Google's favicon service as a free alternative to Clearbit
    parsed_url = urlparse(self.url if "://" in self.url else f"http://{self.url}")
    domain = parsed_url.netloc or self.name
    favicon_url = f"https://www.google.com/s2/favicons?domain={domain}&sz=128"
    return favicon_url

Impact

  • No API key required, no authentication
  • Eliminates local storage of downloaded images
  • All existing templates using get_logo() work unchanged
  • Existing saved logos still preferred (check happens first)

Net: -4 lines, simpler code, no dependencies on deprecated service.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.google.com
    • Triggering command: /home/REDACTED/.cache/pypoetry/virtualenvs/blt-yuw0N2NF-py3.12/bin/python /tmp/test_favicon_service.py (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>:warning: Clearbit’s Free Logo API (logo.clearbit.com) is Being Discontinued – Update Required</issue_title>
<issue_description># 🚨 Deprecation Notice 🚨

Clearbit's free Logo API (logo.clearbit.com) will be discontinued on December 1, 2025, and will stop working on that date.

What You Need to Know:

We have identified your project as one that uses logo.clearbit.com - you’ll need to migrate to an alternative solution.
We’ve shared detailed information and alternative approaches in our announcement on the HubSpot Developer Community.

Recommended Next Steps

  1. Audit your code: Identify where logo.clearbit.com is used
  2. Consider alternatives: Review options and recommendations in our official post
  3. Update dependencies: If this project is part of a larger system, notify relevant maintainers

We appreciate all the developers who have used this service over the years! Check out the HubSpot Developer Community for more details.
</issue_description>

<agent_instructions>remove any clearbit code and use the google favicon icon url as a replacement or if there is a free open source logo service use that for higher quality images - no API key required </agent_instructions>

Comments on the Issue (you are @copilot in this section)

@DonnieBLT Thank you @denraf ! This was very nice of you / Clearbit to do sending a notification this way.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 15, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Update project to migrate from Clearbit's Logo API Replace deprecated Clearbit Logo API with Google Favicon Service Nov 15, 2025
Copilot AI requested a review from DonnieBLT November 15, 2025 20:20
@DonnieBLT DonnieBLT marked this pull request as ready for review November 16, 2025 02:56
@github-actions github-actions bot added the unresolved-conversations: 0 PR has 0 unresolved conversations label Nov 16, 2025
@DonnieBLT DonnieBLT merged commit c06afce into main Nov 16, 2025
21 checks passed
@DonnieBLT DonnieBLT deleted the copilot/update-clearbit-logo-api branch November 16, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

files-changed: 1 unresolved-conversations: 0 PR has 0 unresolved conversations

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

⚠️ Clearbit’s Free Logo API (logo.clearbit.com) is Being Discontinued – Update Required

2 participants