I would like to show the latest five posts of one Lumen site on another site I run. Is there a public endpoint?
Can I read the page list from another site with the API?
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
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.
Not sure it applies to your case, but the docs have a short page about this: Getting started.
Can you post a screenshot of the settings page? Hard to tell otherwise.
Worked for me, thanks @demo-yuki. I had been fighting this for two evenings.
I had the same problem last month. Checking the file permissions and clearing the cache fixed it for me.