{"uid":"cap_7XT27IF7vjdo-SvpzvpI5","slug":"nasa-media-library-compare-queries-9d9dc55d","name":"NASA Media Library Compare Queries","description":"Compare two queries in NASA's library: total hits and hits per media type (image, video, audio) with the ratio.","url":"https://nasa-media.x402tookit.com/nasa-media-compare?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["q1","q2"],"properties":{"q1":{"type":"string","description":"First query, up to 100 characters"},"q2":{"type":"string","description":"Second query, up to 100 characters"},"media_type":{"type":"string","description":"Limit the comparison to image, video or audio; default all three"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"q1":{"type":["null","object"],"properties":{"query":{"type":["null","string"]},"total":{"type":["null","number"]},"byMediaType":{"type":["null","object"],"properties":{"audio":{"type":["null","number"]},"image":{"type":["null","number"]},"video":{"type":["null","number"]}}}}},"q2":{"type":["null","object"],"properties":{"query":{"type":["null","string"]},"total":{"type":["null","number"]},"byMediaType":{"type":["null","object"],"properties":{"audio":{"type":["null","number"]},"image":{"type":["null","number"]},"video":{"type":["null","number"]}}}}},"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"ratioQ1ToQ2":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dMMSFU73x4WOAAEmJHxNX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two search queries against NASA's media library, returning total hit counts and breakdowns by media type (image, video, audio) with the ratio between them.","exampleAgentPrompt":"Compare 'Apollo' and 'Artemis' in NASA's media library — I want to see the total hit counts for each, broken down by images, videos, and audio, and the ratio between them.","exampleUseCases":[{"title":"Moon vs Mars media coverage comparison","prompt":"Can you compare how much NASA media exists for 'Moon' versus 'Mars'? I want the total counts, image/video/audio breakdown, and the ratio between them."},{"title":"Mission popularity in NASA library","prompt":"Compare 'Apollo 11' and 'Space Shuttle' in NASA's image and video library — which one has more total coverage and what's the ratio?"},{"title":"NASA video coverage of two astronauts","prompt":"I want to see how NASA's media library coverage compares between 'Neil Armstrong' and 'Buzz Aldrin' — total hits and a breakdown by image, video, and audio, videos only please."}],"resultDescription":"Returns a JSON object with both query strings, their total hit counts, per-media-type counts (image, video, audio), the ratio of q1 to q2, a natural language summary and verdict, a timestamp (asOf), source URL, and optional degraded/disclaimer flags if the data is partial.","failureModes":["Missing required q1 or q2 parameters returns an error","Query strings exceeding 100 characters may be rejected","NASA API upstream unavailability may return degraded or null results","Invalid media_type value (not image, video, or audio) may be ignored or error","Rate limiting from the underlying NASA API may cause timeouts"],"whenToPreferThis":"Use this endpoint when you need a side-by-side quantitative comparison of two topics in NASA's media library rather than a raw search. It's ideal when you want to understand relative media coverage, popularity, or content volume between two subjects without manually running two searches and doing the math yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:31:12.066Z","isFirstParty":false,"canonicalSlug":"nasa-media-library-compare-queries-9d9dc55d"}