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.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "payload": {12 "deadProducts": [13 "copper-skillet-copy-18",14 "back-again",15 "unknown-widget"16 ],17 "products": [18 {19 "handle": "copper-skillet",20 "title": "Copper Skillet",21 "productType": "Kitchen > Cookware",22 "status": "ACTIVE",23 "online": true24 },25 {26 "handle": "back-again",27 "title": "Back Again",28 "productType": "Kitchen",29 "status": "UNLISTED",30 "online": true31 }32 ],33 "collections": [34 {35 "handle": "category-kitchen-cookware",36 "title": "Cookware",37 "published": true,38 "hidden": false,39 "count": 140 }41 ],42 "existing": [],43 "keywords": [44 {45 "word": "skillet",46 "collection": "category-kitchen-cookware"47 }48 ]49 }50};51
52// Run the Actor and wait for it to finish53const run = await client.actor("autosecurelogin/dead-url-replacement-planner").call(input);54
55// Fetch and print Actor results from the run's dataset (if any)56console.log('Results from dataset');57console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);58const { items } = await client.dataset(run.defaultDatasetId).listItems();59items.forEach((item) => {60 console.dir(item);61});62
63// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Dead URL Replacement Planner API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: