Skip to content
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

"thumbnail_url" is empty for "media_type": "video" #130

Open
art-chen-v opened this issue Mar 26, 2025 · 1 comment
Open

"thumbnail_url" is empty for "media_type": "video" #130

art-chen-v opened this issue Mar 26, 2025 · 1 comment

Comments

@art-chen-v
Copy link

Hello,

JSON response has empty "thumbnail_url" with "media_type": "video".
Request url: https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&end_date=2025-03-25&start_date=2025-03-02&thumbs=true

Maybe because "media_type" is not actually a video. It is an interactive picture: https://apod.nasa.gov/apod/image/1803/AstroSoM/hudf.html

{
    "date": "2025-03-02",
    "explanation": "Have you heard about the Hubble Ultra-Deep Field?  Either way, you've likely not heard about it like this -- please run your cursor over the featured image and listen!  The Hubble Ultra-Deep Field (HUDF) was created in 2003-2004 with the Hubble Space Telescope staring for a long time toward near-empty space so that distant, faint galaxies would become visible.  One of the most famous images in astronomy, the HUDF is featured here in a vibrant way -- with sonified distances. Pointing to a galaxy will play a note that indicates its approximate redshift. Because redshifts shift light toward the red end of the spectrum of light, they are depicted here by a shift of tone toward the low end of the spectrum of sound.  The further the galaxy, the greater its cosmological redshift (even if it appears blue), and the lower the tone that will be played. The average galaxy in the HUDF is about 10.6 billion light years away and sounds like an F#. What's the most distant galaxy you can find?",
    "media_type": "video",
    "service_version": "v1",
    "thumbnail_url": "",
    "title": "The Hubble Ultra Deep Field in Light and Sound",
    "url": "https://apod.nasa.gov/apod/image/1803/AstroSoM/hudf.html"
  }
@oliveratgithub
Copy link

I think this is by design (unfortunately). I solved this by using a custom static image whenever APOD is a Video / HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants