List URL Rewrites
Lists every URL rewrite in the store — the data behind the admin Marketing → Search & SEO → URL Rewrites datagrid.
TIP
New here? Read the URL Rewrites overview for what a URL rewrite does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
adminMarketingUrlRewrites | Query | Cursor-paginated list of all URL rewrites |
Details
- Requires an admin Bearer token in the
Authorizationheader. - Cursor pagination — pass
firstfor the page size andafter(theendCursorfrom the previous page) to advance.totalCountis the grand total. - Each
nodecarries the full flat field set shown in the example. There are no detail-only relation fields, so list rows and the detail query resolve the same fields.
Filtering
Pass any of these arguments alongside first / after (they mirror the admin datagrid filters):
| Argument | Description |
|---|---|
entityType | product / category / cms_page |
requestPath | Source path — partial match |
redirectType | 301 (permanent) / 302 (temporary) |
locale | Locale code (e.g. en) |
sort, order | Sort field (id, entity_type, locale, redirect_type) + asc / desc (default id desc) |

