【NASA APIs】APOD

APOD

Astronomy Picture of the Day(每日天文图片)

NASA每日天文图片中最受欢迎的一个网站,事实上,这个网站也是联邦机构网站中最受欢迎的,它比贾斯汀比伯的视频更有吸引力,这个接受数据的终端地址构造了APOD图像和相关的元数据以便其他应用调用。此外,如果concept_tags参数设置为true,则图像的关键字会从返回数据中的图像解释中自动生成,这些关键字可以用作twitter或instagram的图片标签,这通常有助于发现相关联的图片。

Example image:


HTTP Request

GET  https://api.nasa.gov/planetary/apod

concept_tags are now disabled in this service. Also, an optional return parameter copyright is returned if the image is not public domain.

Query Parameters

ParameterTypeDefaultDescription
dateYYYY-MM-DDtodayThe date of the APOD image to retrieve
hdboolFalseRetrieve the URL for the high resolution image
api_keystringDEMO_KEYapi.nasa.gov key for expanded usage

Example query

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY

返回Json

{
  "date(日期)": "2019-10-29",
  "explanation(解释)": "Why is there clay on Mars? On Earth, clay can form at the bottom of a peaceful lake when specific minerals trap water.  At the pictured site on Mars, the robotic rover Curiosity drilled into two rocks and found the highest concentration of clay yet.  The clay cache is considered addition evidence that Gale Crater once held water in the distant past.  Pictured, 57 images taken by Curiosity have been combined into a selfie. The images were taken by a camera at the end of its robotic arm. Many details of the car-sized rover are visible, including its rugged wheels, numerous scientific instruments, and a high mast that contains camera \"eyes\", one of which can shoot out an infrared laser beam.  Curiosity continues to roll around and up Mount Sharp -- in the center of Gale Crater -- in a search for new clues about the ancient history of Mars and whether or not the red planet once had conditions that could support life.",
  "hdurl(高清图片地址)": "https://apod.nasa.gov/apod/image/1910/ClayCache_Curiosity_9990.jpg",
  "media_type(媒体信息)": "image",
  "service_version(服务版本)": "v1",
  "title(标题)": "Curiosity Rover Finds a Clay Cache on Mars",
  "url(图片地址)": "https://apod.nasa.gov/apod/image/1910/ClayCache_Curiosity_960.jpg"
}
5 1 投票
文章评分
订阅评论
提醒
guest
1 评论
最旧
最新 最多投票
内联反馈
查看所有评论
新闻头条
3 年 前

文章不错非常喜欢

1
0
希望看到您的想法,请您发表评论x