Skip to content

How to retrieve images for branding.icon_url and branding.logo_url #878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nodesocket opened this issue May 8, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@nodesocket
Copy link

nodesocket commented May 8, 2025

Since the url endpoints for the icon_url and logo_url require authentication, are there methods for retrieving those images using my api key?

POLYGON_API_KEY = os.getenv("POLYGON_API_KEY")

client = RESTClient(POLYGON_API_KEY)

ticker_details = client.get_ticker_details(
    "AAPL"
)

print(ticker_details.branding.icon_url)
print(ticker_details.branding.logo_url)

# urls below require auth
# https://api.polygon.io/v1/reference/company-branding/YXBwbGUuY29t/images/2025-04-04_icon.png
# https://api.polygon.io/v1/reference/company-branding/YXBwbGUuY29t/images/2025-04-04_logo.svg
@nodesocket nodesocket added the enhancement New feature or request label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant