
The Internet Archive Has a Free API — Search 800B+ Web Pages Programmatically
The Wayback Machine Has an API Most developers know the Wayback Machine for browsing old websites. Few know it has a free API that lets you search 800+ billion archived web pages programmatically. No API key. No signup. No rate limit (be polite). Check If a URL Was Archived import requests def check_archive ( url ): api = f " https://archive.org/wayback/available?url= { url } " r = requests . get ( api ) snapshot = r . json (). get ( " archived_snapshots " , {}). get ( " closest " , {}) if snapshot : return { " available " : True , " url " : snapshot [ " url " ], " timestamp " : snapshot [ " timestamp " ], " status " : snapshot [ " status " ] } return { " available " : False } result = check_archive ( " google.com " ) print ( result ) # {"available": True, "url": "https://web.archive.org/web/20260101.../google.com", ...} Get All Snapshots of a URL def get_snapshots ( url , year = " 2025 " ): cdx = f " https://web.archive.org/cdx/search/cdx?url= { url } &output=json&from= { year } &limi
Continue reading on Dev.to Tutorial
Opens in a new tab


