# NASA Media Library Search NASA's Image and Video Library: photos, video and audio with dates, centers, rights fields and asset files. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://nasa-media.x402tookit.com/openapi.json - x402 manifest: https://nasa-media.x402tookit.com/.well-known/x402 - Catalog (free): https://nasa-media.x402tookit.com/catalog - Health (free): https://nasa-media.x402tookit.com/health - Uptime (free): https://nasa-media.x402tookit.com/uptime ## Endpoints (8) ### GET /apollo-photo-search — $0.02 Find Apollo mission photos and media (missions 7 to 17) in NASA's library, with mission year and photo-id prefix. Params: mission: integer, topic?: string, media_type?: string, n?: integer Example: https://nasa-media.x402tookit.com/apollo-photo-search?mission=11&topic=flag&n=5 ### GET /mars-media — $0.02 Find Mars rover and lander images, video and audio in NASA's library by rover, with extra words and year filters. Params: rover?: string, topic?: string, media_type?: string, year_start?: integer, year_end?: integer, n?: integer Example: https://nasa-media.x402tookit.com/mars-media?rover=perseverance&topic=selfie&media_type=image&n=5 ### GET /nasa-asset — $0.02 List the file URLs for a NASA library item by nasa_id: original, large, medium, small, thumbnail, captions, metadata. Params: nasa_id: string Example: https://nasa-media.x402tookit.com/nasa-asset?nasa_id=as11-40-5874 ### GET /nasa-collection-stats — $0.05 Count NASA library items matching a query, broken down by year or by center, using the API's total hit counts. Params: q: string, group_by?: string, year_start?: integer, year_end?: integer, media_type?: string Example: https://nasa-media.x402tookit.com/nasa-collection-stats?q=moon&group_by=year&year_start=1966&year_end=1972&media_type=image ### GET /nasa-media-by-center — $0.02 Media from one NASA center (JSC, GSFC, JPL, ARC, KSC, MSFC...) with optional words and years; returns the center code list. Params: center: string, q?: string, media_type?: string, year_start?: integer, year_end?: integer, n?: integer Example: https://nasa-media.x402tookit.com/nasa-media-by-center?center=JPL&q=europa&media_type=image&n=5 ### GET /nasa-media-compare — $0.05 Compare two queries in NASA's library: total hits and hits per media type (image, video, audio) with the ratio. Params: q1: string, q2: string, media_type?: string Example: https://nasa-media.x402tookit.com/nasa-media-compare?q1=apollo+11&q2=apollo+17 ### GET /nasa-metadata — $0.03 EXIF-style metadata summary for a NASA library item: title, dates, size, camera, keywords, credit and copyright fields. Params: nasa_id: string Example: https://nasa-media.x402tookit.com/nasa-metadata?nasa_id=as11-40-5874 ### GET /nasa-search — $0.02 Search NASA's Image and Video Library by words, media type, year range and center; titles, dates, centers, thumbnails, rights. Params: q: string, media_type?: string, year_start?: integer, year_end?: integer, center?: string, n?: integer, page?: integer Example: https://nasa-media.x402tookit.com/nasa-search?q=apollo+11+flag&media_type=image&year_start=1969&year_end=1969&n=5 ## Terms Search results and metadata come from NASA's public Image and Video Library API and are provided as is. NASA-created media is generally not copyrighted in the US but some items carry third-party rights; check the copyright and secondary_creator fields and NASA's usage guidelines before reuse. Titles and descriptions are the uploader's words. Not affiliated with or endorsed by NASA.