Get page by URL
In this example, we demonstrate how to retrieve a single CMS page by its URL identifier using the OneEntry API.
✅ Purpose of the scenario:
- Connect to the OneEntry API
- Retrieve a page by its URL identifier
- Access page content via localizeInfos and attributeValues
✅ What you need:
- A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
- A page configured in OneEntry with a known URL (e.g., "home_web")
📌 Important:
- These examples do not include error handling.
- You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
Loading sandbox…
