Help us shape the future of Go! Take the 2026 Go Developer Survey

googleplay

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 12 Imported by: 0

README

Google Play clients for Crawlora

Official Crawlora client packages for the hosted Google Play API. Access 11 API endpoints covering app search, details, reviews, ratings, permissions, data safety, charts, similar apps, and developers from JavaScript/TypeScript, Python, Go, Ruby, Java, and PHP. These clients call Crawlora's hosted API; they do not scrape Google Play locally. Requests use your Crawlora account and CRAWLORA_API_KEY; service usage follows your account billing plan. Crawlora is independent from and not affiliated with or endorsed by Google Play or its owners.

Language packages

For installation and runnable examples, use the README for your language. See the API endpoint and parameter reference for shared operation details.

Create an account at crawlora.net, open the Crawlora console to get an API key, or read the API documentation. Keep CRAWLORA_API_KEY out of source control.

API coverage and supported endpoints

The six language clients provide access to all 11 selected public Google Play API operations. Search or browse by endpoint path and operation ID below; the complete API reference adds parameters, enums, and response details.

Method Endpoint API operation Description
GET /googleplay/app googleplay-app Retrieve full Google Play app details
GET /googleplay/categories googleplay-categories Retrieve Google Play app categories
GET /googleplay/datasafety googleplay-datasafety Retrieve Google Play data safety details
GET /googleplay/developer/{dev_id} googleplay-developer Retrieve apps by Google Play developer
GET /googleplay/list googleplay-list Retrieve apps from a Google Play top collection
GET /googleplay/permissions googleplay-permissions Retrieve Google Play app permissions
GET /googleplay/ratings googleplay-ratings Get Google Play ratings by device
GET /googleplay/reviews googleplay-reviews Retrieve Google Play reviews
GET /googleplay/search googleplay-search Search Google Play
GET /googleplay/similar googleplay-similar Retrieve similar Google Play apps
GET /googleplay/suggest/{term} googleplay-suggest Retrieve Google Play query suggestions

License

MIT. See LICENSE.

Documentation

Overview

Package googleplay is Crawlora's Google Play API client for 11 endpoints, covering app search, details, reviews, ratings, permissions, data safety, charts, similar apps, and developers. API documentation: https://crawlora.net/docs?utm_source=pkg.go.dev&utm_medium=referral&utm_campaign=platform-clients&utm_content=googleplay-go-api-docs

Index

Examples

Constants

View Source
const (
	DefaultBaseURL = "https://api.crawlora.net/api/v1"
	Version        = "0.1.2"
)
View Source
const OperationCount = 11

OperationCount reports how many selected-platform operations this module exposes.

Variables

This section is empty.

Functions

func OperationIDs

func OperationIDs() []string

OperationIDs returns the selected operation IDs in stable sorted order.

Types

type Client

type Client struct {
	APIKey     string
	BaseURL    string
	Timeout    time.Duration
	HTTPClient *http.Client
}

Client calls only the operation IDs included in this platform module.

func NewClient

func NewClient(apiKey string) *Client

NewClient creates a client using the supplied API key, or CRAWLORA_API_KEY when empty.

func (*Client) App

func (c *Client) App(ctx context.Context, params Params) (any, error)

App calls the googleplay-app operation.

func (*Client) Call

func (c *Client) Call(ctx context.Context, operationID string, params Params) (any, error)

Call executes a selected platform operation by operation ID.

Example
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
	w.Header().Set("Content-Type", "application/json")
	_, _ = w.Write([]byte(`{"ok":true}`))
}))
defer server.Close()

client := NewClient("your-crawlora-api-key")
client.BaseURL = server.URL + "/api/v1"
client.HTTPClient = server.Client()
result, err := client.Call(context.Background(), "googleplay-app", Params{"app_id": "sample"})
if err != nil {
	panic(err)
}
fmt.Println(result.(map[string]any)["ok"])
Output:
true

func (*Client) Categories

func (c *Client) Categories(ctx context.Context, params Params) (any, error)

Categories calls the googleplay-categories operation.

func (*Client) Close

func (c *Client) Close() error

Close releases idle connections held by the configured HTTP transport.

func (*Client) Datasafety

func (c *Client) Datasafety(ctx context.Context, params Params) (any, error)

Datasafety calls the googleplay-datasafety operation.

func (*Client) Developer

func (c *Client) Developer(ctx context.Context, params Params) (any, error)

Developer calls the googleplay-developer operation.

func (*Client) List

func (c *Client) List(ctx context.Context, params Params) (any, error)

List calls the googleplay-list operation.

func (*Client) Permissions

func (c *Client) Permissions(ctx context.Context, params Params) (any, error)

Permissions calls the googleplay-permissions operation.

func (*Client) Ratings

func (c *Client) Ratings(ctx context.Context, params Params) (any, error)

Ratings calls the googleplay-ratings operation.

func (*Client) Reviews

func (c *Client) Reviews(ctx context.Context, params Params) (any, error)

Reviews calls the googleplay-reviews operation.

func (*Client) Search

func (c *Client) Search(ctx context.Context, params Params) (any, error)

Search calls the googleplay-search operation.

func (*Client) Similar

func (c *Client) Similar(ctx context.Context, params Params) (any, error)

Similar calls the googleplay-similar operation.

func (*Client) Suggest

func (c *Client) Suggest(ctx context.Context, params Params) (any, error)

Suggest calls the googleplay-suggest operation.

type Params

type Params map[string]any

Params maps the exact OpenAPI parameter names expected by this platform client.

Jump to

Keyboard shortcuts

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