See what you can build
Real API examples created with ServeP2E. Each one started as a simple English description. Click any example to see the prompt, request, and response.
Currency Converter
Convert between currencies with live exchange rates.
PROMPT
"Create an API that converts an amount from one currency to another using current exchange rates."
POST /api/convert-currency
{
"amount": 100,
"from": "USD",
"to": "EUR"
}{
"amount": 100,
"from": "USD",
"to": "EUR",
"result": 91.45,
"rate": 0.9145,
"timestamp": "2024-01-15T10:30:00Z"
}Sentiment Analyzer
Analyze the emotional tone of text content.
PROMPT
"Create an API that takes a text message and returns the sentiment (positive, negative, neutral) with a confidence score."
POST /api/analyze-sentiment
{
"text": "I absolutely love this product! Best purchase ever."
}{
"text": "I absolutely love this...",
"sentiment": "positive",
"confidence": 0.94,
"scores": {
"positive": 0.94,
"neutral": 0.05,
"negative": 0.01
}
}URL Shortener
Create short, trackable links from long URLs.
PROMPT
"Create an API that takes a long URL and returns a shortened version that redirects to the original."
POST /api/shorten-url
{
"url": "https://example.com/very/long/path/to/resource",
"custom_alias": "my-link"
}{
"original_url": "https://example.com/very/long/path/to/resource",
"short_url": "https://s.servep2e.com/my-link",
"alias": "my-link",
"created_at": "2024-01-15T10:30:00Z"
}Image Optimizer
Resize and compress images on the fly.
PROMPT
"Create an API that takes an image URL and dimensions, returns an optimized version."
POST /api/optimize-image
{
"url": "https://example.com/image.jpg",
"width": 800,
"height": 600,
"format": "webp",
"quality": 80
}{
"original_url": "https://example.com/image.jpg",
"optimized_url": "https://cdn.servep2e.com/img/abc123.webp",
"original_size": 1250000,
"optimized_size": 245000,
"reduction": "80%"
}Weather Lookup
Get current weather conditions for any city.
PROMPT
"Create an API that takes a city name and returns the current weather with temperature, humidity, and conditions."
POST /api/weather
{
"city": "San Francisco",
"units": "imperial"
}{
"city": "San Francisco",
"country": "US",
"temperature": 62,
"units": "fahrenheit",
"humidity": 75,
"condition": "Partly Cloudy",
"wind_speed": 12
}Text Translator
Translate text between 100+ languages.
PROMPT
"Create an API that translates text from one language to another, with auto-detection of source language."
POST /api/translate
{
"text": "Hello, how are you?",
"target_language": "es",
"source_language": "auto"
}{
"original_text": "Hello, how are you?",
"translated_text": "Hola, ¿cómo estás?",
"source_language": "en",
"target_language": "es",
"confidence": 0.99
}Email Validator
Verify email addresses are valid and deliverable.
PROMPT
"Create an API that validates an email address, checking format, domain existence, and mailbox validity."
POST /api/validate-email
{
"email": "user@example.com"
}{
"email": "user@example.com",
"is_valid": true,
"format_valid": true,
"domain_exists": true,
"mailbox_exists": true,
"is_disposable": false,
"is_role_account": false
}Date Calculator
Calculate business days, add/subtract dates.
PROMPT
"Create an API that calculates the number of business days between two dates, excluding weekends and holidays."
POST /api/business-days
{
"start_date": "2024-01-15",
"end_date": "2024-01-31",
"country": "US"
}{
"start_date": "2024-01-15",
"end_date": "2024-01-31",
"business_days": 11,
"total_days": 16,
"holidays_excluded": ["2024-01-15"],
"weekends_excluded": 4
}Product Scraper
Extract product data from e-commerce pages.
PROMPT
"Create an API that takes a product URL and extracts the title, price, description, and availability."
POST /api/scrape-product
{
"url": "https://shop.example.com/product/12345"
}{
"title": "Wireless Bluetooth Headphones",
"price": 79.99,
"currency": "USD",
"description": "Premium noise-canceling...",
"in_stock": true,
"rating": 4.5,
"review_count": 1247
}Text Summarizer
Generate concise summaries of long content.
PROMPT
"Create an API that takes a long text or article and returns a concise summary of the key points."
POST /api/summarize
{
"text": "Long article content here...",
"max_length": 150,
"style": "bullet_points"
}{
"summary": [
"Key point 1 from the article",
"Key point 2 from the article",
"Key point 3 from the article"
],
"original_length": 2500,
"summary_length": 145,
"compression_ratio": "94%"
}IP Geolocation
Get location data from IP addresses.
PROMPT
"Create an API that takes an IP address and returns geographic location including country, city, and coordinates."
POST /api/geolocate-ip
{
"ip": "8.8.8.8"
}{
"ip": "8.8.8.8",
"country": "United States",
"country_code": "US",
"city": "Mountain View",
"region": "California",
"latitude": 37.4056,
"longitude": -122.0775,
"timezone": "America/Los_Angeles"
}Hash Generator
Generate cryptographic hashes of text or files.
PROMPT
"Create an API that takes text input and returns various hash formats: MD5, SHA-1, SHA-256."
POST /api/generate-hash
{
"text": "Hello, World!",
"algorithms": ["md5", "sha256"]
}{
"input_length": 13,
"hashes": {
"md5": "65a8e27d8879283831b664bd...",
"sha256": "dffd6021bb2bd5b0af676290..."
}
}