{"id":16696943,"url":"https://github.com/seratch/nhk4s","last_synced_at":"2025-10-26T19:09:47.356Z","repository":{"id":13545417,"uuid":"16237321","full_name":"seratch/nhk4s","owner":"seratch","description":"\"NHK 番組表 API\" client library for Scala","archived":false,"fork":false,"pushed_at":"2015-11-22T12:45:38.000Z","size":17,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T04:22:21.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seratch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-25T18:46:23.000Z","updated_at":"2022-12-21T13:52:09.000Z","dependencies_parsed_at":"2022-09-04T08:30:33.004Z","dependency_job_id":null,"html_url":"https://github.com/seratch/nhk4s","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fnhk4s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fnhk4s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fnhk4s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fnhk4s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seratch","download_url":"https://codeload.github.com/seratch/nhk4s/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248147070,"owners_count":21055473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-12T17:45:22.667Z","updated_at":"2025-10-26T19:09:42.309Z","avatar_url":"https://github.com/seratch.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NHK4S\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.seratch/nhk4s_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.seratch/nhk4s_2.11)\n\nThis is an \"NHK 番組表 API\" client library for Scala.\n\nhttp://api-portal.nhk.or.jp/\n\nhttp://api-portal.nhk.or.jp/ja/ServiceGuide\n\n\n### How to use (sbt)\n\nJust add nhk4s to your dependencies.\n\n```scala\nlibraryDependencies += \"com.github.seratch\" %% \"nhk4s\" % \"1.1.0\"\n```\n\nGet API key on the NHK API portal site.\n\n```\nexport NHK_API_KEY=xxxxxxxx\n```\n\n### Examples\n\n#### Program List API\n\nhttp://api-portal.nhk.or.jp/doc_list-v1_con\n\n```scala\nval programs = NHK.programs.findAll(Area.Tokyo, Service.Sogo1, today)\n```\n\n日本語でも使えます。\n\n```scala\nval 番組一覧 = NHK.番組表.番組一覧(エリア.東京, サービス.総合1, 今日)\n```\n\n#### Program Genre API\n\nhttp://api-portal.nhk.or.jp/doc_genre-v1_con\n\n```scala\nval programsInGenre0000 = NHK.programs.findAllByGenre(Area.Nagoya, Service.ETele1, \"0000\", today)\n```\n\n日本語でも使えます。\n\n```scala\nval 番組一覧 = NHK.番組表.ジャンルで番組一覧(エリア.名古屋, サービス.Eテレ1, \"0000\", 今日)\n```\n\n#### Program Info API\n\nhttp://api-portal.nhk.or.jp/doc_info-v1_con\n\n```scala\nval program = NHK.programs.find(Area.Okinawa, Service.FM, programs.head.id)\n```\n\n日本語でも使えます。\n\n```scala\nval 番組の詳細 = NHK.番組表.番組詳細(エリア.沖縄, サービス.FM, 番組.id)\n```\n\n#### Now On Air API\n\nhttp://api-portal.nhk.or.jp/doc_now-v1_con\n\n```scala\nval nowOnAir = NHK.programs.findNowOnAir(Area.Hiroshima, Service.TV)\n```\n\n日本語でも使えます。\n\n```scala\nval 放送中 = NHK.番組表.放送中(エリア.広島, サービス.テレビ全部)\n```\n\n### License\n\nApache License, Version 2.0\n\nCopyright 2014 Kazuhiro Sera\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseratch%2Fnhk4s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseratch%2Fnhk4s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseratch%2Fnhk4s/lists"}