• 0.955555555555555

    posted a message on CurseForge API extensions

    Hello CurseForge team!

     

    Up until recently I've exclusively used Technic Solder for my modpack distribution. It's easy to modify and manage, but also the point of this thread: a great API.

    The Solder API allows me to see which modpacks/projects I have, which mods are in it, which versions I'm using and when everything was last updated. I used this to on my website to generate mod lists en changelogs so players can easily see what's in the modpack.

     

    With my modpack now on CurseForge, I tried to use its API to achieve the same thing but found that the CurseForge API is really lacking in the data it provides. From such a huge platform, backed by Twitch, I expected much more.

     

    What API endpoints are missing, you ask? Here's a few:

     

    1. GET "/api/projects"  -  Lists a user's projects

    {
    "123456789": {
    "id": 123456789,
    "name": "My Project",
    "slug": "my-project",
    "lastUpdated": "2018-01-04 02:14:53"
    },
    "1232123": {
    "id": 1232123,
    "name": "My Other Project",
    "slug": "my-other-project",
    "lastUpdated": "2017-06-29 18:09:01"
    }
    }

    2. GET "/api/projects/<projectID>"  -  Shows information about a project

    {
    "name": "My Project",
    "summary": "An example project",
    "slug": "my-project",
    "description": "<p>Bla bla bla</p>",
    "logo": "https://media-elerium.cursecdn.com/avatars/130/796/234523452354235422.png",
    "members": {
    "ExampleMember": {
    "role": "Project Owner",
    "cut": 100
    }
    },
    "files": {
    "2516547": {
    "name": "My File",
    "uploaded": "2017-08-21 04:50:59",
    "status": "approved"
    }
    }
    }

    3. GET "/api/projects/<projectID>/<fileID>"  -  Shows information about a file

    {
    "name": "My File",
    "uploaded": "2017-08-21 04:50:59",
    "status": "approved",
    "uploadedBy": "ExampleUser",
    "changelog": "<p>Changed some things</p>",
    "related": {
    "123123456": {
    "id": 123123456,
    "name": "RelatedProject",
    "author": "ExampleAuthor"
    }
    },
    "additionalFiles": {}
    }

    I hope this request from the community for a better API with more endpoints will be considered and implemented.

    Posted in: General Discussion
  • To post a comment, please or register a new account.