Sense: Web
3 credits
NETWORK
Get URL Metadata API
Extract SEO and social metadata from any URL via REST API. Returns the page title, meta description, Open Graph tags (og:title, og:image, og:description), Twitter Card tags, canonical URL, and any structured data markup on the page.
Try it live →How it works
POST a URL. The API fetches the page head, parses all <meta> tags, link tags, and JSON-LD script blocks, and returns them as a structured JSON object organized by type.
Use cases
- Generate rich link previews for URLs shared in a chat application
- Audit Open Graph tags across a site for social sharing quality
- Validate that published pages have the correct SEO metadata
- Build URL preview components for content editors or CMS tools
API Reference
POST https://slopshop.gg/v1/sense-url-meta
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
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 Get URL Metadata in production.
Example 1
Generate link preview
Fetch OG tags to render a rich preview when a URL is shared in chat.
curl -X POST https://slopshop.gg/v1/sense-url-meta \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://github.com/openai/openai-python"}'
Example 2
Audit SEO metadata
Check that a published page has a proper meta description and OG image.
curl -X POST https://slopshop.gg/v1/sense-url-meta \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://mysite.com/blog/new-post"}'
Example 3
Extract structured data
Check if a recipe page has JSON-LD schema markup.
curl -X POST https://slopshop.gg/v1/sense-url-meta \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://cooking.example.com/pasta-carbonara"}'
Code examples
curl
curl -X POST https://slopshop.gg/v1/sense-url-meta \
-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-meta",
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-meta", {
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-meta
slop sense-url-meta '{"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