Get Page Optimization Detail
Changed onFetch the latest optimization run for one page: a summary of how many content blocks were transformed / enriched / removed, the optimized token total, and every block's before/after content.
By default only reviewed runs are returned (completed, staged, deployed, acknowledged) — i.e. optimizations a human accepted — not raw unreviewed optimizer output. Pass one or more status params to opt into other lifecycle states (e.g. ?status=pending). Each chunk carries its own status, so a rejected block (its after was not accepted) is distinguishable from an approved one. Returns 404 when the page has no run in the requested statuses.
Request
- Base URLhttps://api.scrunchai.com/v1
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/scrunch/apis/scrunch-data-api/docs/:brand_id/site-optimization/optimization/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
The page path, e.g. /about.
Restrict to these run statuses. Default: reviewed runs only.
Response
Successful Response
Changes
- info
endpoint added
- info