====== MelonLand API ====== The MelonLand API is a programing interface you can use to access forum data on your site or in a program you are coding. All API calls return JSON standard data that can be parsed in JavaScript, PHP and all other languages. //**NOTE:** API data is cached for up to 120 seconds on the server, all data received may be 120 seconds out of date.// All API calls include an "ok" (true, false) value, ok will be true if the api call was successful! | **API Function** | **What it does** | **Parameters** | | [[https://forum.melonland.net/api.php?smileys|smileys]] | List forum smileys | -- | | [[https://forum.melonland.net/api.php?memberNames|memberNames]] | Display names associated with member IDs | ''id'' (filter to member ID) · ''username'' (include eSite username) | | [[https://forum.melonland.net/api.php?memberWebsites|memberWebsites]] | Linked profile websites | ''id'' (filter to member ID) - **most id fields accept lists id=1,53,2** | | [[https://forum.melonland.net/api.php?memberAvatar|memberAvatar]] | Profile avatar filenames | ''id'' | | [[https://forum.melonland.net/api.php?memberJoinDate|memberJoinDate]] | Member registration dates | ''id'' | | [[https://forum.melonland.net/api.php?memberLastOnline|memberLastOnline]] | Member last online timestamps | ''id'' | | [[https://forum.melonland.net/api.php?rssFeeds|rssFeeds]] | Linked profile RSS feeds | ''id'' | | [[https://forum.melonland.net/api.php?statusCafe|statusCafe]] | Linked profile StatusCafe names | ''id'' | | [[https://forum.melonland.net/api.php?imood|imood]] | Linked profile iMood names | ''id'' | | [[https://forum.melonland.net/api.php?spaceHey|spaceHey]] | Linked profile SpaceHey names | ''id'' | | [[https://forum.melonland.net/api.php?itch|itch]] | Linked profile itch.io names | ''id'' | | [[https://forum.melonland.net/api.php?artifacts|artifacts]] | List artifacts | ''id=22,26'' (artifact id) · ''locked=0'' (exclude) · ''unlocked=0'' (exclude) · ''page'' | | [[https://forum.melonland.net/api.php?memberArtifacts|memberArtifacts]] | Lists artifact IDs related to one member | ''id'' (member - list owned by) · ''created'' (member - list created by) - only use one! | | [[https://forum.melonland.net/api.php?artifactHistory=|artifactHistory]] | Transfer history for listed artifacts | ''artifactHistory=906,42,88'' (comma-separated artifact IDs) | | [[https://forum.melonland.net/api.php?galleryImages|galleryImages]] | Gallery image listings | ''id'' · ''cat'' · ''mature=1'' · ''limit'' (max 100) · ''page'' (grouped by page) | | [[https://forum.melonland.net/api.php?galleryCategories|galleryCategories]] | Gallery categories | ''id'' (member id - only show cats this member has art in) | | [[https://forum.melonland.net/api.php?regions|regions]] | List MelonLand regions | -- | | [[https://forum.melonland.net/api.php?guilds|guilds]] | List guilds | ''id'' (guild id) · ''region'' (region id) | | [[https://forum.melonland.net/api.php?guildMembers&id=|guildMembers]] | Members of a guild | ''id'' (guild id, it is required) | | [[https://forum.melonland.net/api.php?guildEvents|guildEvents]] | List guild events | ''id'' (guild id) · ''upcoming=0'' (include past events) | | [[https://forum.melonland.net/api.php?recentPosts|recentPosts]] | List recent forum posts | ''limit'' (default 10, max 50) · ''board'' · ''id'' (filter by member id) | | [[https://forum.melonland.net/api.php?onlineMembers|onlineMembers]] | Members active in the last 10.beats | -- | | [[https://forum.melonland.net/api.php?forumStats|forumStats]] | Forum statistics | -- |