# dsdanielpark/Bard-API

The unofficial python package that returns response of Google Bard through cookie value.

Repository: https://github.com/dsdanielpark/Bard-API
Canonical: https://ross.abutalabs.com/products/bard-api
Homepage: https://pypi.org/project/bardapi/
Language: Python
License: MIT
License Family: permissive
Topics: google-bard, google-bard-python, chatbot, nlp, google, llm, api, bard, ai-api, googlebard, bard-api, google-maps-api, google-bard-api
Archived: true
Last push: 2024-04-24T10:38:31+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 86
- inputs: {"age_days": 1210, "days_push": 861, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5177, forks 493 (observed 2026-08-28T04:09:11.757513+00:00)

## What it is
An unofficial Python package that returns Google Bard (now Gemini) responses by reverse-engineering the web interface using cookie values instead of official authentication. The project is marked inactive and superseded by the author's python-gemini-api / Gemini-API successor.

## Use cases
- query Google Bard from a Python script without official API access
- get chatbot responses using a __Secure-1PSID cookie
- prototype LLM chatbot apps on top of Google Bard
- avoid OAuth authentication issues with Google's AI chat
- extract Bard responses programmatically for experiments

## When to choose
- you specifically need the legacy BardAPI package for an existing integration
- you want a minimal cookie-based wrapper for Google's AI chat in Python

## When to avoid
- starting a new project - use the official Gemini API or the successor python-gemini-api instead
- you need a supported, stable, or officially sanctioned API
- production systems requiring reliability, since the reverse-engineered endpoint can break anytime

## Facets
- artifact type: library
- maturity: abandoned
- function: http-client, chatbot, llm-inference
- domain: large-language-models, chatbots, artificial-intelligence, developer-tools
- platform: python, cross-platform
- tags: google-bard, unofficial-api, reverse-engineering, cookie-authentication, deprecated, wrapper

## Member repositories
- dsdanielpark/Bard-API (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.757513+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:01:48.951803+00:00, confidence not recorded.
  - readme: https://github.com/dsdanielpark/Bard-API (fetched 2026-08-28T04:09:11.757513+00:00, sha d2b8f47897c4)
  - homepage: https://pypi.org/project/bardapi/ (fetched 2026-08-29T08:55:42.573206+00:00, sha 4b4e8fead74a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
