{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"b98647c9-b976-4ac4-b17a-f5a44ff0038a","catalogType":"api","categories":["web-tools","search-research","data"],"dataPlatform":"wayback-machine","dataPlatformLogoUrl":"https://api.sh/logos/wayback-machine.png","dataPlatformTranslations":{},"dataProduct":"web-archive","description":"Get Wayback Nearest Capture data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, url, and retrieve structured data including available, matched archived URL, formatted capture timestamp, archived HTTP status code, and wayback Machine viewer URL to verify archive existence, resolve fallback links, and locate point-in-time evidence.","descriptionTranslations":{"ar":"تحقق من وجود أرشفة لصفحة ويب في Wayback Machine واعثر على أقرب لقطة لتاريخ محدد عبر OpenAny REST. أرسل الرابط والوقت الاختياري لاستلام حالة التوفر وتوقيت اللقطة الدقيق ورمز حالة HTTP المؤرشف وروابط العرض والملف الخام قبل جلب المحتوى الكامل.","ja":"OpenAny REST で対象 URL が Wayback Machine に保存されているか確認し、指定日時に最も近いスナップショットを特定できます。URL と任意の日時を渡すと、存在フラグ、取得日時、HTTP ステータス、閲覧用・生データ用 URL を返します。","zh":"通过 OpenAny REST 检查网页是否已被 Wayback Machine 归档，并定位最接近指定日期的快照。传入目标 URL 与可选时间戳，即可返回可用性标记、实际抓取时间、归档 HTTP 状态码以及查看页和原始归档链接，便于在拉取全文前先确认可用性。"},"effectContentHtml":"","executionMode":"sync","id":"1deb58ed-c98d-418b-a8e4-60043677707a","includedContentHtml":"","inputs":[{"description":"A page link or a domain, with or without https://.","location":"query","name":"url","nullable":false,"required":true,"type":"string"},{"description":"Date: YYYY, YYYYMM, YYYYMMDD or YYYYMMDDhhmmss (dashes allowed).","location":"query","name":"timestamp","nullable":false,"required":false,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/wayback-machine.png","method":"GET","name":"Wayback Machine nearest-date capture lookup API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eWayback Nearest Capture API\u003c/h2\u003e\n\u003cp\u003eSend url and optional timestamp (YYYY, YYYYMM, YYYYMMDD or YYYYMMDDhhmmss) in the GET query string. The lightweight response returns available, timestamp, date, status, snapshot_url and raw_url for the nearest matching archive capture.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired query: url. Optional timestamp (YYYY/YYYYMM/YYYYMMDD/YYYYMMDDhhmmss), raw=0, fields and fresh=1.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Wayback Machine nearest-date capture lookup API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eVerify archive existence\u003c/strong\u003e: Check available and status before queuing heavier full-page extraction calls.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eResolve fallback links\u003c/strong\u003e: Replace dead outbound links with snapshot_url closest to the original publication date.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eLocate point-in-time evidence\u003c/strong\u003e: Find the nearest capture to a compliance or audit date using timestamp.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eavailable\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBoolean indicating whether a snapshot was found\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eurl\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMatched archived URL\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erequested\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOriginal requested URL or parameters\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etimestamp\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003e14-digit timestamp of the nearest capture\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003edate\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFormatted capture timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003estatus\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eArchived HTTP status code\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esnapshot_url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eWayback Machine viewer URL\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eraw_url\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDirect raw archived content URL\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/wayback/v1/closest \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode output=json \\\n  --data-urlencode url=example.com\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/1deb58ed-c98d-418b-a8e4-60043677707a\"\u003ePublished Wayback Nearest Capture API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat does available=false mean?\u003c/h3\u003e\n\u003cp\u003eIt means no matching Wayback Machine snapshot was found for the requested URL.\u003c/p\u003e\n\u003ch3\u003eIs the returned timestamp guaranteed to match my requested date?\u003c/h3\u003e\n\u003cp\u003eNo. The endpoint returns the nearest available capture; compare timestamp and date against your target.\u003c/p\u003e\n\u003ch3\u003eWhat date formats does timestamp accept?\u003c/h3\u003e\n\u003cp\u003ePass YYYY, YYYYMM, YYYYMMDD or YYYYMMDDhhmmss (dashes are allowed).\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint return the page\u0026#39;s HTML or Markdown text?\u003c/h3\u003e\n\u003cp\u003eNo. It returns capture availability and URLs; pass the resolved timestamp to the Wayback Historical Page API to read content.\u003c/p\u003e\n\u003ch3\u003eCan I pass a domain without https://?\u003c/h3\u003e\n\u003cp\u003eYes. url accepts a page link or domain with or without the https:// scheme.\u003c/p\u003e\n\u003ch3\u003eHow do I check for newly archived captures?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1 to bypass the 24-hour cache.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wayback-machine/wayback-machine-captures-of-a-url-api\"\u003eWayback Machine Captures API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wayback-machine/wayback-machine-historical-page-content-api\"\u003eWayback Historical Page API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wayback-machine/wayback-machine-page-and-site-capture-statistics-api\"\u003eWayback Capture Stats API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/wayback-machine/wayback-machine-nearest-date-capture-lookup-api?offering=1deb58ed-c98d-418b-a8e4-60043677707a","providerId":"apish","publicPath":"/v1/agent-apis/apish/wayback/v1/closest","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"output":"json","url":"example.com"}},"response_body":{"available":true,"cached":false,"credits_used":1,"date":"2007-01-09T18:48:16Z","raw_url":"https://web.archive.org/web/20070109184816id_/http://www.apple.com/","requested":"2007-01-09","snapshot_url":"https://web.archive.org/web/20070109184816/http://www.apple.com/","status":200,"timestamp":"20070109184816","url":"apple.com"}}],"seoDescription":"Get Wayback Nearest Capture data via REST or MCP powered by Apish. Pay per call, no subscription. Get available and matched archived URL in JSON.","updatedAt":"2026-12-03T02:39:05.373Z","usageInstructionsHtml":""}}