Comments (6)
+1
from api-docs.
thanks for the note. I'll get back to you shortly. sorry for the delay!
from api-docs.
Ok! Slowly checking this off. I will close this comment when I update the docs. There is a now new parameter, hd
, which defaults to False
for both endpoints discussed here. For example,
https://api.nasa.gov/planetary/apod?date=2015-04-27&api_key=DEMO_KEY
{
"url": "http://apod.nasa.gov/apod/image/1504/SpaceStationTerminator_Caxete_960.jpg",
"media_type": "image",
"explanation": "What's that in front of the Moon? It's the International Space Station. Using precise timing, the Earth-orbiting space platform was photographed in front of a partially lit Moon last year. The featured image was taken from Madrid, Spain with an exposure time of only 1/1000 of a second. In contrast, the duration of the transit of the ISS across the entire Moon was about half a second. The sun-glinting station can be seen just to the dark side of the day / night line known as the terminator. Numerous circular craters are visible on the distant Moon, as well as comparatively rough, light colored terrain known as highlands, and relatively smooth, dark colored areas known as maria. On-line tools can tell you when the International Space Station will be visible from your area. Follow APOD on: Facebook, Google Plus, or Twitter",
"concepts": null,
"title": "Space Station over Lunar Terminator"
}
VERSUS
https://api.nasa.gov/planetary/apod?date=2015-04-27&hd=True&api_key=DEMO_KEY
{
"url": "http://apod.nasa.gov/apod/image/1504/SpaceStationTerminator_Caxete_2048.jpg",
"media_type": "image",
"explanation": "What's that in front of the Moon? It's the International Space Station. Using precise timing, the Earth-orbiting space platform was photographed in front of a partially lit Moon last year. The featured image was taken from Madrid, Spain with an exposure time of only 1/1000 of a second. In contrast, the duration of the transit of the ISS across the entire Moon was about half a second. The sun-glinting station can be seen just to the dark side of the day / night line known as the terminator. Numerous circular craters are visible on the distant Moon, as well as comparatively rough, light colored terrain known as highlands, and relatively smooth, dark colored areas known as maria. On-line tools can tell you when the International Space Station will be visible from your area. Follow APOD on: Facebook, Google Plus, or Twitter",
"concepts": null,
"title": "Space Station over Lunar Terminator"
}
from api-docs.
Hi, that's not exactly the solution I was hoping for. Usually I need in my app both standard image for preview and HD image for download. For getting both images I'd need to use two requests, or just one and use the HD image everywhere.
Better solution could be having in the response both "url": and "hdurl": with both images?
from api-docs.
I added this functionality. Please keep me posted on what you're doing with it!! I'd love to see.
https://api.nasa.gov/planetary/apod?date=2015-06-05&hd=True&api_key=DEMO_KEY
{
"concepts": null,
"url": "http://apod.nasa.gov/apod/image/1506/FlashMoon_OT_from_ORM_140km-DLopez_840mm600.jpg",
"media_type": "image",
"explanation": "Follow a sunset on a clear day against a distant horizon and you might glimpse a green flash just as the Sun disappears, the sunlight briefly refracted over a long sight-line through atmospheric layers. You can spot a green flash at sunrise too. Pinpointing the exact place and time to see the rising Sun peeking above the horizon is a little more difficult though, and it can be harder still to catch a green flash from the fainter rising Moon. But well-planned snapshots did record a green flash at the Full Moon's upper edge on June 2nd, from the Roque de los Muchachos Observatory on the Canary Island of La Palma. Looking a little south of due east, this long telephoto view finds the rising Moon above mountains and a sea of clouds. In sunlit profile are the mountaintop Teide Observatory telescope domes on the island of Tenerife some 143 kilometers away.",
"title": "Green Flash at Moonrise",
"hdurl": "http://apod.nasa.gov/apod/image/1506/FlashMoon_OT_from_ORM_140km-DLopez_840mm.jpg"
}
from api-docs.
Note: HD flag in the lastest refactor is allowed, but effectively does nothing. We always pass back hdurl and url if they are available.
from api-docs.
Related Issues (20)
- API Key in the open?
- Broken Link: Satellite Situation Center HOT 3
- APOD API 503 error HOT 6
- APOD 502 Bad Gateway HOT 1
- Making an API call even with the DEMO_KEY is returing 502 Bad Gateway HOT 1
- APOD endpoint returning 502 HOT 3
- APOD endpoint returns 504 HOT 5
- EONET API v3 get response is not valid json HOT 1
- HORIZONS api response in JSON format looks weird HOT 2
- Unable to create an API Key HOT 1
- Satellite Situation Center Links broken?
- Planetary Earth API Not Working HOT 4
- Typographical error on "earth"
- OVER_RATE_LIMIT across APIs and Keys HOT 2
- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "api.nasa.gov": No address associated with hostname HOT 1
- API for GCN circulars
- Mars Rover Photos: curiosity and spirit off air HOT 1
- APOD-Api, EPICData, Nasa Image and Video Lib (new doc) not working
- Link about EONET API documentation leads to depracated API.
- Internal Server error (500) when using earth api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-docs.