πLink Backup API
Backs up a link to the Wayback Archives (https://wayback.archive.org/), and responds with the URL to the entry.
Link Backup API
POST https://tools.datalabs.net/linkBackup
Host: tools.datalabs.net
Content-Type: application/json
{
"key": "DATALABS_API_KEY", // Required - DataLabs API Key
"url": "https://example.com/" // Required - URL to be backed up.
}import requests
api_key = "DATALABS_API_KEY"
tool = "linkBackup"
url = "https://example.com/"
url = f"https://tools.datalabs.net/{tool}?key={api_key}&url={url}"
headers = {
'Host': 'tools.datalabs.net'
}
response = requests.get(url, headers=headers)
try:
response_data = response.json()
except ValueError:
response_data = response.text
print(response_data)Last updated