{"id":13645765,"url":"https://github.com/jrudio/go-plex-client","last_synced_at":"2026-01-17T01:14:53.730Z","repository":{"id":8711066,"uuid":"59436740","full_name":"jrudio/go-plex-client","owner":"jrudio","description":"A Plex.tv and Plex Media Server Go client","archived":false,"fork":false,"pushed_at":"2025-01-29T08:16:06.000Z","size":51851,"stargazers_count":135,"open_issues_count":20,"forks_count":66,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-21T17:42:15.266Z","etag":null,"topics":["go","golang","media-server","plex","plex-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-05-22T22:11:23.000Z","updated_at":"2025-02-16T15:32:52.000Z","dependencies_parsed_at":"2024-01-14T09:57:27.568Z","dependency_job_id":"780e4fa9-23fb-4720-800d-10f7616d43aa","html_url":"https://github.com/jrudio/go-plex-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrudio/go-plex-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudio%2Fgo-plex-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudio%2Fgo-plex-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudio%2Fgo-plex-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudio%2Fgo-plex-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrudio","download_url":"https://codeload.github.com/jrudio/go-plex-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrudio%2Fgo-plex-client/sbom","scorecard":{"id":537162,"data":{"date":"2025-08-11","repo":{"name":"github.com/jrudio/go-plex-client","commit":"943dc7a39f7cc06d12497f0a465b486d39e39ff1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":6,"reason":"Found 10/16 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2020-0019 / GHSA-3xh2-74w9-5vxm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T07:16:59.665Z","repository_id":8711066,"created_at":"2025-08-20T07:16:59.665Z","updated_at":"2025-08-20T07:16:59.665Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28491213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","media-server","plex","plex-client"],"created_at":"2024-08-02T01:02:41.363Z","updated_at":"2026-01-17T01:14:53.711Z","avatar_url":"https://github.com/jrudio.png","language":"Go","funding_links":[],"categories":["Go","Plex"],"sub_categories":["Plex Clients"],"readme":"# Plex.tv and Plex Media Server client written in Go\n\n[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/jrudio/go-plex-client)\n\n`go get -u github.com/jrudio/go-plex-client`\n\n### Cli\n\nYou can tinker with this library using the command-line over [here](./cmd)\n\n### Usage\n\n```Go\nplexConnection, err := plex.New(\"http://192.168.1.2:32400\", \"myPlexToken\")\n\n// Test your connection to your Plex server\nresult, err := plexConnection.Test()\n\n// Search for media in your plex server\nresults, err := plexConnection.Search(\"The Walking Dead\")\n\n// Webhook handler to easily handle events on your server\n\twh := plex.NewWebhook()\n\n\twh.OnPlay(func(w plex.Webhook) {\n\t\tfmt.Printf(\"%s is playing\\n\", w.Metadata.Title)\n\t})\n\n\twh.OnPause(func(w plex.Webhook) {\n\t\tfmt.Printf(\"%s is paused\\n\", w.Metadata.Title)\n\t})\n\n\twh.OnResume(func(w plex.Webhook) {\n\t\tfmt.Printf(\"%s has resumed\\n\", w.Metadata.Title)\n\t})\n\n\twh.OnStop(func(w plex.Webhook) {\n\t\tfmt.Printf(\"%s has stopped\\n\", w.Metadata.Title)\n\t})\n\n\thttp.HandleFunc(\"/\", wh.Handler)\n\n\thttp.ListenAndServe(\"192.168.1.14:8080\", nil)\n\n// connect to your server via websockets to listen for events\n\nctrlC := make(chan os.Signal, 1)\nonError := func(err error) {\n\tfmt.Println(err)\n}\n\nevents := plex.NewNotificationEvents()\nevents.OnPlaying(func(n NotificationContainer) {\n\tmediaID := n.PlaySessionStateNotification[0].RatingKey\n\tsessionID := n.PlaySessionStateNotification[0].SessionKey\n\tvar title\n\n\tsessions, err := plexConnection.GetSessions()\n\n\tif err != nil {\n\t\tfmt.Printf(\"failed to fetch sessions on plex server: %v\\n\", err)\n\t\treturn\n\t}\n\n\tfor _, session := range sessions.MediaContainer.Video {\n\t\tif sessionID != session.SessionKey {\n\t\t\tcontinue\n\t\t}\n\n\t\tuserID = session.User.ID\n\t\tusername = session.User.Title\n\n\t\tbreak\n\t}\n\n\tmetadata, err := plexConnection.GetMetadata(mediaID)\n\n\tif err != nil {\n\t\tfmt.Printf(\"failed to get metadata for key %s: %v\\n\", mediaID, err)\n\t} else {\n\t\ttitle = metadata.MediaContainer.Metadata[0].Title\n\t}\n\n\tfmt.Printf(\"user (id: %s) has started playing %s (id: %s) %s\\n\", username, userID, title, mediaID)\n})\n\nplexConnection.SubscribeToNotifications(events, ctrlC, onError)\n\n// ... and more! Please checkout plex.go for more methods\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrudio%2Fgo-plex-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrudio%2Fgo-plex-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrudio%2Fgo-plex-client/lists"}