Oct 22, 2024 03:41 PM - edited Oct 22, 2024 03:42 PM
I'm creating an automation that uses Brandfetch to download logos. This uses the format:
https://cdn.brandfetch.io/[company website]
e.g. https://cdn.brandfetch.io/www.broward.edu/
However, when I use this URL to upload an image (or if I directly upload an attachment from URL), Airtable is getting confused by the ".io" domain. It thinks it's the file extension, and will upload an image of the brandfetch home page.
I've tried doing a script and have the same problem. Something about this top-level domain is throwing off Airtable.
Does anyone have a suggestion how to get around this?
Oct 22, 2024 07:19 PM
Hi @auekk2787
I think this is an issue with Brandfetch rather than Airtable:
The BrandFetch Guidelines say you can only use this CDN to embed the logos directly in applications, and it has strict requirements around referrers etc., so I believe they're blocking the call by responding with their guidelines page rather than the image.
You might be able to try their Brand API instead, but it looks like that's a paid product.
DJ, Lead Developer at BaseQL
Oct 22, 2024 07:28 PM
I don't think it's to do with the .io; I tried grabbing the assets from the Kubernetes site with the "Convert URL to Attachments" script and they work fine (e.g. https://kubernetes.io/_common-resources/images/flower.svg)
Brandfetch's maybe doing something specifically to prevent this?
Oct 22, 2024 07:39 PM
@djseeds I don't think that's it. I tried doing a similar download using Power Automate, and it had no issue retrieving the file.
The screenshot that Airtable downloads has a ".io" file extension - which is really the top domain. So there's some confusion happening.