Retrieving wix site pages and appending content to pages

Question:

How can I retrieve a list of pages from a Wix site and append custom embed code to a selected page via an API or another method?

Product:

WIX Custom app or Publishing as New Plugin

What are you trying to achieve:

I am developing a custom Wix app with its own server. The workflow involves users visiting our website, where we display a list of pages from their Wix site. The user selects a page, and we then append custom embed code to the selected page.

What have you already tried:

I’ve researched Wix documentation and forums but haven’t found a clear API or method to achieve this.

Additional information:

N/A

That’s not how that works.

If you want a user to embed your code on their Wix page then they have to do it via the Wix editor or via their Wix dashboards (depending on the code).

You cannot add code for them via external sources.