DataForSEO OnPage API icon

DataForSEO OnPage API

DataForSEO

Get Redirect Chains

AI-generated

Summary

Get Redirect Chains operation

Inputs

  • target (required) — Domain to crawl (without https:// or www.)
  • max_crawl_pages (required) — Maximum number of pages to crawl
  • url — Specific page URL for which to retrieve redirect chains; if omitted, chains for all crawled pages are returned
  • limit — Maximum number of results to return (up to 1000)
  • offset — Offset for pagination
  • filters — JSON string of filters to apply to results
  • start_url — Initial URL to begin crawling
  • max_crawl_depth — Maximum crawl depth
  • crawl_delay — Delay between requests in ms
  • store_raw_html — Store raw HTML of crawled pages
  • enable_content_parsing — Parse content on crawled pages
  • support_cookies — Support cookies during crawling
  • accept_language — Language header for requests
  • custom_robots_txt — Custom robots.txt settings
  • robots_txt_merge_mode — Merge or override robots.txt
  • custom_user_agent — Custom User-Agent string
  • browser_preset — Browser screen preset (Desktop, Mobile, Tablet)
  • browser_screen_width — Browser viewport width
  • browser_screen_height — Browser viewport height
  • browser_screen_scale_factor — Browser viewport scale factor
  • respect_sitemap — Respect sitemap when crawling
  • custom_sitemap — Custom sitemap URL
  • crawl_sitemap_only — Crawl only sitemap URLs
  • load_resources — Load page resources
  • enable_www_redirect_check — Check for WWW redirection
  • enable_javascript — Execute JavaScript on pages
  • enable_xhr — Enable XMLHttpRequest
  • enable_browser_rendering — Emulate browser rendering for Core Web Vitals
  • disable_cookie_popup — Disable cookie popups
  • custom_js — Custom JavaScript to inject
  • validate_micromarkup — Validate microdata
  • allow_subdomains — Include subdomains in crawl
  • allowed_subdomains — Allowed subdomains list
  • disallowed_subdomains — Disallowed subdomains list
  • check_spell — Enable spell checking
  • check_spell_language — Language for spell checking
  • check_spell_exceptions — Words excluded from spell checking
  • calculate_keyword_density — Calculate keyword density
  • checks_threshold — Custom threshold values for checks
  • disable_sitewide_checks — Sitewide checks to disable
  • disable_page_checks — Page checks to disable
  • switch_pool — Switch proxy pool
  • return_despite_timeout — Return data despite timeout errors

Output shape

Array of redirect chain objects returned from the DataForSEO OnPage API redirect_chains endpoint (each object contains the URL and its redirect chain details).

The exact structure matches the API response; consult DataForSEO documentation for field details.

Links

Discussion