Sense: Web 3 credits NETWORK

Fetch URL as Clean Text API

Fetch any public URL and extract clean, human-readable text via REST API. Strips HTML tags, JavaScript, CSS, navigation menus, and ads — returning just the main textual content of the page, like what a screen reader would present.

Try it live →

How it works

POST a URL. The API makes an HTTP GET request, parses the HTML, removes boilerplate elements (nav, footer, scripts, styles), and returns the main content as clean text. Also returns the page title, word count, and a list of headings.

Use cases

API Reference

POST https://slopshop.gg/v1/sense-url-content
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
url / domain string required The URL or domain name to query

Example response

{
  "data": {
    "result": "success",
    "processed": true
  },
  "meta": {
    "credits_used": 3,
    "engine": "real",
    "ms": 4
  }
}

Examples

Three real-world scenarios showing how developers use Fetch URL as Clean Text in production.

Example 1
Feed article into LLM
Fetch clean article text from a URL to use as context for summarization.
curl -X POST https://slopshop.gg/v1/sense-url-content \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://techcrunch.com/2024/01/15/some-article"}'
Example 2
Monitor competitor page
Fetch a competitor's pricing page to detect content changes.
curl -X POST https://slopshop.gg/v1/sense-url-content \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://competitor.com/pricing"}'
Example 3
Scrape product description
Extract product text from an e-commerce page for catalog enrichment.
curl -X POST https://slopshop.gg/v1/sense-url-content \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://store.example.com/products/widget-pro"}'

Code examples

curl

curl -X POST https://slopshop.gg/v1/sense-url-content \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "your data here"}'

Python

import requests

response = requests.post(
    "https://slopshop.gg/v1/sense-url-content",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"input": "your data here"}
)
result = response.json()
print(result["data"])

Node.js

const response = await fetch("https://slopshop.gg/v1/sense-url-content", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);

CLI

# Install the Slopshop CLI
npm install -g slopshop

# Set your API key
export SLOPSHOP_KEY=your_api_key

# Call sense-url-content
slop sense-url-content '{"input": "your data here"}'

Pricing

Credits per call
3
credits
Cost per call
$0.003
at Starter tier
Tier
NETWORK
Makes network calls

Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 3 credits per call — that's $0.003. See all pricing tiers.

Related APIs in Sense: Web

View the full API catalog · Try in playground · Documentation