/radarr

Radarr Go client

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Radarr Go client

Go Report Card GitHub go.mod Go version Godoc Docker Pulls GitHub tag (latest SemVer)

This is a Go package that lets you to interact with your Radarr instance. Developed for Radarr API v2.

Radarr API v3 is under construction. See here and here.

You can use it as CLI. See related section

Supports

Here are the currently supported endpoints:

  • Calendar
  • Command
  • Diskspace
  • History
  • Movie
    • Returns all Movies in your collection
    • Returns the movie with the matching ID or 404 if no matching movie is found
    • Adds a new movie to your collection
    • Update an existing movie
    • Delete the movie with the given ID
  • Movie Lookup
  • Queue
  • List Exclusions
  • System-Status

Getting started

package main

import (
	"fmt"
	"log"

	"github.com/SkYNewZ/radarr"
)

// Instantiate a standard client
func main() {
	client, err := radarr.New("https://my.radarr-instance.fr", "radarr-api-key", nil)
	if err != nil {
		log.Fatalln(err)
	}

	movie, err := client.Movies.Get(217)
	if err != nil {
		log.Fatalln(err)
	}
	fmt.Printf("%s", movie.Title)

	// Output:
	// Frozen II
}