# Website URL Crawler & Link Extractor (`maged120/get-urls-pro`) Actor

Crawl any website and extract all URLs with full hierarchy — depth, parent URL, and anchor text. Supports static and JavaScript-rendered sites. Configurable depth and domain filtering.

- **URL**: https://apify.com/maged120/get-urls-pro.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Automation, Other, SEO tools
- **Stats:** 182 total users, 24 monthly users, 99.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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

## Website URL Crawler & Link Extractor

Crawl any website and extract all URLs in a hierarchical structure. Visualize your site architecture, audit internal links, discover broken paths, and build complete sitemaps â€” with configurable depth, domain filtering, and proxy support.

### What does Website URL Crawler do?

Start from any URL and this Actor recursively follows links to map the full structure of a website. Each result includes the URL, its depth level, parent URL, and link text â€” giving you a complete picture of how pages connect.

It supports fast HTTP crawling (BeautifulSoup) for static sites and JavaScript rendering (Selenium) for dynamic single-page applications.

### Why use this Actor?

- **Full site mapping** â€” crawl unlimited depth to discover every URL
- **Hierarchy preserved** â€” each URL includes its parent URL, depth, and anchor text
- **Two crawl modes** â€” fast HTTP for static sites, JS rendering for React/Vue/Angular apps
- **Domain filtering** â€” optionally restrict crawling to the same domain
- **Extension filtering** â€” skip PDFs, images, ZIPs, and other non-page assets
- **Duplicate prevention** â€” configurable deduplication to keep results clean

### How to use Website URL Crawler

1. Open the Actor and click **Try for free**
2. Enter a `startUrl`
3. Set `maxDepth` and `maxChildrenPerLink`
4. Run â€” the full URL tree appears in the Output tab
5. Download as JSON or CSV, or connect via the Apify API

### Input

```json
{
  "startUrl": "https://example.com/",
  "maxDepth": 3,
  "maxChildrenPerLink": 20,
  "sameDomainOnly": true,
  "useSelenium": false,
  "allowDuplicates": false,
  "ignoredExtensions": ["pdf", "jpg", "png", "zip"]
}
```

| Field | Type | Description | Default |
|---|---|---|---|
| `startUrl` | string | The URL to start crawling from | required |
| `maxDepth` | integer | Maximum link recursion depth (1â€“30) | `3` |
| `maxChildrenPerLink` | integer | Max child links per page (1â€“100) | `20` |
| `sameDomainOnly` | boolean | Only crawl URLs on the same domain | `true` |
| `useSelenium` | boolean | Use JS rendering for dynamic pages | `false` |
| `allowDuplicates` | boolean | Allow duplicate URLs in output | `false` |
| `ignoredExtensions` | array | File extensions to skip | `[]` |

### Output

```json
[
  {
    "url": "https://example.com/",
    "name": null,
    "depth": 0,
    "parentUrl": null
  },
  {
    "url": "https://example.com/about",
    "name": "About Us",
    "depth": 1,
    "parentUrl": "https://example.com/"
  },
  {
    "url": "https://example.com/about/team",
    "name": "Our Team",
    "depth": 2,
    "parentUrl": "https://example.com/about"
  }
]
```

### Output data fields

| Field | Type | Description |
|---|---|---|
| `url` | string | The full URL |
| `name` | string | Anchor text of the link (if available) |
| `depth` | number | Depth level from the start URL |
| `parentUrl` | string | The URL this link was found on |

### Use cases

- **Site audits** â€” find orphaned pages, broken internal link paths, or redirect chains
- **SEO analysis** â€” map your site architecture to identify crawl depth issues
- **Sitemap generation** â€” build sitemaps for sites that don't have one
- **Content migration** â€” extract all URLs before moving to a new CMS
- **Competitive research** â€” map a competitor's full site structure
- **QA testing** â€” verify all pages are reachable from the homepage

### Cost estimation

| Site size | Estimated cost |
|---|---|
| Small site (under 100 pages) | under $0.10 |
| Medium site (1,000 pages) | ~$0.50â€“$2.00 |
| Large site (10,000 pages) | ~$5â€“$20 |

Cost scales with the number of URLs crawled and whether JS rendering is enabled.

### FAQ

**What is the difference between HTTP mode and Selenium mode?**
HTTP mode (default) is 10x faster and works for most static HTML sites. Selenium mode renders JavaScript â€” use it for React, Vue, and Angular apps.

**Can I crawl multiple sites in one run?**
This Actor starts from a single URL. Trigger multiple runs via the Apify API to crawl several sites in parallel.

**Is this Actor maintained?**
Yes. For bugs or feature requests, open an issue in the Issues tab.

### Found this Actor useful?

If this Actor saved you time, please **[leave a review](https://apify.com/maged120/get-urls-pro#reviews)** on the Actor page. Reviews help other users discover it and take 30 seconds — every one genuinely matters.

For bugs, feature requests, or questions, open an issue in the **Issues** tab above.

# Actor input Schema

## `startUrl` (type: `string`):

The starting URL to crawl (e.g., https://jamesclear.com/five-step-creative-process)

## `useSelenium` (type: `boolean`):

Use Selenium for JavaScript-heavy pages (slower but more accurate for dynamic content)

## `allowDuplicates` (type: `boolean`):

Allow duplicate URLs to be included in the output. If false, each URL will appear only once.

## `maxDepth` (type: `integer`):

Maximum depth of link recursion

## `maxChildrenPerLink` (type: `integer`):

Maximum number of children links to follow from each parent link

## `sameDomainOnly` (type: `boolean`):

Only crawl URLs within the same domain as the start URL

## `ignoredExtensions` (type: `array`):

File extensions to ignore when crawling

## Actor input object example

```json
{
  "startUrl": "https://jamesclear.com/five-step-creative-process",
  "useSelenium": false,
  "allowDuplicates": false,
  "maxDepth": 3,
  "maxChildrenPerLink": 3,
  "sameDomainOnly": true,
  "ignoredExtensions": [
    "gif",
    "jpg",
    "png",
    "css",
    "jpeg",
    "woff",
    "ttf",
    "eot",
    "svg",
    "woff2",
    "ico"
  ]
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all discovered URLs with their depth, parent URL, link name, and query string

# 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 = {
    "startUrl": "https://jamesclear.com/five-step-creative-process",
    "ignoredExtensions": [
        "gif",
        "jpg",
        "png",
        "css",
        "jpeg",
        "woff",
        "ttf",
        "eot",
        "svg",
        "woff2",
        "ico"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/get-urls-pro").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 = {
    "startUrl": "https://jamesclear.com/five-step-creative-process",
    "ignoredExtensions": [
        "gif",
        "jpg",
        "png",
        "css",
        "jpeg",
        "woff",
        "ttf",
        "eot",
        "svg",
        "woff2",
        "ico",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("maged120/get-urls-pro").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 '{
  "startUrl": "https://jamesclear.com/five-step-creative-process",
  "ignoredExtensions": [
    "gif",
    "jpg",
    "png",
    "css",
    "jpeg",
    "woff",
    "ttf",
    "eot",
    "svg",
    "woff2",
    "ico"
  ]
}' |
apify call maged120/get-urls-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maged120/get-urls-pro"
        }
    }
}

```

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/sYOuEVFukYSEzFRwu/builds/pgwzP7bfyFKnIcd51/openapi.json
