AI: Analysis 10 credits LLM

Entity Extraction API

Extract structured named entities from unstructured text using Claude AI via REST API. Returns people, organizations, dates, monetary amounts, locations, and custom entity types — structured as a JSON object, not a tagged string.

Try it live →

How it works

POST any text. The API returns a categorized list of extracted entities: each with its value, type, and position in the text. Handles complex cases like partial names, relative dates ("next Tuesday"), and implicit organizations.

Use cases

API Reference

POST https://slopshop.gg/v1/llm-extract-entities
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
text string required The text to process with AI
options object optional Optional configuration (format, length, etc.)

Example response

{
  "data": {
    "result": "AI-generated result based on your input.",
    "model": "claude-3-5-sonnet",
    "tokens_used": 150
  },
  "meta": {
    "credits_used": 10,
    "engine": "real",
    "ms": 4
  }
}

Examples

Three real-world scenarios showing how developers use Entity Extraction in production.

Example 1
Extract contract parties and dates
Pull structured data from a legal contract preamble.
curl -X POST https://slopshop.gg/v1/llm-extract-entities \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "This agreement is entered into on January 15, 2025 between Acme Corp, a Delaware corporation, and Beta LLC."}'
Example 2
Parse news article entities
Extract people, organizations, and locations from a news story.
curl -X POST https://slopshop.gg/v1/llm-extract-entities \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Apple CEO Tim Cook announced in Cupertino yesterday that the company will invest $500 million in a new facility in Texas."}'
Example 3
Extract action items from meeting notes
Identify owners and tasks from raw meeting minutes.
curl -X POST https://slopshop.gg/v1/llm-extract-entities \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "John will send the revised proposal by Friday. Sarah needs to review the budget with finance by EOD Wednesday."}'

Code examples

curl

curl -X POST https://slopshop.gg/v1/llm-extract-entities \
  -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/llm-extract-entities",
    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/llm-extract-entities", {
  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 llm-extract-entities
slop llm-extract-entities '{"input": "your data here"}'

Pricing

Credits per call
10
credits
Cost per call
$0.01
at Starter tier
Tier
LLM
Requires LLM key

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

Related APIs in AI: Analysis

View the full API catalog · Try in playground · Documentation