Dead URL Replacement Planner
Pricing
$0.05 / actor start
Dead URL Replacement Planner
Create a reviewable redirect plan from dead product paths and your supplied catalog snapshot. No crawling or store writes.
Dead URL Replacement Planner
Pricing
$0.05 / actor start
Create a reviewable redirect plan from dead product paths and your supplied catalog snapshot. No crawling or store writes.
You can access the Dead URL Replacement Planner programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = { "payload": {9 "deadProducts": [10 "copper-skillet-copy-18",11 "back-again",12 "unknown-widget",13 ],14 "products": [15 {16 "handle": "copper-skillet",17 "title": "Copper Skillet",18 "productType": "Kitchen > Cookware",19 "status": "ACTIVE",20 "online": True,21 },22 {23 "handle": "back-again",24 "title": "Back Again",25 "productType": "Kitchen",26 "status": "UNLISTED",27 "online": True,28 },29 ],30 "collections": [{31 "handle": "category-kitchen-cookware",32 "title": "Cookware",33 "published": True,34 "hidden": False,35 "count": 1,36 }],37 "existing": [],38 "keywords": [{39 "word": "skillet",40 "collection": "category-kitchen-cookware",41 }],42 } }43
44# Run the Actor and wait for it to finish45run = client.actor("autosecurelogin/dead-url-replacement-planner").call(run_input=run_input)46
47# Fetch and print Actor results from the run's dataset (if there are any)48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")49for item in client.dataset(run.default_dataset_id).iterate_items():50 print(item)51
52# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-startThe Apify API client for Python is the official library that allows you to use Dead URL Replacement Planner API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
$pip install apify-clientOther API clients include: