# URL Intelligence – Web Data for Agents (`revenueswarm/url-intelligence-web-data-for-agents`) Actor

Extract clean text, metadata, links, JSON-LD, headers and content fingerprints from public URLs. Built for agents, RAG pipelines, monitoring, SEO audits, enrichment and automation.

- **URL**: https://apify.com/revenueswarm/url-intelligence-web-data-for-agents.md
- **Developed by:** [Revenue Swarm](https://apify.com/revenueswarm) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 url processeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## URL Intelligence — Web Data for AI Agents

Turn any public URL into compact, predictable JSON for AI agents, RAG pipelines, monitoring, enrichment, SEO checks, and automation.

**Pricing:** $1 per 1,000 processed URLs ($0.001 per result).

### Why use this Actor

Most agents do not need a full browser session just to understand a page. This Actor gives them the useful structure directly:

- final URL and HTTP status
- title, meta description, canonical, and robots directives
- H1/H2/H3 heading structure
- JSON-LD structured data
- normalized links with anchor text
- cleaned body text
- SHA-256 content fingerprint for change detection
- response headers including ETag and Last-Modified

One URL in → one machine-readable result out.

### Good for

- AI agent web research
- RAG ingestion and preprocessing
- website monitoring and change detection
- SEO and metadata audits
- lead and company-page enrichment
- content pipelines
- link discovery
- page fingerprinting
- automation workflows in n8n, Make, Zapier, Python, JavaScript, or MCP-connected agents

### Input

```json
{
  "urls": [
    "https://example.com"
  ],
  "includeLinks": true,
  "includeJsonLd": true,
  "maxLinks": 100
}
```

You can send multiple public HTTP(S) URLs in one run.

### Output example

```json
{
  "inputUrl": "https://example.com",
  "ok": true,
  "status": 200,
  "finalUrl": "https://example.com/",
  "title": "Example Domain",
  "description": null,
  "canonical": null,
  "robots": null,
  "h1": ["Example Domain"],
  "headings": [
    {"level": "h1", "text": "Example Domain"}
  ],
  "jsonLd": [],
  "links": [],
  "content": {
    "text": "Example Domain ...",
    "characters": 142,
    "sha256": "..."
  },
  "headers": {
    "cacheControl": null,
    "etag": null,
    "lastModified": null,
    "server": null
  }
}
```

### Machine-to-machine use

The Actor is intentionally cheap and deterministic so autonomous systems can call it repeatedly without committing to a large per-request purchase.

Each successfully processed URL produces one dataset item and one billable **URL processed** event.

### Limits and behavior

- public HTTP(S) URLs only
- up to 100 URLs per run
- 20-second fetch timeout per URL
- up to 500 links returned per page
- cleaned body text capped at 50,000 characters
- invalid or unreachable URLs return an error item instead of crashing the whole run

### Reliability

The Actor follows redirects, reports the final URL and HTTP status, and returns partial structured data when a page does not provide every metadata field.

Built and maintained by **Revenue Swarm**.

# Actor input Schema

## `urls` (type: `array`):

Public HTTP(S) URLs to analyze.

## `includeLinks` (type: `boolean`):

Return normalized links found on the page.

## `includeJsonLd` (type: `boolean`):

Return valid JSON-LD blocks found on the page.

## `maxLinks` (type: `integer`):

Maximum number of unique links returned for each URL.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "includeLinks": true,
  "includeJsonLd": true,
  "maxLinks": 100
}
```

# Actor output Schema

## `results` (type: `string`):

One structured result item per analyzed URL.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("revenueswarm/url-intelligence-web-data-for-agents").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("revenueswarm/url-intelligence-web-data-for-agents").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 '{}' |
apify call revenueswarm/url-intelligence-web-data-for-agents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,revenueswarm/url-intelligence-web-data-for-agents"
        }
    }
}
```

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/dVgs5ngE5440PTKPg/builds/52OCutyeseEDJnptc/openapi.json
