Introduction to Microwaves
Microwaves are essential kitchen appliances for quick cooking and reheating. With numerous models available from brands like Panasonic, Samsung, LG, GE, and Whirlpool, finding the right microwave with the right features can be overwhelming. Whether you're a homeowner looking for a compact countertop model, a renter needing a built-in option, or a developer building an appliance marketplace, having structured microwave product data is crucial.
Imagine being able to search for microwaves and instantly get detailed information about each appliance - from capacity and power to cooking presets and smart features, from dimensions to installation type. This is exactly what a specialized Microwave Product API can provide.
What Makes a Microwave API Special?
A Microwave Product API goes beyond basic product listings. It understands the unique characteristics that matter to microwave buyers:
- Capacity: Interior capacity in cubic feet
- Power: Wattage and cooking power
- Type: Countertop, over-the-range, built-in, or drawer style
- Features: Sensor cooking, convection, and preset programs
- Size: Dimensions for fitting into kitchen spaces
- Control: Dial, button, or touch controls
- Interior: Coating and cleaning features
- Smart Features: Wi-Fi connectivity and app control
With this structured data, you can build powerful features like filtering by capacity, comparing power levels, or recommending microwaves based on kitchen size.
Try It Out: Search for Microwaves
Use the search bar below to search for microwaves. Try queries like "Panasonic inverter 1200W", "Samsung over-the-range", or "GE Profile built-in". The results will include detailed specifications automatically extracted from product information across the web.
Try the Microwave API
Search for microwaves and see detailed specifications automatically extracted from product information.
How It Works: Technical Implementation
Now that you've seen the API in action, let's dive into how it's implemented. This specialized Microwave API is built on top of The Product API which is an AI-based product search API that works with any product and any type of query. It responds with structured JSON and supports custom structured responses, allowing you to build specialized APIs for any product category.
The Product API's powerful custom_data_schema feature allows you to define additional structured fields specific to your product category, enabling you to create category-specific APIs like this Microwave API. For more details on how the API works, see the full documentation.
Understanding APIs for Product Data
An API (Application Programming Interface) enables different software applications to communicate. For product data:
- Input: You send a search query (e.g., "microwave Panasonic inverter")
- Processing: The API searches across multiple sources and uses AI to extract relevant information
- Output: You receive structured product data in JSON format
The flexibility of a product API means you can customize it for specific categories by defining additional data fields through JSON Schema.
Creating a Microwave-Specific JSON Schema to pass as custom_data_schema of search request
Here's the JSON Schema we use for microwave products:
{ "type": "object", "properties": { "capacity": { "type": "string", "description": "Interior capacity in cubic feet (e.g., '1.2 cu ft', '2.0 cu ft')" }, "power": { "type": "string", "description": "Cooking power in watts (e.g., '1000W', '1200W')" }, "microwave_type": { "type": "string", "enum": ["countertop", "over_the_range", "built_in", "drawer"], "description": "Microwave installation type" }, "convection": { "type": "boolean", "description": "Convection cooking capability" }, "inverter_technology": { "type": "boolean", "description": "Inverter technology for even cooking" }, "sensor_cooking": { "type": "boolean", "description": "Sensor cooking technology" }, "preset_programs": { "type": "array", "items": { "type": "string" }, "description": "Cooking preset programs (e.g., ['popcorn', 'beverage', 'frozen dinner', 'reheat'])" }, "control_type": { "type": "string", "enum": ["dial", "button", "touch", "smart"], "description": "Control interface type" }, "interior_coating": { "type": "string", "description": "Interior coating material (e.g., 'stainless steel', 'ceramic', 'non-stick')" }, "turntable": { "type": "boolean", "description": "Rotating turntable" }, "turntable_size": { "type": "string", "description": "Turntable size in inches (if applicable)" }, "defrost": { "type": "boolean", "description": "Defrost function" }, "keep_warm": { "type": "boolean", "description": "Keep warm function" }, "smart_features": { "type": "boolean", "description": "Smart connectivity features (Wi-Fi, app control)" }, "width": { "type": "string", "description": "Width in inches" }, "depth": { "type": "string", "description": "Depth in inches" }, "height": { "type": "string", "description": "Height in inches" }, "weight": { "type": "string", "description": "Weight in pounds or kilograms" }, "color_finish": { "type": "array", "items": { "type": "string" }, "description": "Available color/finish options (e.g., ['stainless steel', 'black', 'white'])" }, "price_range": { "type": "string", "description": "Price range category (budget, mid-range, premium)" } }, "required": ["capacity", "power", "microwave_type"] }
Using the Category Prefix
When searching for microwaves, we prefix the search query with "microwave" to help the AI understand the context and return more relevant results.
Example Search Queries:
microwave Panasonic inverter 1200Wmicrowave Samsung over-the-rangemicrowave GE Profile built-inmicrowave LG smart countertop
The prefix "microwave" ensures the API understands you're looking specifically for microwave ovens and not other appliances.
Complete Example: Making a Request
Here's how to make a request to The Product API with a microwave-specific schema. For complete API reference including authentication, endpoints, and all parameters, see the documentation:
const response = await fetch('https://api.example.com/api?search=microwave%20Panasonic%20inverter&with_image=true', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify({ custom_data_schema: { type: "object", properties: { capacity: { type: "string", description: "Interior capacity in cubic feet" }, power: { type: "string", description: "Cooking power in watts" }, microwave_type: { type: "string", enum: ["countertop", "over_the_range", "built_in", "drawer"], description: "Microwave installation type" }, convection: { type: "boolean", description: "Convection cooking capability" }, inverter_technology: { type: "boolean", description: "Inverter technology for even cooking" }, sensor_cooking: { type: "boolean", description: "Sensor cooking technology" }, preset_programs: { type: "array", items: { type: "string" }, description: "Cooking preset programs" }, control_type: { type: "string", enum: ["dial", "button", "touch", "smart"], description: "Control interface type" }, interior_coating: { type: "string", description: "Interior coating material" }, turntable: { type: "boolean", description: "Rotating turntable" }, turntable_size: { type: "string", description: "Turntable size in inches" }, defrost: { type: "boolean", description: "Defrost function" }, keep_warm: { type: "boolean", description: "Keep warm function" }, smart_features: { type: "boolean", description: "Smart connectivity features" }, width: { type: "string", description: "Width in inches" }, depth: { type: "string", description: "Depth in inches" }, height: { type: "string", description: "Height in inches" }, weight: { type: "string", description: "Weight" }, color_finish: { type: "array", items: { type: "string" }, description: "Available color/finish options" }, price_range: { type: "string", description: "Price range category" } }, required: ["capacity", "power", "microwave_type"] } }) }); const data = await response.json(); console.log(data.products);
Expected Response
The API will return products with standard fields plus your custom custom_data field:
{ "status": "success", "products": [ { "name": "Panasonic NN-SN966S Inverter Microwave Oven", "description": "The Panasonic NN-SN966S features 1200W of power...", "brand": "Panasonic", "image": "https://example.com/image.jpg", "custom_data": { "capacity": "2.2 cu ft", "power": "1200W", "microwave_type": "countertop", "convection": false, "inverter_technology": true, "sensor_cooking": true, "preset_programs": ["popcorn", "beverage", "frozen dinner", "reheat", "defrost"], "control_type": "touch", "interior_coating": "stainless steel", "turntable": true, "turntable_size": "16.5 inches", "defrost": true, "keep_warm": true, "smart_features": false, "width": "23.5 inches", "depth": "19.1 inches", "height": "14.2 inches", "weight": "36.4 lbs", "color_finish": ["stainless steel"], "price_range": "mid-range" } } ] }
Conclusion
By combining the flexible Product API with a microwave-specific JSON Schema, you can create a powerful, specialized API for microwave products. The key is:
- Define your schema based on what microwave data matters to your application
- Use category prefixes in search queries for better context
- Leverage the custom_data field to build rich, category-specific features
The same approach works for any product category - you just need to define the right schema for your needs!
Ready to get started? Create your own product API on The Product API and start building your own category-specific APIs today!
Ready to build your own category-specific API? Check out our other API preset guides for dishwashers, vacuums, refrigerators, and more!