NasaAPIWrapper#

class langchain_community.utilities.nasa.NasaAPIWrapper[source]#

Bases: BaseModel

Wrapper for NASA API.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

get_media(query: str) str[source]#
Parameters:

query (str)

Return type:

str

get_media_metadata_location(query: str) str[source]#
Parameters:

query (str)

Return type:

str

get_media_metadata_manifest(query: str) str[source]#
Parameters:

query (str)

Return type:

str

get_video_captions_location(query: str) str[source]#
Parameters:

query (str)

Return type:

str

run(mode: str, query: str) str[source]#
Parameters:
  • mode (str)

  • query (str)

Return type:

str

Examples using NasaAPIWrapper