python知識手冊
SpaceX于美國東部時間5月30日下午3:22分將兩位美國宇航員送往國際空間站,雖然這只是Demo任務,但SpaceX已經以其卓越工程優勢、低廉的發射成本贏得了全球航天產業的信賴。同時也是除美俄中這些航天國家隊以外,唯一獨立實現載人航天的商業公司。
成立于2002年,創始人Elon Musk(馬斯克)31歲,歷經18年,期間多次失敗、面臨破產甚至被嘲笑譏諷,其挑戰科技巔峰,降低火箭發射價格,帶動了全球商業航天熱潮,激勵無數青年才俊。SpaceX持續挑戰航天科技與人類想象力,推動全球科技發展,智慧創新,為世界、為孩子、為未來,樹立了楷模。
在馬斯克把火箭送上天的同事,SpaceX的粉絲們把火箭的相關信息也上傳到Github上,沖上了Github的熱榜。
這個開源項目就是SpaceX-API
開源地址:
https://github.com/r-spacex/SpaceX-API
APi文檔:
https://docs.spacexdata.com/?version=latest
Github標星高達5.3k。
這個項目是干啥的?
這批優秀的鐵粉,他們整理的API,基本上包含SpaceX成立迄今的所有火箭數據,包括SpaceX的龍飛船、Starship、發射歷史數據、核心艙、起落架、載荷信息等等,應有盡有。

可以選擇任意一門語言,編寫合適的網絡請求,你即可到json格式的回傳數據,例如你直接在瀏覽器中打開
https://api.spacexdata.com/v3/launches/latest 那么你將會得到以下數據
{"flight_number":?95,"mission_name":?"Starlink?7","mission_id":?[],"launch_year":?"2020","launch_date_unix":?1591233900,"launch_date_utc":?"2020-06-04T01:25:00.000Z","launch_date_local":?"2020-06-03T21:25:00-04:00","is_tentative":?false,"tentative_max_precision":?"hour","tbd":?false,"launch_window":?null,"rocket":?{"rocket_id":?"falcon9","rocket_name":?"Falcon?9","rocket_type":?"FT","first_stage":?{"cores":?[{"core_serial":?"B1049","flight":?5,"block":?5,"gridfins":?true,"legs":?true,"reused":?true,"land_success":?true,"landing_intent":?true,"landing_type":?"ASDS","landing_vehicle":?"JRTI"}]},"second_stage":?{"block":?5,"payloads":?[{"payload_id":?"Starlink?7","norad_id":?[],"reused":?false,"customers":?["SpaceX"],"nationality":?"United?States","manufacturer":?"SpaceX","payload_type":?"Satellite","payload_mass_kg":?15400,"payload_mass_lbs":?33951.2,"orbit":?"VLEO","orbit_params":?{"reference_system":?"geocentric","regime":?"very-low-earth","longitude":?null,"semi_major_axis_km":?null,"eccentricity":?null,"periapsis_km":?null,"apoapsis_km":?null,"inclination_deg":?null,"period_min":?null,"lifespan_years":?null,"epoch":?null,"mean_motion":?null,"raan":?null,"arg_of_pericenter":?null,"mean_anomaly":?null}}]},"fairings":?{"reused":?false,"recovery_attempt":?true,"recovered":?null,"ship":?"GOMSTREE"}},"ships":?[],"telemetry":?{"flight_club":?null},"launch_site":?{"site_id":?"ccafs_slc_40","site_name":?"CCAFS?SLC?40","site_name_long":?"Cape?Canaveral?Air?Force?Station?Space?Launch?Complex?40"},"launch_success":?true,"links":?{"mission_patch":?"https://images2.imgbox.com/d2/3b/bQaWiil0_o.png","mission_patch_small":?"https://images2.imgbox.com/9a/96/nLppz9HW_o.png","reddit_campaign":?"https://www.reddit.com/r/spacex/comments/gamcbr/starlink7_launch_campaign_thread/","reddit_launch":?"https://www.reddit.com/r/spacex/comments/gkfe30/rspacex_starlink_7_official_launch_discussion/","reddit_recovery":?null,"reddit_media":?null,"presskit":?"https://spacextimemachine.com/assets/press_kits/185.pdf","article_link":?null,"wikipedia":?null,"video_link":?"https://youtu.be/y4xBFHjkUvw","youtube_id":?"y4xBFHjkUvw","flickr_images":?["https://live.staticflickr.com/65535/49971196871_a0462d0084_o.jpg","https://live.staticflickr.com/65535/49970682603_e6333945ee_o.jpg"]},"details":?"This?mission?will?launch?the?seventh?batch?of?operational?Starlink?satellites,?which?are?expected?to?be?version?1.0,?from?SLC-40,?Cape?Canaveral?AFS.?It?is?the?eighth?Starlink?launch?overall.?The?satellites?will?be?delivered?to?low?Earth?orbit?and?will?spend?a?few?weeks?maneuvering?to?their?operational?altitude?of?550?km.?The?booster?for?this?mission?is?expected?to?land?on?JRTI?on?its?first?mission?since?arriving?at?Port?Canaveral.","upcoming":?false,"static_fire_date_utc":?"2020-05-13T11:11:00.000Z","static_fire_date_unix":?1589368260,"timeline":?null,"crew":?null,"last_date_update":?"2020-06-03T15:45:37.000Z","last_ll_launch_date":?"2020-06-04T01:25:00.000Z","last_ll_update":?"2020-06-03T15:45:37.000Z","last_wiki_launch_date":?"2020-06-04T01:25:00.000Z","last_wiki_revision":?"f7d37887-a36e-11ea-8ba2-0e4dda687887","last_wiki_update":?"2020-05-31T18:45:59.000Z","launch_date_source":?"launch_library"
}