AllModern APIallmodern.com ↗
Search AllModern's catalog of modern furniture, lighting, and decor via API. Returns prices, ratings, reviews, images, and product URLs with pagination.
What is the AllModern API?
The AllModern API exposes one endpoint — search_products — that returns up to 48 product listings per page from AllModern's catalog of modern furniture, lighting, and decor. Each response includes 10 fields per product: name, SKU, URL, image URL, sale price, original price, rating, review count, badge, and color options. The endpoint accepts keyword queries and supports five sort orders, making it straightforward to retrieve ranked or filtered product sets.
curl -X GET 'https://api.parse.bot/scraper/d58dcdc2-e789-49ff-aef9-0a8efd155b9a/search_products?page=2&query=lamp&sort_by=price_low' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace allmodern-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""
AllModern Product Search API Client
This module provides a Python client for searching and browsing modern furniture,
lighting, and decor products on AllModern.com.
Get your API key from: https://parse.bot/settings
"""
import os
import requests
from typing import Optional, Dict, Any
class ParseClient:
"""Client for interacting with the AllModern Product Search API."""
def __init__(self, api_key: Optional[str] = None):
"""
Initialize the Parse API client.
Args:
api_key: API key for authentication. If not provided, reads from PARSE_API_KEY env var.
Raises:
ValueError: If no API key is provided or found in environment.
"""
self.base_url = "https://api.parse.bot"
self.scraper_id = "d58dcdc2-e789-49ff-aef9-0a8efd155b9a"
self.api_key = api_key or os.getenv("PARSE_API_KEY")
if not self.api_key:
raise ValueError(
"API key not provided. Set PARSE_API_KEY environment variable or pass api_key parameter."
)
def _call(self, endpoint: str, method: str = "POST", **params) -> Dict[str, Any]:
"""
Make an API call to the Parse service.
Args:
endpoint: The endpoint name (e.g., 'search_products')
method: HTTP method ('GET' or 'POST')
**params: Query/body parameters to send with the request
Returns:
Dictionary containing the API response
Raises:
requests.RequestException: If the API call fails
ValueError: If an unsupported HTTP method is provided
"""
url = f"{self.base_url}/scraper/{self.scraper_id}/{endpoint}"
headers = {
"X-API-Key": self.api_key,
"Content-Type": "application/json",
}
if method == "GET":
response = requests.get(url, headers=headers, params=params)
elif method == "POST":
response = requests.post(url, headers=headers, json=params)
else:
raise ValueError(f"Unsupported HTTP method: {method}")
response.raise_for_status()
return response.json()
def search_products(
self,
query: str,
page: int = 1,
sort_by: str = "",
) -> Dict[str, Any]:
"""
Search for products on AllModern by keyword.
Args:
query: Search keyword (e.g., 'sofa', 'lamp', 'rug', 'desk')
page: Page number for pagination (default: 1)
sort_by: Sort order - 'price_low', 'price_high', 'top_rated', 'most_popular', 'newest'
Returns:
Dictionary containing search results with products and pagination info
"""
params = {
"query": query,
"page": page,
}
if sort_by:
params["sort_by"] = sort_by
return self._call("search_products", method="GET", **params)
def format_price(price: float) -> str:
"""Format price as currency string."""
return f"${price:.2f}"
def print_product_summary(product: Dict[str, Any], index: int = 0) -> None:
"""Print a concise product summary."""
name = product["name"]
price = product.get("sale_price") or product.get("original_price", 0)
rating = product.get("rating", "N/A")
reviews = product.get("review_count", 0)
if index > 0:
print(f"\n {index}. {name}")
else:
print(f" • {name}")
print(f" Price: {format_price(price)} | Rating: {rating}★ ({reviews} reviews)")
if product.get("badge"):
print(f" Badge: {product['badge']}")
def main():
"""Demonstrate practical usage of the AllModern Product Search API."""
# Initialize the client
client = ParseClient()
print("=" * 80)
print("AllModern Furniture Search - Practical Workflow")
print("=" * 80)
try:
# Workflow 1: Find top-rated furniture for home office setup
print("\n📍 WORKFLOW: Furnishing a modern home office\n")
furniture_items = ["desk", "office chair", "bookshelf"]
office_furniture = {}
for item in furniture_items:
print(f"\n🔍 Searching for best-rated '{item}'...")
results = client.search_products(query=item, page=1, sort_by="top_rated")
if results.get("products"):
office_furniture[item] = results["products"][0]
print(f" Found: {results['total_results']} results")
print(f" Top match: {results['products'][0]['name']}")
print(f" Price: {format_price(results['products'][0].get('sale_price') or results['products'][0].get('original_price', 0))}")
print(f" Rating: {results['products'][0]['rating']}★ ({results['products'][0]['review_count']} reviews)")
# Workflow 2: Budget comparison - find affordable alternatives
print("\n" + "-" * 80)
print("\n💰 WORKFLOW: Finding budget-friendly alternatives\n")
search_term = "sofa"
print(f"Comparing {search_term} options by price...\n")
# Get most expensive
expensive = client.search_products(query=search_term, page=1, sort_by="price_high")
# Get cheapest
affordable = client.search_products(query=search_term, page=1, sort_by="price_low")
if expensive.get("products") and affordable.get("products"):
expensive_sofa = expensive["products"][0]
cheap_sofa = affordable["products"][0]
print(f"💎 Most Expensive Option:")
print(f" {expensive_sofa['name']}")
print(f" Price: {format_price(expensive_sofa.get('sale_price') or expensive_sofa.get('original_price', 0))}")
print(f" Rating: {expensive_sofa['rating']}★\n")
print(f"🎯 Most Affordable Option:")
print(f" {cheap_sofa['name']}")
print(f" Price: {format_price(cheap_sofa.get('sale_price') or cheap_sofa.get('original_price', 0))}")
print(f" Rating: {cheap_sofa['rating']}★")
price_diff = (expensive_sofa.get('sale_price') or expensive_sofa.get('original_price', 0)) - \
(cheap_sofa.get('sale_price') or cheap_sofa.get('original_price', 0))
print(f"\n 💵 Price difference: {format_price(price_diff)}")
# Workflow 3: Browse multiple pages for lighting options
print("\n" + "-" * 80)
print("\n🔦 WORKFLOW: Browsing lighting products across pages\n")
search_term = "modern lamp"
total_reviewed = 0
best_rated_lamp = None
best_rating = 0
for page in range(1, 3):
results = client.search_products(query=search_term, page=page)
print(f"Page {page} of {results['total_pages']}:")
print(f" Showing {results['products_count']} products (Total available: {results['total_results']})\n")
for idx, product in enumerate(results["products"][:3], 1):
rating = product.get("rating", 0)
if rating > best_rating:
best_rating = rating
best_rated_lamp = product
print_product_summary(product, idx)
total_reviewed += 1
if page >= 2:
break
if best_rated_lamp:
print(f"\n⭐ Best-rated lamp found: {best_rated_lamp['name']}")
print(f" Rating: {best_rated_lamp['rating']}★ ({best_rated_lamp['review_count']} reviews)")
print(f" URL: {best_rated_lamp['url']}")
# Workflow 4: Sale items discovery
print("\n" + "-" * 80)
print("\n🏷️ WORKFLOW: Finding items on sale\n")
search_term = "rug"
results = client.search_products(query=search_term, page=1, sort_by="most_popular")
sale_items = [p for p in results.get("products", []) if p.get("badge") == "Sale"]
print(f"Searching '{search_term}' for sale items...\n")
print(f"Found {len(sale_items)} items on sale out of {results['products_count']} shown\n")
if sale_items:
for idx, item in enumerate(sale_items[:3], 1):
original = item.get("original_price", 0)
sale = item.get("sale_price", original)
savings = original - sale
print(f"{idx}. {item['name']}")
print(f" Was: {format_price(original)} → Now: {format_price(sale)}")
print(f" You save: {format_price(savings)} ({(savings/original*100):.0f}% off)")
print(f" Rating: {item['rating']}★\n")
print("=" * 80)
print("✅ Workflow demonstration completed successfully!")
print("=" * 80)
except requests.RequestException as e:
print(f"❌ API request failed: {e}")
except KeyError as e:
print(f"❌ Unexpected response format: Missing key {e}")
except Exception as e:
print(f"❌ An error occurred: {e}")
if __name__ == "__main__":
main()Search for products by keyword on AllModern. Returns product listings with name, price, rating, reviews, images, and URLs. Results are paginated with 48 products per page.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination. |
| queryrequired | string | Search keyword (e.g. 'sofa', 'lamp', 'rug', 'desk') |
| sort_by | string | Sort order. Accepted values: 'price_low', 'price_high', 'top_rated', 'most_popular', 'newest'. Omitting returns default recommended order. |
{
"type": "object",
"fields": {
"page": "integer - current page number",
"query": "string - search keyword used",
"products": "array of product objects with keys: name, sku, url, image_url, sale_price, original_price, rating, review_count, badge, color_options",
"total_pages": "integer - total number of pages available",
"total_results": "integer or null - total number of matching products",
"products_count": "integer - number of products on this page"
},
"sample": {
"data": {
"page": 1,
"query": "sofa",
"products": [
{
"sku": "kkah1348",
"url": "https://www.allmodern.com/furniture/pdp/allmodern-wanetta-88-upholstered-sofa-with-solid-wood-leg-kkah1348.html",
"name": "Wanetta 88'' Upholstered Sofa With Solid Wood Leg",
"badge": "Sale",
"rating": 4.7,
"image_url": "https://assets.wfcdn.com/im/77486600/resize-h400-w400%5Ecompr-r85/4257/425700362/Wanetta+88%27%27+Upholstered+Sofa+With+Solid+Wood+Leg.jpg",
"sale_price": 1399,
"review_count": 170,
"color_options": "5 Colors",
"original_price": 1599
}
],
"total_pages": 6,
"total_results": 273,
"products_count": 48
},
"status": "success"
}
}About the AllModern API
What the API Returns
The search_products endpoint accepts a required query string — such as 'sofa', 'desk', or 'pendant light' — and returns a paginated list of matching products from AllModern. Each product object includes name, sku, url, image_url, sale_price, original_price, rating, review_count, badge (such as sale or bestseller labels), and color_options. The response envelope also carries total_results, total_pages, products_count, and the page and query values used in the request.
Sorting and Pagination
Results are paginated at 48 products per page. The optional page parameter navigates between pages; total_pages tells you how many exist for a given query. The optional sort_by parameter accepts five values: price_low, price_high, top_rated, most_popular, and newest. Omitting sort_by returns the default relevance ordering. Combining sort_by=price_low with pagination lets you walk the full sorted catalog for any keyword.
Pricing and Review Data
Both sale_price and original_price are returned for each product, so you can compute discount amounts or filter to items currently on sale. rating and review_count are included at the product level, which is enough to sort or filter by social proof without making additional calls. total_results may occasionally be null depending on how AllModern surfaces that count for a given query.
The AllModern API is a managed, monitored endpoint for allmodern.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when allmodern.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official allmodern.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a price-comparison tool that tracks
sale_pricevsoriginal_priceover time for furniture categories - Aggregate
ratingandreview_countacross product listings to surface top-rated modern decor items - Power a shopping feed by iterating through all
total_pagesfor a given keyword query - Monitor
badgefields to detect when products receive sale or bestseller status - Build a catalog index of AllModern SKUs for downstream inventory or analytics workflows
- Filter and rank results by
sort_by=newestto track new product introductions in a specific category - Populate a curated furniture recommendation widget using product
image_urlandurlfields
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does AllModern have an official developer API?+
What does the `search_products` endpoint return for each product?+
name, sku, url, image_url, sale_price, original_price, rating, review_count, badge, and color_options. The response also includes pagination metadata: page, total_pages, total_results, and products_count.Can I retrieve product detail pages or individual product specs?+
Is `total_results` always populated?+
total_results field is typed as integer or null and may be null for certain queries depending on how AllModern surfaces that count. Use total_pages and products_count as reliable fallbacks for pagination logic.Does the API support filtering by category, price range, or brand?+
query and a sort_by sort order. Category filters, price range filters, and brand filters are not exposed as parameters. You can fork the API on Parse and revise it to add those filter parameters as separate inputs.