[{"data":1,"prerenderedAt":508},["ShallowReactive",2],{"navigation_docs":3,"-providers-wayback":88,"-providers-wayback-surround":503},[4,40],{"title":5,"path":6,"stem":7,"children":8,"icon":39},"Guide","\u002Fguide","1.guide\u002F1.index",[9,11,15,19,23,27,31,35],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Listing Captures","\u002Fguide\u002Fsnapshots","1.guide\u002F2.snapshots",{"title":16,"path":17,"stem":18},"Reading Captures","\u002Fguide\u002Fcontent","1.guide\u002F3.content",{"title":20,"path":21,"stem":22},"Comparing Versions","\u002Fguide\u002Fdiff","1.guide\u002F4.diff",{"title":24,"path":25,"stem":26},"Configuration","\u002Fguide\u002Fconfiguration","1.guide\u002F5.configuration",{"title":28,"path":29,"stem":30},"Agents","\u002Fguide\u002Fagents","1.guide\u002F6.agents",{"title":32,"path":33,"stem":34},"Custom Providers","\u002Fguide\u002Fcustom","1.guide\u002F7.custom",{"title":36,"path":37,"stem":38},"Explorer","\u002Fguide\u002Fexplorer","1.guide\u002F8.explorer","i-lucide-book-open",{"title":41,"path":42,"stem":43,"children":44,"icon":87},"Providers","\u002Fproviders","2.providers\u002F0.index",[45,47,51,55,59,63,67,71,75,79,83],{"title":46,"path":42,"stem":43},"Overview",{"title":48,"path":49,"stem":50},"Wayback Machine","\u002Fproviders\u002Fwayback","2.providers\u002F01.wayback",{"title":52,"path":53,"stem":54},"Arquivo.pt","\u002Fproviders\u002Farquivo","2.providers\u002F02.arquivo",{"title":56,"path":57,"stem":58},"Webarchiv Österreich","\u002Fproviders\u002Fwebarchiv","2.providers\u002F03.webarchiv",{"title":60,"path":61,"stem":62},"Archive.today","\u002Fproviders\u002Farchive-today","2.providers\u002F04.archive-today",{"title":64,"path":65,"stem":66},"Common Crawl","\u002Fproviders\u002Fcommoncrawl","2.providers\u002F05.commoncrawl",{"title":68,"path":69,"stem":70},"WebCite","\u002Fproviders\u002Fwebcite","2.providers\u002F06.webcite",{"title":72,"path":73,"stem":74},"Memento","\u002Fproviders\u002Fmemento","2.providers\u002F07.memento",{"title":76,"path":77,"stem":78},"Archive-It","\u002Fproviders\u002Farchive-it","2.providers\u002F08.archive-it",{"title":80,"path":81,"stem":82},"Conifer","\u002Fproviders\u002Fconifer","2.providers\u002F09.conifer",{"title":84,"path":85,"stem":86},"Perma.cc","\u002Fproviders\u002Fpermacc","2.providers\u002F10.permacc","i-lucide-library",{"id":89,"title":48,"body":90,"description":496,"extension":497,"links":498,"meta":499,"navigation":160,"path":49,"seo":501,"stem":50,"__hash__":502},"docs\u002F2.providers\u002F01.wayback.md",{"type":91,"value":92,"toc":489},"minimark",[93,97,102,269,280,284,314,342,351,355,424,431,435,459,463,485],[94,95],"provider-facts",{"slug":96},"wayback",[98,99,101],"h2",{"id":100},"load-it","Load it",[103,104,109],"pre",{"className":105,"code":106,"language":107,"meta":108,"style":108},"language-ts shiki shiki-themes vitesse-light vitesse-light vesper","import { createArchive, providers } from \"@agntn\u002Farchives\";\n\nconst archive = createArchive(providers.wayback());\nconst yearly = createArchive(providers.wayback({ collapse: \"timestamp:4\" }));\nconst okOnly = createArchive(providers.wayback({ filter: \"statuscode:200\" }));\n","ts","",[110,111,112,155,162,193,233],"code",{"__ignoreMap":108},[113,114,117,121,125,129,132,135,138,141,145,149,152],"span",{"class":115,"line":116},"line",1,[113,118,120],{"class":119},"sB1ot","import",[113,122,124],{"class":123},"sldxI"," {",[113,126,128],{"class":127},"sA8fy"," createArchive",[113,130,131],{"class":123},",",[113,133,134],{"class":127}," providers",[113,136,137],{"class":123}," }",[113,139,140],{"class":119}," from",[113,142,144],{"class":143},"sbwUx"," \"",[113,146,148],{"class":147},"sHyde","@agntn\u002Farchives",[113,150,151],{"class":143},"\"",[113,153,154],{"class":123},";\n",[113,156,158],{"class":115,"line":157},2,[113,159,161],{"emptyLinePlaceholder":160},true,"\n",[113,163,165,169,172,176,179,182,185,188,190],{"class":115,"line":164},3,[113,166,168],{"class":167},"s8Cdk","const",[113,170,171],{"class":127}," archive",[113,173,175],{"class":174},"sUeik"," =",[113,177,128],{"class":178},"shFES",[113,180,181],{"class":123},"(",[113,183,184],{"class":127},"providers",[113,186,187],{"class":123},".",[113,189,96],{"class":178},[113,191,192],{"class":123},"());\n",[113,194,196,198,201,203,205,207,209,211,213,216,220,223,225,228,230],{"class":115,"line":195},4,[113,197,168],{"class":167},[113,199,200],{"class":127}," yearly",[113,202,175],{"class":174},[113,204,128],{"class":178},[113,206,181],{"class":123},[113,208,184],{"class":127},[113,210,187],{"class":123},[113,212,96],{"class":178},[113,214,215],{"class":123},"({ ",[113,217,219],{"class":218},"sYv7f","collapse",[113,221,222],{"class":123},": ",[113,224,151],{"class":143},[113,226,227],{"class":147},"timestamp:4",[113,229,151],{"class":143},[113,231,232],{"class":123}," }));\n",[113,234,236,238,241,243,245,247,249,251,253,255,258,260,262,265,267],{"class":115,"line":235},5,[113,237,168],{"class":167},[113,239,240],{"class":127}," okOnly",[113,242,175],{"class":174},[113,244,128],{"class":178},[113,246,181],{"class":123},[113,248,184],{"class":127},[113,250,187],{"class":123},[113,252,96],{"class":178},[113,254,215],{"class":123},[113,256,257],{"class":218},"filter",[113,259,222],{"class":123},[113,261,151],{"class":143},[113,263,264],{"class":147},"statuscode:200",[113,266,151],{"class":143},[113,268,232],{"class":123},[270,271,272,273,276,277,279],"p",{},"Or import ",[110,274,275],{},"WaybackProvider"," from ",[110,278,148],{}," and construct it yourself.",[98,281,283],{"id":282},"what-it-lists","What it lists",[270,285,286,289,290,293,294,297,298,301,302,305,306,309,310,313],{},[110,287,288],{},"snapshots(\"example.com\")"," asks ",[110,291,292],{},"web.archive.org\u002Fcdx\u002Fsearch\u002Fcdx"," for ",[110,295,296],{},"example.com\u002F*",", so a domain lists everything under it. A full URL is looked up as is. Rows come back as ",[110,299,300],{},"original",", ",[110,303,304],{},"timestamp"," and ",[110,307,308],{},"statuscode","; ",[110,311,312],{},"_meta"," keeps the raw stamp of fourteen digits and the status.",[270,315,316,318,319,321,322,325,326,329,330,332,333,301,335,301,338,341],{},[110,317,219],{}," defaults to ",[110,320,227],{},", one capture per year, which keeps a domain with millions of captures answerable. Pass ",[110,323,324],{},"collapse: \"timestamp:8\""," for one per day, or ",[110,327,328],{},"collapse: \"digest\""," for one per distinct body. ",[110,331,257],{}," is passed through untouched (",[110,334,264],{},[110,336,337],{},"mimetype:text\u002Fhtml",[110,339,340],{},"!statuscode:3..",").",[270,343,344,305,347,350],{},[110,345,346],{},"from",[110,348,349],{},"to"," narrow the CDX query itself, so a window is cheap here.",[98,352,354],{"id":353},"reading-bodies","Reading bodies",[103,356,358],{"className":105,"code":357,"language":107,"meta":108,"style":108},"const capture = await archive.getContent(\"https:\u002F\u002Fexample.com\", { timestamp: \"2002\" });\ncapture.snapshot; \u002F\u002F https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20021129054348id_\u002Fhttp:\u002F\u002Fwww.example.com:80\u002F\n",[110,359,360,407],{"__ignoreMap":108},[113,361,362,364,367,369,372,374,376,379,381,383,386,388,390,393,395,397,399,402,404],{"class":115,"line":116},[113,363,168],{"class":167},[113,365,366],{"class":127}," capture",[113,368,175],{"class":174},[113,370,371],{"class":119}," await",[113,373,171],{"class":127},[113,375,187],{"class":123},[113,377,378],{"class":178},"getContent",[113,380,181],{"class":123},[113,382,151],{"class":143},[113,384,385],{"class":147},"https:\u002F\u002Fexample.com",[113,387,151],{"class":143},[113,389,131],{"class":123},[113,391,392],{"class":123}," { ",[113,394,304],{"class":218},[113,396,222],{"class":123},[113,398,151],{"class":143},[113,400,401],{"class":147},"2002",[113,403,151],{"class":143},[113,405,406],{"class":123}," });\n",[113,408,409,412,414,417,420],{"class":115,"line":157},[113,410,411],{"class":127},"capture",[113,413,187],{"class":123},[113,415,416],{"class":127},"snapshot",[113,418,419],{"class":123},";",[113,421,423],{"class":422},"szOLe"," \u002F\u002F https:\u002F\u002Fweb.archive.org\u002Fweb\u002F20021129054348id_\u002Fhttp:\u002F\u002Fwww.example.com:80\u002F\n",[270,425,426,427,430],{},"Bodies are read under the ",[110,428,429],{},"id_"," modifier, which replays the original response without the toolbar or rewritten links. The capture is the newest at or before the timestamp, or the closest after it when nothing older exists. A snapshot URL from a listing works as the target too.",[98,432,434],{"id":433},"gotchas","Gotchas",[436,437,438,446,453],"ul",{},[439,440,441,442,445],"li",{},"The CDX index answers oldest first. A merged ",[110,443,444],{},"providers.all()"," listing sorted newest first can cut every Wayback row when other archives hold newer captures; ask Wayback alone for early history.",[439,447,448,449,452],{},"CDX queries for busy domains take seconds, sometimes tens of seconds. Keep ",[110,450,451],{},"timeout"," generous and cache aggressively.",[439,454,455,458],{},[110,456,457],{},"collapse: \"timestamp:4\""," is a default, not a fact about the archive. Drop it when you count captures.",[98,460,462],{"id":461},"where-it-lives","Where it lives",[270,464,465,468,469,472,473,309,476,478,479,472,482,187],{},[110,466,467],{},"src\u002Fproviders\u002Fwayback.ts",". CDX row mapping is shared with Archive-It and Common Crawl through ",[110,470,471],{},"mapCdxRows"," in ",[110,474,475],{},"src\u002Futils\u002F_utils.ts",[110,477,429],{}," playback through ",[110,480,481],{},"readPlaybackCapture",[110,483,484],{},"src\u002Futils\u002F_content.ts",[486,487,488],"style",{},"html pre.shiki code .sB1ot, html code.shiki .sB1ot{--shiki-light:#1E754F;--shiki-default:#1E754F;--shiki-dark:#A0A0A0}html pre.shiki code .sldxI, html code.shiki .sldxI{--shiki-light:#999999;--shiki-default:#999999;--shiki-dark:#FFF}html pre.shiki code .sA8fy, html code.shiki .sA8fy{--shiki-light:#B07D48;--shiki-default:#B07D48;--shiki-dark:#FFF}html pre.shiki code .sbwUx, html code.shiki .sbwUx{--shiki-light:#B5695977;--shiki-default:#B5695977;--shiki-dark:#99FFE4}html pre.shiki code .sHyde, html code.shiki .sHyde{--shiki-light:#B56959;--shiki-default:#B56959;--shiki-dark:#99FFE4}html pre.shiki code .s8Cdk, html code.shiki .s8Cdk{--shiki-light:#AB5959;--shiki-default:#AB5959;--shiki-dark:#A0A0A0}html pre.shiki code .sUeik, html code.shiki .sUeik{--shiki-light:#999999;--shiki-default:#999999;--shiki-dark:#A0A0A0}html pre.shiki code .shFES, html code.shiki .shFES{--shiki-light:#59873A;--shiki-default:#59873A;--shiki-dark:#FFC799}html pre.shiki code .sYv7f, html code.shiki .sYv7f{--shiki-light:#998418;--shiki-default:#998418;--shiki-dark:#FFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .szOLe, html code.shiki .szOLe{--shiki-light:#A0ADA0;--shiki-default:#A0ADA0;--shiki-dark:#8B8B8B94}",{"title":108,"searchDepth":157,"depth":157,"links":490},[491,492,493,494,495],{"id":100,"depth":157,"text":101},{"id":282,"depth":157,"text":283},{"id":353,"depth":157,"text":354},{"id":433,"depth":157,"text":434},{"id":461,"depth":157,"text":462},"The Internet Archive's CDX API, with collapse and filter, and original responses replayed under id_.","md",null,{"icon":500},"i-simple-icons-internetarchive",{"title":48,"description":496},"1Ar-YfJbqcgI6njHeQjz3j62LjcsABsbJtKR8QLihR4",[504,506],{"title":46,"path":42,"stem":43,"description":505,"children":-1},"Ten sources, one class shape. Pick an archive to see its endpoint, its options and the traps.",{"title":52,"path":53,"stem":54,"description":507,"children":-1},"The Portuguese web archive's public CDX index, with original responses through noFrame\u002Freplay.",1788446777799]