
Otto Data API: Extract Structured JSON in 2026
Otto Data API: Extract Structured JSON in 2026 TL;DR: To get structured Otto data via API, use the AlterLab Extract API to send a target URL and a JSON...
AlterLab handles this automatically — scrape any URL with one API call. No infrastructure required.
Try it freeTL;DR: To get structured Otto data via API, use the AlterLab Extract API to send a target URL and a JSON schema. The API handles browser rendering and anti-bot challenges, returning validated, typed JSON data such as prices, SKUs, and availability in a single request.
Disclaimer: This guide covers extracting publicly accessible data. Always review a site's robots.txt and Terms of Service before scraping.
Why use Otto data?
For data engineers and AI researchers, access to high-fidelity e-commerce data is a prerequisite for building production-grade applications. Accessing public data from Otto.de allows for several high-value workflows:
- Competitive Intelligence: Monitor price fluctuations and stock levels across specific product categories to inform pricing strategies.
- AI Training & RAG: Feed up-to-date product descriptions, specifications, and reviews into Large Language Models to build specialized e-commerce shopping assistants.
- Market Analytics: Aggregate product metadata to identify emerging trends in the German e-commerce landscape.
What data can you extract?
When building an otto data api integration, you aren't just looking for raw HTML. You are looking for specific, typed attributes that fit into your existing database schema. Because AlterLab uses schema-based extraction, you can target any publicly visible field.
Commonly extracted fields include:
- Product Identity:
title,brand,sku,model_number - Pricing Metadata:
price,currency,original_price,discount_percentage - Inventory Status:
availability(e.g., "in stock", "out of stock"),delivery_time - Social Proof:
rating_value,review_count - Technical Specs:
dimensions,weight,color,material
The extraction approach
Historically, extracting data from modern e-commerce platforms required a complex stack: a headless browser (like Playwright or Puppeteer), a rotating proxy management service, and a custom parser built with BeautifulSoup or Cheerio.
This approach is fragile. E-commerce sites frequently update their DOM structure, CSS classes, and anti-bot measures. A single change to a <div> class can break your entire ingestion pipeline.
A data API moves the complexity from your codebase to the infrastructure layer. Instead of managing browser contexts and parsing logic, you define what the data looks like via a JSON schema, and the API handles the how.
Quick start with AlterLab Extract API
To get started, you can follow our Getting started guide. The core of our service is the extract endpoint, which combines web retrieval with LLM-powered structural parsing.
Python Implementation
The Python client makes it easy to integrate structured extraction into your existing data pipelines.
from alterlab import AlterLabSync
client = AlterLabSync("YOUR_API_KEY")
schema = {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The full product name"
},
"price": {
"type": "number",
"description": "The current numeric price"
},
"currency": {
"type": "string",
"description": "The ISO currency code"
},
"sku": {
"type": "string",
"description": "The unique product identifier"
},
"availability": {
"type": "string",
"description": "Stock status"
}
}
}
result = client.scrape(
url="https://otto.de/p/example-product-id",
extraction_schema=schema,
)
print(result["filtered_content"])cURL Implementation
If you prefer working with shell scripts or standard HTTP clients, use the following command:
curl -X POST https://api.alterlab.io/v1/extract \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://otto.de/p/example-product-id",
"schema": {
"type": "object",
"properties": {
"title": {"type": "string"},
"price": {"type": "number"},
"currency": {"type": "string"}
}
}
}'Expected JSON Response:
{
"title": "Premium Wireless Headphones",
"price": 199.99,
"currency": "EUR",
"sku": "OTTO-12345-ABC",
"availability": "In Stock"
}Extract structured e-commerce data from Otto
Define your schema
The power of the Extract API docs lies in the schema definition. Unlike traditional scrapers that rely on CSS selectors like .product-price-value, AlterLab uses the schema to instruct the extraction engine on the expected data types and semantic meaning.
This means if Otto changes their price element from a <span> to a <div>, your code does not break. The engine understands the concept of "price" regardless of the underlying HTML structure.
Advanced Schema Validation
You can enforce strict types to ensure your downstream database (PostgreSQL, BigQuery, etc.) receives clean data. For example, you can specify that price must be a number and availability must be one of a specific set of strings using the enum keyword.
Handle pagination and scale
When moving from single-page extraction to full-scale otto json extraction, you need to manage volume and concurrency.
Batching and Async Jobs
For large-scale data ingestion, do not use synchronous requests. Instead, utilize our asynchronous job patterns to submit batches of URLs. This prevents your local process from idling while waiting for network I/O.
from alterlab import AlterLabSync
client = AlterLabSync(api_key="YOUR_API_KEY")
result = client.scrape(
"https://otto.de/p/item-1",
extraction_schema={"type": "object", "properties": {"title": {"type": "string"}, "price": {"type": "string"}, "description": {"type": "string"}}},
)
print(result["filtered_content"]) # dict matching your schemaManaging Costs
Scaling a data pipeline requires predictable costs. AlterLab allows you to estimate the cost of an extraction before you execute it. This is critical for building internal tools where users might trigger extractions via a UI.
Pricing is transparent and scales with your volume. You can review our AlterLab pricing for details on orchestration fees and BYOK (Bring Your Own Key) options.
Key takeaways
- Schema-First: Stop writing brittle CSS selectors. Define your data structure using JSON schema and let the API handle the parsing.
- Resilience: A data API approach handles the heavy lifting of browser rendering and anti-bot detection automatically.
- Type Safety: Get structured, validated JSON that is ready for immediate ingestion into your production databases.
- Scalability: Use batching and async jobs to scale from single product lookups to full e-commerce catalog monitoring.
Hit reply if you have questions.
AlterLab // Web Data, Simplified.
Was this article helpful?
Frequently Asked Questions
Related Articles

