# AppGallery Package Lookup API Documentation

<p>Resolves a public Android package name through AppGallery search, then reads the app detail with the returned id. Search tries the full package and derived name terms and keeps only an exact package match. Returns the app id, name, developer, version, size and icon. The app id is accepted unchanged by the app detail endpoint. sha256 and download_url appear only when the upstream detail provides them; most apps have no download_url. One request costs 1 credit. A failed request is not charged.</p>

- **Documentation:** [https://scrappa.co/docs/appgallery-api/appgallery_package](https://scrappa.co/docs/appgallery-api/appgallery_package)
- **API group:** AppGallery API
- **Endpoint:** `GET https://scrappa.co/api/appgallery/package`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `package` | string | Yes | Android package name, for example com.huawei.appmarket. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The package parameter failed validation. |
| 404 | Package Not Found | No app with this package is present on this storefront. Not charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
