{"id":15723400,"url":"https://github.com/pageton/akinator-api","last_synced_at":"2026-02-04T06:03:50.812Z","repository":{"id":250729793,"uuid":"835304214","full_name":"pageton/akinator-api","owner":"pageton","description":"The Akinator API allows users to play the Akinator game programmatically. Built with the Hono framework and akinatorjs library, it supports multiple languages and includes an optional child mode for safer gaming.","archived":false,"fork":false,"pushed_at":"2024-08-05T03:46:25.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T07:35:59.281Z","etag":null,"topics":["akinator-api","akinatorjs","api","game","hono","javascript","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pageton.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":"2024-07-29T15:01:46.000Z","updated_at":"2024-10-05T09:26:31.000Z","dependencies_parsed_at":"2024-08-05T04:48:30.978Z","dependency_job_id":"cba3b8d8-1647-4021-8b14-59a2e9621d9a","html_url":"https://github.com/pageton/akinator-api","commit_stats":null,"previous_names":["dev-rio/akinator-api","pageton/akinator-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pageton/akinator-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageton%2Fakinator-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageton%2Fakinator-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageton%2Fakinator-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageton%2Fakinator-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pageton","download_url":"https://codeload.github.com/pageton/akinator-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageton%2Fakinator-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29072474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"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":["akinator-api","akinatorjs","api","game","hono","javascript","typescript"],"created_at":"2024-10-03T22:11:32.358Z","updated_at":"2026-02-04T06:03:50.791Z","avatar_url":"https://github.com/pageton.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Akinator API\n\nThis API allows you to interact with the Akinator game. It is built using the [Hono](https://hono.dev/) framework and the [akinatorjs](https://www.npmjs.com/package/akinatorjs) library.\n\n## Endpoints\n\n### Start a new game\n\n**POST** `/start-game`\n\n#### Request Body\n\n```json\n{\n    \"lang\": \"en\",\n    \"childMode\": \"false\"\n}\n```\n\n-   `lang`: The language in which to start the game. Supported values are:\n    -   \"en\"\n    -   \"ar\"\n    -   \"cn\"\n    -   \"de\"\n    -   \"es\"\n    -   \"fr\"\n    -   \"it\"\n    -   \"jp\"\n    -   \"kr\"\n    -   \"nl\"\n    -   \"pl\"\n    -   \"pt\"\n    -   \"ru\"\n    -   \"tr\"\n    -   \"id\"\n-   `childMode` (optional): Whether to enable child mode. Supported values are \"true\" and \"false\".\n\n#### Response\n\n```json\n{\n    \"id\": \"session_id\",\n    \"question\": \"Is your character real?\",\n    ...\n}\n```\n\n### Answer a question\n\n**POST** `/answer`\n\n#### Request Body\n\n```json\n{\n    \"id\": \"session_id\",\n    \"lang\": \"en\",\n    \"childMode\": \"false\",\n    \"answer\": \"yes\"\n}\n```\n\n-   `id`: The session ID of the game.\n-   `lang`: The language of the game.\n-   `childMode` (optional): Whether to enable child mode. Supported values are \"true\" and \"false\".\n-   `answer`: The answer to the current question. Supported values are:\n    -   \"Yes\"\n    -   \"No\"\n    -   \"IdontKnow\"\n    -   \"Probably\"\n    -   \"ProbablyNot\"\n    -   \"y\"\n    -   \"yes\"\n    -   \"n\"\n    -   \"no\"\n    -   \"idk\"\n    -   \"i don't know\"\n    -   \"p\"\n    -   \"probably\"\n    -   \"pn\"\n    -   \"probably not\"\n\n#### Response\n\n```json\n{\n    \"id\": \"session_id\",\n    \"question\": \"Is your character from a TV show?\",\n    ...\n}\n```\n\n## Built With\n\n-   [Hono](https://hono.dev/)\n-   [akinatorjs](https://www.npmjs.com/package/akinatorjs)\n\n## How to Run\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/dev-rio/akinator-api.git\n    cd akinator-api\n    ```\n\n2. Install dependencies:\n\n    ```bash\n    npm install\n    ```\n\n3. Run the server:\n\n    ```bash\n    npm run dev\n    ```\n\n4. The server will be running on `http://localhost:3000`.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpageton%2Fakinator-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpageton%2Fakinator-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpageton%2Fakinator-api/lists"}