Oxylabs Alternative: Practical Developer Guide for Web Scraping Pipelines
Build reliable scraping pipelines with anti-bot handling, auto-escalation, and monitoring using a practical AltLab-compatible solution. Follow the 3-step setup, integrate with your existing workflow, and control costs at $0.0002 per request.
Herald Blog Service

MCP Servers Explained: How AI Tools Access the Real-Time Web in 2026
Learn how Model Context Protocol servers enable AI agents to fetch live data via scraping APIs, with architecture, code examples, and best practices for 2026.
Herald Blog Service

Web scraping vs. official APIs: when each approach makes sense
Learn when to rely on official APIs and when web scraping is the better option, with practical criteria and examples.
Herald Blog Service
Popular Posts
Recommended

Selenium Bot Detection: Why You Get Flagged and How to Fix It

Why Your Headless Browser Gets Detected (and How to Fix It)

Playwright Stealth and Anti-Bot Techniques for RAG Pipelines

Mastering Playwright Stealth for Agentic Web Workflows

How to Scrape E-Commerce Sites for AI Agents Using Playwright and LLMs
Newsletter
Scraping insights and API tips. No spam.
Recommended Reading

Selenium Bot Detection: Why You Get Flagged and How to Fix It

Why Your Headless Browser Gets Detected (and How to Fix It)

Playwright Stealth and Anti-Bot Techniques for RAG Pipelines

Mastering Playwright Stealth for Agentic Web Workflows

How to Scrape E-Commerce Sites for AI Agents Using Playwright and LLMs
Stay in the Loop
Get scraping insights, API tips, and platform updates. No spam — we only send when we have something worth reading.
Explore AlterLab
Web Scraping API Resources
Part of the Web Scraping API Documentation cluster
Complete API reference with 5-tier auto-escalation — Curl to challenge resolution.
Pillar pageConfigure Tier 4 browser rendering for SPAs and dynamic content.
Scrape pages behind login using session management.
Real success rates and cost data across all 5 tiers.
MCP Server, Python SDK, and Firecrawl-compatible API for AI agent workflows.