The Peaches 'n' Stink API has three available endpoints. All of the API endpoints return JSON. We do not have any user authentication for the API, thus it's currently limited to read only using stink's following list.
All of the API calls accept an optional viewmode variable in the URL. If viewmode is "discover" then the discover view mode is used. If any other value is used for viewmode then the locked view mode is used. You can read more about how view mode works in the settings section of the instruction manual.
Here is a description of each call:
This returns all posts. The data is paginated at 20 records per page. You can use p, viewmode and sort variables in the URL. p is for page and it starts at 1. sort can be either newest, oldest, comments or last - the default is newest. There is more info about post sorting in the posts section of the manual. Examples of this endpoint:
This call will return a single post and its comments. You can use postid and viewmode variables in the URL. postid is required. Examples of this endpoint:
This call will return a single comment and its child comments. You can use commentid and viewmode variables in the URL. commentid is required. Examples of this endpoint: