API & Contact
Access market data programmatically
📡 Public API
Access DreadMarket data for your own projects. All endpoints return JSON with icon URLs.
Search/Filter Listings
GET https://dreadmarket.net/api/search.php
Search and filter listings with multiple parameters.
Parameters: q, min_level, max_level, min_price, max_price, stat, min_stat, seller, slot, limit
Example
/api/search.php?q=sword&min_level=50&stat=Strength&min_stat=30&limit=20
Get Item by ID
GET https://dreadmarket.net/api/item.php?id={id}
Get a single item with full details and icon URL.
Market Statistics
GET https://dreadmarket.net/api/stats.php
Get aggregated market stats: total listings, average price, top sellers, quality distribution.
Item Icon
GET https://dreadmarket.net/api/icon.php?id={id}
Redirects to the item's icon image. Also accepts icon_id parameter.
All Listings
GET https://dreadmarket.net/api/listings.php
Full listings JSON (~30MB). Use search API for filtered results. Usage is tracked.
Price History
GET https://dreadmarket.net/api/history.php
Historical price data for items over time. Usage is tracked.
API Usage Stats
GET https://dreadmarket.net/api/usage.php
View API usage statistics: total requests, bandwidth, response times.
💻 Usage Examples
JavaScript / Fetch
const response = await fetch('https://dreadmarket.net/api/listings.php');
const listings = await response.json();
console.log(`Found ${listings.length} items`);
Python
import requests
response = requests.get('https://dreadmarket.net/api/listings.php')
listings = response.json()
print(f"Found {len(listings)} items")
cURL
curl -s https://dreadmarket.net/api/listings.php | jq '.[0]'
⚠️ Rate Limits
Please be respectful with API usage:
- Data updates every 30 seconds
- Cache responses locally when possible
- No authentication required
- CORS enabled for browser requests
📬 Contact
Questions, feature requests, or bug reports?
Join Discord
Message on Discord for bug reports
