{"id":13576604,"url":"https://github.com/erucix/Bard-API","last_synced_at":"2025-04-05T08:32:28.025Z","repository":{"id":183030054,"uuid":"669513505","full_name":"erucix/Bard-API","owner":"erucix","description":"Small, lightweight and reliable unofficial Google Bard API built on Node-JS only. No external library implemented and or required to download.","archived":false,"fork":false,"pushed_at":"2023-08-27T02:29:04.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-02T15:30:59.929Z","etag":null,"topics":["api","bard","bard-ai","bard-api","google-bard","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/erucix.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}},"created_at":"2023-07-22T14:21:30.000Z","updated_at":"2024-06-20T08:26:44.000Z","dependencies_parsed_at":"2024-03-17T04:38:21.102Z","dependency_job_id":"2010f0ee-1c9e-4204-9600-476067339cb5","html_url":"https://github.com/erucix/Bard-API","commit_stats":null,"previous_names":["erucix/bard-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erucix%2FBard-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erucix%2FBard-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erucix%2FBard-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erucix%2FBard-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erucix","download_url":"https://codeload.github.com/erucix/Bard-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223176469,"owners_count":17100633,"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":["api","bard","bard-ai","bard-api","google-bard","nodejs"],"created_at":"2024-08-01T15:01:11.938Z","updated_at":"2024-11-05T13:30:40.417Z","avatar_url":"https://github.com/erucix.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# 💀 GoogleBard API v3.0\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://chromeunboxed.com/wp-content/uploads/2023/03/Google-Bard-Feature.png\" width=\"376\" height=\"100%\" style=\"max-width: 100%;\"\u003e\n\u003c/p\u003e\n\nSmall, lightweight and reliable unofficial Google Bard API built on Node-JS only. No external library implemented and or required to download. Only for educational and testing purpose. And I hold no responsibility of its misuse.\n\n# 🫀 How to run?\nOpen your terminal and paste this command.\n```bash\ngit clone https://github.com/erucix/bard-api.git\ncd Bard-API\nnode example.js #make sure you have put your tokens in example.js\n```\n\nNow to implement your own Bot logic you can have a look at ```example.js``` or see this. \n\nMake sure you have  `cookie` token with you. You need the full cookie list.\n\nTo get your full `cookie` list follow this step:\n- Open https://bard.google.com\n- Open `Network` tab from `Developer Tools` or press `Ctrl+Shift+I` and go to `Network`\n- Now refresh `https://bard.google.com`.\n- Under `Name` section click on `bard.gooogle.com` or `/u/1` (You might need to scroll to top first)\n- Now under `Request Headers` copy all content from `Cookie`\n\nTo get your `snlm0e` token follow this step:\n- Open https://bard.google.com\n- Open `Console` from `Developer Tools` or press `Ctrl+Shift+I`\n- Paste this code in your console\u003cbr\u003e\n```javascript\nprompt(\"Copy me: \", WIZ_global_data.SNlM0e)\n```\nNow this is the file where you implement the `cookie` and `snlm0e` tokens\n```javascript\n\nconst bard = require(\"./Bard\");\n\nbard.prompt({\n    \"message\": \"Who is chris evans\",\n    \"cookie\": \"YOUR-COOKIE-HERE\",\n    \"snlm0e\": \"YOUR-SNLME0-TOKEN-HERE\"\n}).then(data =\u003e console.log(data.message.answer))\n```\n\nResponse will be in `object` and will be of following model:\n```javascript\n{\n    \"status\": \"pass or fail\"\n    \"message\": \"__CONTAINS_RESPONSE_OF_YOUR_PROMPT__\",\n    \"c_id\": \"__SOME_RANDOM_ID___\", //optional\n    \"r_id\": \"__SOME_RANDOM_ID___\", //optional\n    \"rc_id\": \"__SOME_RANDOM_ID___\", //optional\n}\n\n```\nYou can also get `Conversation history `and` Conversation List` using the built in api and this is left to be solved by the users themselves.\n\n**NOTE**: BARD API is still not officially released by google so this is a reverse engineered version. Proceed with caution.\n\n**Thanks for the time 💝**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferucix%2FBard-API","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferucix%2FBard-API","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferucix%2FBard-API/lists"}