Magento 2 Module Development Storefront Development Magento 2 : How to get CMS page page_id from url ? By Sudhanshu Bajaj on Tuesday, February 4, 2020 Magento 2 stores the URL identifier in url_rewrite table. You can get the page entity_id or page_id by idendifier. If you look into url_rewrite table where you can search by request_path column.