What is Discourse API?

I want to learn about Discourse API. What is Discourse API. Can someone explain it to me? Is there a Discourse Api on my website?
Link: Ders.co

1 Like

The Discourse API is what is used to pass data between the backend Ruby on Rails Discourse application and the front end Discourse javascript. The API is available on all Discourse sites.

A simple example of the API on your site would be to go to this URL: https://ders.co/latest.json. It shows you the JSON data that is used for putting together your site’s latest topics list. You could use that data on another site by making a GET request to https://ders.co/latest.json. You could use the data returned from that request to recreate the latest topics list on another site.

For some details about the Discourse API, have a look at these topics:

You can also find details about the Discourse API here: https://docs.discourse.org/.

3 Likes

Thank you so much @simon l checked now. This Community will help me regarding improve my website.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.