API 參考
Redirects
Content Delivery API: GET /redirects
Enabled redirect rules (owner-defined and system 301s from page renames) for the external front end to apply
GET
/redirectsbetaNo auth
Response 200
dataobject[]requireddata[].sourcePathstringrequiredPath on the site, starts with /
data[].targetUrlstringrequiredRelative path or absolute URL
data[].statusCode301 | 302requireddata[].source"user" | "system"requireddata[].localestring | nullNull for rules that apply in every locale (matched against the path without the locale prefix). A locale code for rules that belong to one locale, such as a changed translated slug or a retired locale prefix: match these against the full path including the prefix and use targetUrl as is.
data[].updatedAtstringrequiredhasMorebooleanrequiredTrue when another page exists; pass nextCursor to fetch it.
nextCursorstring | nullrequiredCursor for the next page, or null on the last page.
curl -X GET "https://{site}/api/v1/redirects"