# Apk Scraper (`thenetaji/apk-downloader`) Actor

📱 Find and extract direct download links for APK files from websites. Also discovers other downloadable content like videos, images, and audio files. Perfect for gathering Android apps and media files from various sources.

- **URL**: https://apify.com/thenetaji/apk-downloader.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 111 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 📱 APK Downloader

🚀 Download Android APK files directly from various sources. Supports downloading from APK hosting sites and app stores with customizable parameters and proxy support.

### 🎯 What is APK Downloader?

APK Downloader is an Apify actor designed to:

- 📲 Download APK files from various sources
- 🔍 Extract APK metadata and details
- 🛡️ Use proxies to avoid rate limiting
- 📊 Provide detailed download logs

### ⚙️ How to Use

#### Input Configuration

Configure your downloads with these parameters:

- 🔗 **urls** (Required): List of APK download URLs
  ```json
  [{ "url": "https://example.com/app.apk" }]
  ```
- 🔒 **proxy** (Optional): Proxy configuration
  - `useApifyProxy` (Boolean)
  - `apifyProxyGroups` (Array)
  - `countryCode` (String)

#### 📝 Example Input

```json
{
  "urls": [
    {
      "url": "https://example.com/app.apk"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "countryCode": "US"
  }
}
```

### 📊 Output Format

```json
{
  "title": "Example App",
  "downloadURL": "https://download.example.com/app.apk",
  "fileSize": "25MB",
  "downloadedAt": "2025-03-13T03:24:26Z"
}
```

### ✨ Key Features

- 🚀 **Fast Downloads**: Optimized for quick APK retrieval
- 🛡️ **Proxy Support**: Uses Apify's proxy infrastructure
- 📊 **Detailed Logs**: Track download progress and status
- 🔄 **Auto-Retry**: Handles failed downloads automatically
- 💾 **Size Control**: Manages large file downloads efficiently

### 🚨 Important Notes

- 📌 Only downloads publicly available APK files
- ⚠️ Some sources may require proxy usage
- 🔒 Respects source website's terms of service
- 📱 Verify APK files before installation

### 🚀 Explore Our Analytics Ecosystem

#### 📱 [TikTok Profile Scraper](https://apify.com/thenetaji/tiktok-profile-scraper/api?utm_source=actor-docs\&utm_medium=readme\&utm_campaign=thenetaji)

Advanced TikTok profile and metrics extraction

#### 🎵 [TikTok Video Downloader](https://apify.com/thenetaji/tiktok-video-downloader/api?utm_source=actor-docs\&utm_medium=readme\&utm_campaign=thenetaji)

Download TikTok videos without watermarks

#### 🎥 [YouTube Video Downloader](https://apify.com/thenetaji/youtube-video-downloader/api?utm_source=actor-docs\&utm_medium=readme\&utm_campaign=thenetaji)

Extract YouTube videos in multiple resolutions

#### 🔊 [YouTube Music Downloader](https://apify.com/thenetaji/youtube-music-downloader/api/openapi?utm_source=actor-docs\&utm_medium=readme\&utm_campaign=thenetaji)

Extract audio from YouTube videos

#### 🌐 [Website Media Link Scraper](https://apify.com/thenetaji/website-media-link-scraper/api?utm_source=actor-docs\&utm_medium=readme\&utm_campaign=thenetaji)

Extract media assets from websites

#### 📹 [YouTube Video & Music Downloader](https://apify.com/thenetaji/youtube-video-and-music-downloader?utm_source=actor-docs\&utm_medium=readme\&utm_campaign=thenetaji)

All-in-one YouTube content extractor

### 💡 Pro Tips

- Use residential proxies for better success rates
- Verify URLs before downloading
- Monitor download logs for any issues
- Keep APK URLs updated and valid

### 📮 Support & Documentation

Need help? Contact @thenetaji through the Apify platform for:

- Technical support
- Feature requests
- Implementation questions

Happy Downloading! 🎉

# Actor input Schema

## `startUrls` (type: `array`):

List of URLs to start crawling from

## `mediaType` (type: `string`):

The type of media links to extract from the crawled pages

## `maxCrawlDepth` (type: `integer`):

Maximum depth to crawl from the start URLs (higher values may significantly increase run time)

## `minConcurrency` (type: `integer`):

Minimum number of concurrent request to start with

## `maxUrlsToCrawl` (type: `integer`):

Maximum number of urls to crawl

## `maxRequestRetries` (type: `integer`):

Maximum number of times to retry a request if it fails

## `useProxy` (type: `object`):

Whether to use Apify Proxy for making requests (recommended for most websites)

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.apkmirror.com/"
    }
  ],
  "mediaType": "all",
  "maxCrawlDepth": 2,
  "minConcurrency": 5,
  "maxUrlsToCrawl": 100,
  "maxRequestRetries": 2,
  "useProxy": {
    "useApifyProxy": false,
    "apifyProxyGroups": []
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.apkmirror.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/apk-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.apkmirror.com/" }] }

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/apk-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.apkmirror.com/"
    }
  ]
}' |
apify call thenetaji/apk-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thenetaji/apk-downloader"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9BIYRIffgVJ2B45xr/builds/dKwRvKU7COzsQVOmO/openapi.json
