You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felipe M cfc44ae669
Version bump: 1.0.1
7 months ago
test_outputs Added test JSON files 8 months ago
.gitignore Restructured code 7 months ago
LICENSE Added LICENSE 7 months ago Version bump: 1.0.0 7 months ago
cache.go Naming refactor. Added comments. 7 months ago
go.mod -> 7 months ago
go.sum Logging improvements 8 months ago
http.go Version bump: 1.0.1 7 months ago
public.go Naming refactor. Added comments. 7 months ago
types.go Naming refactor. Added comments. 7 months ago


Mangadex API client in Golang.

Stable version under stable branch. Latest development under latest branch.


import (


func main() {
    // Retrieve manga information
    manga, err := mangadex.GetManga(123)
    if errManga != nil {
        log.Println("Error retrieving manga: %s", errManga)

    // Retrieve a list of chapters 
    chaptersRequest := NewGetChaptersParams()
    chapters, errChapterList = manga.getChapters(chaptersRequest)
    if errChapterList != nil {
        log.Println("Error retrieving chapters page %d: %s", chaptersRequest.Page, errChapterList)
    // Disables chache reads for requests beyond this point

    // Retrieve a specific chapter detail
    // This will return more information than the list (the pages, server, etc)
    chapter, err := manga.GetChapter(1)
    if errChapter != nil {
        log.Println("Error retrieving chapter: %s", errChapter)

    // Re-enables the cache

    // Get all covers for this manga
    covers, errCovers := manga.GetCovers()
    if errCovers != nil {
        log.Println("Error retreiving covers: %s", errCovers)