{"uid":"cap__4TqkKdlDo0Q7YJO7PF7I","slug":"nasa-media-library-collection-stats-45c2df87","name":"NASA Media Library Collection Stats","description":"Count NASA library items matching a query, broken down by year or by center, using the API's total hit counts.","url":"https://nasa-media.x402tookit.com/nasa-collection-stats?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":["q"],"properties":{"q":{"type":"string","description":"Search words, up to 100 characters"},"group_by":{"type":"string","description":"year (default) or center"},"year_end":{"type":"integer","description":"group_by=year: last year, up to 15 years after year_start (default: current year)"},"media_type":{"type":"string","description":"image, video or audio (comma-separate for several); default all"},"year_start":{"type":"integer","description":"group_by=year: first year, 1900 to 2100 (default: 9 years before year_end)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"peak":{"type":["null","object"],"properties":{"hits":{"type":["null","number"]},"label":{"type":["null","string"]}}},"query":{"type":["null","string"]},"source":{"type":["null","string"]},"buckets":{"type":["array","null"],"items":{"type":"object","properties":{"hits":{"type":["null","number"]},"year":{"type":["null","string"]},"share":{"type":["null","number"]}}}},"groupBy":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"mediaType":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"totalHits":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"bucketedHits":{"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_OnfGbr3l44hqbK_iwsk1W","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":"Count NASA media library items matching a query, broken down by year or by NASA center, using total hit counts from the NASA Image and Video Library API.","exampleAgentPrompt":"How many NASA images and videos exist for 'space shuttle', broken down by year from 1970 to 2011?","exampleUseCases":[{"title":"Track NASA moon coverage over time","prompt":"Can you count how many NASA media items exist for 'moon landing', grouped by year from 1960 to 1975, so I can see how coverage peaked around Apollo?"},{"title":"Compare NASA center contributions to a topic","prompt":"Which NASA center has published the most media about 'James Webb Space Telescope'? Break it down by center for me."},{"title":"Analyze NASA Mars video coverage by year","prompt":"How many NASA videos about 'Mars rover' are in the library each year from 2000 to 2024? I want to see which years had the most footage."}],"resultDescription":"Returns total hit count, bucketed counts (by year or center), share percentages per bucket, the peak bucket (label + hits), a plain-language summary, the original query, media type filter applied, data source URL, and optional degraded/disclaimer flags.","failureModes":["Missing required 'q' parameter returns an error","Query exceeding 100 characters may be rejected","Invalid media_type value (not image/video/audio) causes an error","year_end more than 15 years after year_start may be rejected","group_by value other than 'year' or 'center' causes an error","NASA upstream API downtime may result in degraded or null bucket data"],"whenToPreferThis":"Use this endpoint when you need aggregate statistics or trend analysis over NASA's media library — specifically hit counts grouped by year or center — rather than fetching actual media items or metadata. Prefer this over the search endpoint when the goal is counting, comparing volumes, or identifying peak periods of coverage for a topic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:30:44.753Z","isFirstParty":false,"canonicalSlug":"nasa-media-library-collection-stats-45c2df87"}