# URL Context Bundle: Markdown, JSON-LD, Feeds, Wayback in One (`accountable_eel/url-context-bundle`) Actor

URL to Markdown and page metadata in one call. One row per URL: the page as clean Markdown, its JSON-LD and meta tags, feed links, the redirect chain, the HTTP status and the first Wayback Machine capture. Plain HTTP, no browser, no API key.

- **URL**: https://apify.com/accountable_eel/url-context-bundle.md
- **Developed by:** [Adriana Voss](https://apify.com/accountable_eel) (community)
- **Categories:** Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 url bundleds

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?

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 Context Bundle: Markdown, JSON-LD, Feeds, Wayback in One

Give it a page URL and get **one row with everything about that page**: the content as clean
Markdown, its JSON-LD and meta tags, the feeds it declares, the redirect chain, the HTTP status
and the date the Internet Archive first captured it. URL to Markdown and page metadata in one
call instead of six. Plain HTTP, no browser, no API key, no login. A page that could not be read
comes back as a free row that says why.

### Who it's for

- **AI agents and LLM pipelines** that need a page as context: the Markdown to read, the
  structured data to trust, and the status and redirects to know what was actually fetched.
- **RAG and knowledge-base builders** who want the text and the metadata (title, language,
  publish date, canonical URL) in the same record.
- **SEO and content teams** checking a list of URLs for status, redirects, canonical, Open Graph
  tags and JSON-LD in one pass.
- **Researchers and monitoring tools** that want to know how long a page has existed and which
  feed to follow for updates.

### What you get

One row per URL:

| What | Columns |
| --- | --- |
| The response | `url`, `finalUrl`, `statusCode`, `contentType`, `redirectCount`, `redirectChain` |
| The content | `title`, `description`, `lang`, `publishedAt`, `markdown`, `markdownScope`, `wordCount`, `markdownTruncated`, `needsBrowser` |
| Meta tags | `canonical`, `robotsMeta`, `h1`, `og`, `twitter`, `favicon` |
| Structured data | `jsonLdCount`, `jsonLdTypes`, `jsonLd` |
| Feeds | `feedCount`, `feeds` |
| Wayback Machine | `waybackFirstCaptureAt`, `waybackFirstCaptureUrl`, `waybackStatus` |
| Provenance | `found`, `status`, `partsFailed`, `notes`, `sourceUrl`, `scrapedAt` |

Example rows, shortened:

| query | found | statusCode | redirectCount | finalUrl | title | markdownScope | wordCount | jsonLdTypes | feedCount | waybackStatus |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| https://www.python.org/blog/ | true | 200 | 2 | https://www.python.org/blogs/ | Our Blogs | Python.org | page | 195 | WebSite | 5 | REQUEST_FAILED |
| a page that does not exist | false | 404 | 0 | | | | | | | |

The python.org row also carries the 3,100-character Markdown of the page, the three addresses of
its redirect chain, its Open Graph tags and favicon, the JSON-LD object itself and all five feeds
with their titles (Python Insider, Python Releases, PEPs, jobs, PSF news). On the day that row
was made the Internet Archive was offline, so its Wayback columns are empty and the row says so;
it is a full bundle and is still one charge.

#### What this covers, and what it does not

- **The page is fetched once.** Every part is read from the same response, so the Markdown, the
  meta tags and the status always describe the same fetch.
- **Markdown is the article when there is one.** The main article is extracted and navigation,
  header, footer and cookie banners are removed (`markdownScope: article`). On an index or
  landing page with no single article, the whole page body is converted instead
  (`markdownScope: page`). Links and image addresses are absolute.
- **No browser.** A page that only fills in its content with JavaScript has almost no text in
  its HTML. It comes back with `needsBrowser: true` and an empty `markdown`; its meta tags,
  JSON-LD, feeds, status and Wayback date are still returned.
- **JSON-LD is returned as published.** Up to 25 objects per page, `@graph` lists unpacked,
  plus the list of schema.org types. Malformed blocks are skipped.
- **Feeds are the ones the page declares.** RSS, Atom and JSON Feed links in the page head, with
  `source: declared`. Only when a page declares none are six conventional addresses on its site
  tried (`/feed`, `/rss.xml`, `/atom.xml` and the like), and one is listed only if it really
  answers with a feed (`source: probed`).
- **The redirect chain is the addresses, in order.** From the URL you gave to the final one. The
  status code is the final response's.
- **Wayback is the first capture only.** The date and link of the oldest capture of the URL you
  gave. `waybackStatus` is `OK`, `NOT_ARCHIVED`, or `REQUEST_FAILED` when the archive did not
  answer. A failed check is never reported as "not archived".
- **Empty means not known.** A value that could not be read is empty, never 0. `jsonLdCount: 0`
  and `feedCount: 0` mean the page was read and has none.
- **robots.txt is respected.** Each site's robots.txt is read first. A page it disallows ends
  as a free `ROBOTS_DISALLOWED` row.
- **Public pages only.** Nothing behind a login, and no addresses inside a private network.

### How to use

1. **In the Apify Console.** Open the actor page and click **Start** — the `urls` field is already pre-filled with a working example. Results land in the run's dataset as soon as each item is found.
2. **Via the API.** Call it directly with a POST request — no Console needed once you have an API token:
   ```bash
   curl "https://api.apify.com/v2/acts/accountable_eel~url-context-bundle/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
     -X POST \
     -H "Content-Type: application/json" \
     -d '{"urls":["https://www.python.org/blog/"]}'
   ```
3. **On a schedule.** Save this actor as an Apify **Task** with the input you want, then add a **Schedule** (hourly, daily, weekly) so it runs on its own — no server of your own required.

### Input

```json
{
  "urls": [
    "https://www.python.org/blog/"
  ]
}
```

One page URL per line, such as https://www.python.org/blog/. Each URL comes back as one row: the page as Markdown, its JSON-LD and meta tags, the feeds it declares, the redirect chain, the HTTP status and the date of its first Wayback Machine capture. Accepted formats: https://www.python.org/blog/, https://example.com/blog/some-article, example.com/pricing.

```json
{
  "urls": ["https://www.python.org/blog/", "example.com/pricing"],
  "onlyFound": true
}
```

`urls` takes full URLs, and bare addresses such as `example.com/pricing` (read over https).
There is nothing else to set: every URL gets the whole bundle.

### Output

One row per URL, for example:

| query | found | status | url | finalUrl | statusCode | contentType | redirectCount | redirectChain | title | description | lang | publishedAt | markdown | markdownScope | wordCount | markdownTruncated | needsBrowser | canonical | robotsMeta | h1 | og | twitter | favicon | jsonLdCount | jsonLdTypes | jsonLd | feedCount | feeds | waybackFirstCaptureAt | waybackFirstCaptureUrl | waybackStatus | partsFailed | notes | sourceUrl | scrapedAt |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| https://www.python.org/blog/ | true | OK | <url> | <final url> | <http status> | <content type> | <redirects> | <redirect chain> | <title> | <description> | <language> | <published> | <markdown> | <markdown covers> | <words> | \<markdown cut?> | \<needs a browser?> | <canonical url> | <robots meta tag> | <first heading> | <open graph tags> | <twitter card tags> | <favicon> | <json-ld objects> | <json-ld types> | <json-ld> | <feeds> | <feed links> | <first wayback capture> | <first capture link> | <wayback check> | <parts that could not be read> | <notes> | <source> | 1970-01-01T00:00:00.000Z |

A row that is not a bundle has `"found": false`, a `status` and a `message` that says why, and is
never charged:

| status | Meaning |
| --- | --- |
| `NOT_FOUND` | The page does not exist (HTTP 404 or 410) |
| `BLOCKED` | The site refused the request (bot protection) |
| `SITE_UNREACHABLE` | No such host, a timeout or a server error |
| `NOT_HTML` | The address is a file or an API response, not a web page |
| `EMPTY_PAGE` | The page was read and has no text, no meta tags and no structured data |
| `ROBOTS_DISALLOWED` | The site's robots.txt disallows the page |
| `BAD_INPUT` | The line is not a public http(s) page URL |
| `DUPLICATE` | The same URL is in the run twice; it is bundled and charged once |

### Example runs

Three inputs that need no credentials of any kind and return rows as they stand. Paste one into the
Input tab and press Start.

**1. Bundle one page**

```json
{
  "urls": ["https://www.python.org/blog/"]
}
```

**2. Bundle several pages and keep only the ones that were read**

```json
{
  "urls": ["https://www.python.org/blog/", "https://www.python.org/about/", "https://docs.python.org/3/tutorial/"],
  "onlyFound": true
}
```

**3. Keep the row small for an agent: content and feeds only**

```json
{
  "urls": ["https://www.python.org/blog/"],
  "columns": ["url", "finalUrl", "statusCode", "title", "markdown", "feeds"]
}
```

`columns` only chooses what is shown; the price per URL is the same.

### Pricing

Pay-per-event. A flat per-run fee covers session/proxy warmup; each independent
source is billed under its own event, only when that source actually returns
data — see `.actor/pay_per_event.json` for exact prices. A miss is never
charged.

One event, `url-bundled`, charged once per URL returned with `"found": true`, whatever the bundle
holds. A row with `"found": false` (not found, blocked, unreachable, not HTML, empty, disallowed,
duplicate) is free. The row is charged before it is delivered, so a run that reaches its spending
limit never hands out a row it did not bill.

### Use it from Clay, n8n, Make, or an AI agent

This actor runs synchronously over plain HTTP — call it directly from a script, a workflow tool, or an AI agent, no Apify Console needed once you have an API token.

```bash
curl "https://api.apify.com/v2/acts/accountable_eel~url-context-bundle/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.python.org/blog/"]}'
```

**n8n.** Add an HTTP Request node: Method `POST`, URL `https://api.apify.com/v2/acts/accountable_eel~url-context-bundle/run-sync-get-dataset-items?token=<YOUR_TOKEN>`, Body Content Type `JSON`, JSON Body `{"urls":["https://www.python.org/blog/"]}` (swap in an expression from an earlier node for a real value).

**Clay.** Add an "HTTP API" column: Method `POST`, URL `https://api.apify.com/v2/acts/accountable_eel~url-context-bundle/run-sync-get-dataset-items?token=<YOUR_TOKEN>`, Body `{"urls":["{{URL}}"]}`, mapping the row's URL into the `urls` array.

**MCP.** In Claude, Cursor, or any MCP client with the Apify MCP server, ask for "URL to Markdown and Page Metadata in One Call" — the agent will find and run this actor.

# Actor input Schema

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

One page URL per line, such as https://www.python.org/blog/. Each URL comes back as one row: the page as Markdown, its JSON-LD and meta tags, the feeds it declares, the redirect chain, the HTTP status and the date of its first Wayback Machine capture. Accepted formats: https://www.python.org/blog/, https://example.com/blog/some-article, example.com/pricing. You're only charged for the ones we actually find — a miss costs nothing.

## `testRun` (type: `boolean`):

Turn this on to test your input on a small sample before running the full list. Turn it off to process everything.

## `onlyFound` (type: `boolean`):

Only keep rows where something was actually found. Misses are always free, whether or not you show them here.

## `includeKeywords` (type: `array`):

Optional. Only keep results that mention at least one of these words (e.g. a job title, a city, a product name). Leave empty to keep everything.

## `excludeKeywords` (type: `array`):

Optional. Drop any result that mentions one of these words. Leave empty to skip nothing.

## `maxResults` (type: `integer`):

Optional. Stop the run once this many results have been found — useful for a quick, cheap sample. Leave blank for no limit.

## `columns` (type: `array`):

Choose which pieces of information to include in each result row. All are included by default.

## `maxConcurrency` (type: `integer`):

Parallel requests. Keep conservative — this target has no browser fallback, so getting blocked costs more than slow-and-steady.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/blog/"
  ],
  "testRun": false,
  "onlyFound": false,
  "includeKeywords": [],
  "excludeKeywords": [],
  "columns": [
    "url",
    "finalUrl",
    "statusCode",
    "contentType",
    "redirectCount",
    "redirectChain",
    "title",
    "description",
    "lang",
    "publishedAt",
    "markdown",
    "markdownScope",
    "wordCount",
    "markdownTruncated",
    "needsBrowser",
    "canonical",
    "robotsMeta",
    "h1",
    "og",
    "twitter",
    "favicon",
    "jsonLdCount",
    "jsonLdTypes",
    "jsonLd",
    "feedCount",
    "feeds",
    "waybackFirstCaptureAt",
    "waybackFirstCaptureUrl",
    "waybackStatus",
    "partsFailed",
    "notes",
    "sourceUrl"
  ],
  "maxConcurrency": 3
}
```

# Actor output Schema

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

No description

# 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 = {
    "urls": [
        "https://www.python.org/blog/"
    ],
    "includeKeywords": [],
    "excludeKeywords": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("accountable_eel/url-context-bundle").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 = {
    "urls": ["https://www.python.org/blog/"],
    "includeKeywords": [],
    "excludeKeywords": [],
}

# Run the Actor and wait for it to finish
run = client.actor("accountable_eel/url-context-bundle").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 '{
  "urls": [
    "https://www.python.org/blog/"
  ],
  "includeKeywords": [],
  "excludeKeywords": []
}' |
apify call accountable_eel/url-context-bundle --silent --output-dataset

```

## MCP server setup

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

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/nLw5TmSmgfNTemJFb/builds/XOphCHnhBVlqAjlXz/openapi.json
