> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peanutsapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Link Analysis

> Share URLs to automatically extract and log structured data

## Overview

Send a URL to Peanuts and it automatically extracts structured data from the page — recipes, products, articles, events, and more. The extracted content is routed to the appropriate Helper, just like any other entry.

<Info>
  Link analysis costs **1 credit** per link analyzed.
</Info>

## How It Works

<Steps>
  <Step title="Share a URL">
    Paste or send a link via WhatsApp, Telegram, or the web input bar.
  </Step>

  <Step title="Content detection">
    Peanuts detects the content type using JSON-LD, Open Graph metadata, and page structure.
  </Step>

  <Step title="Data extraction">
    Relevant fields are extracted — ingredients for recipes, prices for products, summaries for articles.
  </Step>

  <Step title="Route to Helper">
    The extracted data is routed to the matching Helper and saved as a structured entry.
  </Step>
</Steps>

## Supported Content Types

| Content Type | What's Extracted                                             |
| ------------ | ------------------------------------------------------------ |
| **Recipes**  | Title, ingredients, instructions, prep time, servings, image |
| **Products** | Name, price, description, brand, image, availability         |
| **Articles** | Title, author, summary, publication date, read time          |
| **Events**   | Name, date, location, description, ticket info               |
| **General**  | Title, description, key content, images                      |

## Usage Examples

### Via WhatsApp / Telegram

Simply send a URL:

```
https://www.allrecipes.com/recipe/chicken-tikka-masala
```

Peanuts responds:

```
🔗 Recipe detected!

📝 Chicken Tikka Masala
⏱️ Prep: 20 min | Cook: 40 min
🍽️ Servings: 6
📋 12 ingredients

Saved to Recipe Collection 🍳
```

### Via Web Input

Paste a URL into the Unified Input bar on the Home screen. Peanuts detects it as a link and processes it automatically.

### Via Ask Peanuts

Ask Peanuts to analyze a link:

* "Save this recipe: \[URL]"
* "Add this product to my wishlist: \[URL]"
* "Summarize this article: \[URL]"

## Smart Caching

Links are cached to avoid re-scraping the same content. If you share the same URL again, Peanuts uses the cached data (0 credits).

## Credit Usage

| Action                     | Credits |
| -------------------------- | ------- |
| Link analysis (first time) | 1       |
| Link analysis (cached)     | 0       |
| Link + AI routing          | 1-2     |

## Related

<CardGroup cols={2}>
  <Card title="Log Anything" icon="plus" href="/features/log-anything">
    The 4-tier matching system for all inputs
  </Card>

  <Card title="Smart Scan" icon="camera" href="/features/smart-scan">
    Extract data from photos and documents
  </Card>

  <Card title="WhatsApp" icon="comment" href="/integrations/whatsapp">
    Send links via WhatsApp
  </Card>

  <Card title="Telegram" icon="paper-plane" href="/integrations/telegram">
    Send links via Telegram
  </Card>
</CardGroup>
