MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / get_archive_data

Function get_archive_data

web_programming/nasa_data.py:32–37  ·  view source on GitHub ↗

Get the data of a particular query from NASA archives

(query: str)

Source from the content-addressed store, hash-verified

30
31
32def get_archive_data(query: str) -> dict:
33 """
34 Get the data of a particular query from NASA archives
35 """
36 url = "https://images-api.nasa.gov/search"
37 return httpx.get(url, params={"q": query}, timeout=10).json()
38
39
40if __name__ == "__main__":

Callers 1

nasa_data.pyFile · 0.85

Calls 2

jsonMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected