Getting recently updated posts using the REST API

Is there a way to get the most recently updated (including created) posts using the REST API? I know there’s this endpoint: Discourse API Docs, however I think this is sorted by the creation timestamp rather than update timestamp.

What i’m trying to do is get every change made in Discourse and send it to another system. Or is there another way of doing this? At the moment I’m thinking of querying the database directly, but I’d rather avoid depending on the internal DB schema. TIA.

Sounds like a job for a webhook. You could add a webhook and have it notify your system on every post change.

See How to run Data Explorer queries with the Discourse API

3 Likes

Thanks, they both seem like good options.

2 Likes