{"id":41041328,"url":"https://github.com/pinheirolucas/opentrivia","last_synced_at":"2026-01-22T10:43:00.480Z","repository":{"id":106125644,"uuid":"94578794","full_name":"pinheirolucas/opentrivia","owner":"pinheirolucas","description":"API client for Open Trivia DB: https://opentdb.com/","archived":false,"fork":false,"pushed_at":"2017-06-19T00:18:27.000Z","size":44,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-16T03:19:49.232Z","etag":null,"topics":["api-client","client","golang","http","trivia"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinheirolucas.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}},"created_at":"2017-06-16T20:28:35.000Z","updated_at":"2024-11-27T15:33:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bdcbf6e-6dc4-42de-821e-9421c8545706","html_url":"https://github.com/pinheirolucas/opentrivia","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pinheirolucas/opentrivia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinheirolucas%2Fopentrivia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinheirolucas%2Fopentrivia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinheirolucas%2Fopentrivia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinheirolucas%2Fopentrivia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinheirolucas","download_url":"https://codeload.github.com/pinheirolucas/opentrivia/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinheirolucas%2Fopentrivia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28661882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-client","client","golang","http","trivia"],"created_at":"2026-01-22T10:43:00.400Z","updated_at":"2026-01-22T10:43:00.472Z","avatar_url":"https://github.com/pinheirolucas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--# opentrivia\nAPI client for Open Trivia DB: https://opentdb.com/\n\nClick [here](https://godoc.org/github.com/pinheirolucas/opentrivia) to see the docs.--\u003e\n\n# opentrivia\n\nThis repository contains an API client for [Open Trivia DB](https://opentdb.com/).\n\nopentrivia was developed under golang version 1.8 and not tested on previous versions of the\nlanguage.\n\n## Usage\n\n### opentrivia ([godoc](https://godoc.org/github.com/pinheirolucas/opentrivia))\n\n\tgo get github.com/pinheirolucas/opentrivia\n\nConstruct a new Open Trivia API client, then use the services on the client to access\ndifferent parts of the API. For example:\n\n```go\nclient := opentrivia.DefaultClient\n\n// list 10 random questions\nquestions, err := client.Question.List(nil)\n```\n\nSome API methods have optional parameters that can be passed. For example:\n\n```go\nclient := opentrivia.DefaultClient\n\n// list 20 questions with difficulty easy\noptions := \u0026opentrivia.QuestionListOptions{\n\tDifficulty: opentrivia.QuestionDifficultyEasy,\n\tLimit: 20,\n}\nquestions, err := client.Question.List(options)\n```\n\n## License\n\nThis library is distributed under the MIT license found in the\n[LICENSE](https://github.com/pinheirolucas/opentrivia/blob/master/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinheirolucas%2Fopentrivia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinheirolucas%2Fopentrivia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinheirolucas%2Fopentrivia/lists"}