Skip to main content

🚀 langchain-playstore

PyPI version Python 3.10+ License: MIT

LangChain retrievers for the Google Play Store — fetch app details and retrieve user reviews as LangChain Document objects. No API keys required.

Perfect for building RAG applications that can analyze app store feedback, monitor sentiment, or scrape competitor features.

✨ Features

Retriever What it does API Key Required?
PlayStoreAppRetriever Fetch full metadata/details of an app ❌ No!
PlayStoreReviewsRetriever Fetch user reviews for an app ❌ No!

📦 Installation

pip install langchain-playstore

🚀 Quick Start

Fetch App Details

from langchain_playstore import PlayStoreAppRetriever

retriever = PlayStoreAppRetriever(
    lang="en",      # Default is "en"
    country="us"    # Default is "us"
)

# You can pass the app package ID or a full Play Store URL
docs = retriever.invoke("com.google.android.youtube")

app_metadata = docs[0].metadata
print(f"Name: {app_metadata['title']}")
print(f"Developer: {app_metadata['developer']}")
print(f"Score: {app_metadata['score']} / 5.0")
print(f"Installs: {app_metadata['installs']}")

Fetch App Reviews

from langchain_playstore import PlayStoreReviewsRetriever

retriever = PlayStoreReviewsRetriever(
    lang="en",
    country="us",
    max_results=5,
    sort="helpfulness", # "helpfulness", "newest", "rating"
)

docs = retriever.invoke("https://play.google.com/store/apps/details?id=com.whatsapp")

for doc in docs:
    print(f"⭐ {doc.metadata['score']} / 5")
    print(f"💬 {doc.page_content}")
    print(f"👍 {doc.metadata['thumbs_up']} upvotes\n")

📄 License

MIT — see LICENSE for details.

Metadata

Release files for langchain-playstore 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-playstore 0.1.0
File Size Uploaded
langchain_playstore-0.1.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-playstore 0.1.0
File Interpreter ABI Platform
langchain_playstore-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / langchain_playstore-0.1.0.tar.gz

Download URL langchain_playstore-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d68cc22e4a722f8e029394c9620db30333dce9012565194971dd32d010a0570a
BLAKE2b-256 checksum
How to use checksums
cc53fa69915f2b52ec46006cfb1c88dcbb0877b3a2edbbc054f4232a32220ae0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / langchain_playstore-0.1.0-py3-none-any.whl

Download URL langchain_playstore-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b62e3a91fac739c057a35e9c8b21feab1e1c8445c0c220c6038c5e91c1e66da
BLAKE2b-256 checksum
How to use checksums
1d6e54c9bd697b10b79b4fb1c840a6ad0d0766d8d8a09704d5222457765077ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page