How do I use the REST API if the URL structure doesn't look like the example

The URL of the confluence page looks like this (I replace the company name with xxx)
https://eteamspace.internal.xxx.com/collector/pages.action?key=CONFLUENCE

Is it possible to get the content of the page via API?

Welcome to the Atlassian developer community @kentong,

The short answer is yes, it is possible to get the content of the page via API.

But to tell you more detail, we first have to figure out if that URL is Confluence Cloud with a custom domain, or Confluence Data Center. You can get system info using GET /wiki/rest/api/settings/systemInfo. If the result has a cloudId attribute, then you would use the Confluence Cloud REST API. Otherwise, you would use the Confluence Data Center REST API.

Thanks for the feedback @ibuchanan

I tried the Data Center REST API and it works. The structure is like this.

eteamspace.internal.xxx.com/rest/api/content/scan?spaceKey=CMSNM&limit=2