PX Forums demoYou are browsing as a visitor. Try it as: Member · Moderator · AdminOne click, no password. All changes are reset every night at 03:45 CET.
Skip to content

Can I read the page list from another site with the API?

Log in
Replies
5
Voices
4
Views
409
Last activity
Score 3
Yuki Tanaka Topic starter Member375 karma45 posts · Joined Dec 2026

I would like to show the latest five posts of one Lumen site on another site I run. Is there a public endpoint?

Choose a reaction
Reply

Solution Go to post #2

Yes. Enable the Public API in Settings > Integrations and call:

curl "https://example.org/api/v1/pages?limit=5&sort=-published"

You get JSON with title, url, excerpt and published. Public pages only; drafts need a token. Cache the response on the receiving site for a few minutes so you do not hammer the source.

5 answers

Score 3
Lucas Meyer Expert852 karma57 posts · Joined Dec 2026
Solution

Yes. Enable the Public API in Settings > Integrations and call:

curl "https://example.org/api/v1/pages?limit=5&sort=-published"

You get JSON with title, url, excerpt and published. Public pages only; drafts need a token. Cache the response on the receiving site for a few minutes so you do not hammer the source.

Choose a reaction
Reply
Score 0
Priya Nair Expert878 karma62 posts · Joined Dec 2026

Not sure it applies to your case, but the docs have a short page about this: Getting started.

Choose a reaction
Reply
Score 0
Amara Diallo Helper475 karma52 posts · Joined Dec 2026

Can you post a screenshot of the settings page? Hard to tell otherwise.

Choose a reaction
Reply
Score -1
Lucas Meyer Expert852 karma57 posts · Joined Dec 2026

Worked for me, thanks @demo-yuki. I had been fighting this for two evenings.

Choose a reaction
Reply
Score -1
Amara Diallo Helper475 karma52 posts · Joined Dec 2026

I had the same problem last month. Checking the file permissions and clearing the cache fixed it for me.

Choose a reaction
Reply