google_play_scraper

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: LGPL-3.0 Imports: 8 Imported by: 0

README

google-play-scraper

GoDoc Go Report Card Coverage Status

Golang scraper to get data from Google Play Store

This project is inspired by the google-play-scraper node.js project

Installation

go get -u github.com/nano-interactive/google-play-scraper@v0.1.0

Usage

[!WARNING]

Methods other than LoadDetails are not maintained and therefore currently deleted. If any additional functionality is needed, refer to original repository

Get app details

Retrieves the full detail of an application.

package main

import (
	"fmt"
	scraper "github.com/nano-interactive/google-play-scraper"
	"net/http"
)

func main() {
	appDetails := scraper.New("com.google.android.googlequicksearchbox", scraper.Options{
		Country:  "us",
		Language: "us",
	}, http.DefaultClient)
	err := appDetails.LoadDetails()
	if err != nil {
		panic(err)
	}

	fmt.Println(appDetails)
}

Documentation

Index

Constants

View Source
const (
	GeographicLocation = "gl"
	HostLanguage       = "hl"
)

Variables

View Source
var (
	ErrRequiredFieldsMissing = errors.New("app URL or ID must be provided")
	ErrNotFound              = errors.New("app by ID doesn't exist on app store")
)

Functions

This section is empty.

Types

type App

type App struct {
	AdSupported              bool
	AndroidVersion           string
	AndroidVersionMin        float64
	Available                bool
	ContentRating            string
	ContentRatingDescription string
	Description              string
	DescriptionHTML          string
	Developer                string
	DeveloperID              string
	DeveloperInternalID      string
	DeveloperURL             string
	DeveloperWebsite         string
	FamilyGenre              string
	FamilyGenreID            string
	Free                     bool
	Genre                    string
	GenreID                  string
	HeaderImage              string
	IAPOffers                bool
	IAPRange                 string
	Icon                     string
	ID                       string
	Installs                 string
	InstallsMin              int
	InstallsMax              int
	Permissions              map[string][]string
	Price                    Price
	PriceFull                Price
	PrivacyPolicy            string
	Ratings                  int
	RatingsHistogram         map[int]int
	RecentChanges            string
	RecentChangesHTML        string
	Released                 string
	Score                    float64
	ScoreText                string
	Screenshots              []string
	SimilarURL               string
	Summary                  string
	Title                    string
	Updated                  time.Time
	URL                      string
	Version                  string
	Video                    string
	VideoImage               string
	// contains filtered or unexported fields
}

func New

func New(id string, options Options, client HTTPClient) *App

func (*App) LoadDetails

func (app *App) LoadDetails() error

LoadDetails loads page and maps app details into App

type HTTPClient added in v0.1.0

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Options

type Options struct {
	Country  string
	Language string
}

type Price

type Price struct {
	Currency string
	Value    float64
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL