5 Best Instant Pot Air Fryers: Top-Rated & Editor-Approved

Welcome to our ultimate guide on finding the best Instant Pot with air fryer combination! If you’re looking to streamline your kitchen, save counter space, and effortlessly whip up a wide array of delicious meals, an Instant Pot that doubles as an air fryer is a game-changer. These innovative appliances combine the speed and efficiency of pressure cooking with the crispy, golden results of air frying, offering unparalleled versatility for busy home cooks. Whether you’re craving tender pot roasts, perfectly crispy chicken wings, or fluffy rice, these multi-functional marvels have you covered. Join us as we explore our top picks, breaking down their features, benefits, and what makes each stand out.

Quick Product Comparison

.modern-product-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
font-size: 14px;
}
.modern-product-table thead th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 10px 8px;
text-align: left;
font-weight: 600;
font-size: 15px;
border: none;
}
.modern-product-table tbody td {
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.modern-product-table tbody tr:last-child td {
border-bottom: none;
}
.product-name {
font-weight: 600;
color: #2d3748;
font-size: 14px;
line-height: 1.4;
max-width: 300px;
}
.product-name a {
color: inherit;
text-decoration: none;
}
.product-name a:hover {
color: #ff6b35 !important;
}
.product-image-cell {
text-align: center;
width: 80px;
}
.product-image-cell img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
border: 2px solid #e2e8f0;
transition: transform 0.2s ease;
}
.product-image-cell img:hover {
transform: scale(1.05);
}
.price-button-cell {
text-align: center;
width: 140px;
}
.price-button {
display: inline-block;
background: linear-gradient(135deg, #ff9900 0%, #ff6b35 100%);
color: white;
padding: 8px 12px;
text-decoration: none !important;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
box-shadow: 0 2px 8px rgba(255,153,0,0.3);
transition: all 0.2s ease;
white-space: nowrap;
}
.price-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}
@media (max-width: 768px) {
.modern-product-table {
font-size: 13px;
}
.modern-product-table thead th {
padding: 8px 6px;
font-size: 14px;
}
.modern-product-table tbody td {
padding: 8px 6px;
}
.product-name {
font-size: 13px;
max-width: 200px;
}
.product-image-cell img {
width: 50px;
height: 50px;
}
.price-button {
padding: 6px 10px;
font-size: 12px;
}
}
@media (max-width: 480px) {
.modern-product-table {
font-size: 12px;
}
.modern-product-table thead th {
padding: 6px 4px;
font-size: 13px;
}
.modern-product-table tbody td {
padding: 6px 4px;
}
.product-name {
font-size: 12px;
max-width: 150px;
}
.product-image-cell {
width: 60px;
}
.product-image-cell img {
width: 40px;
height: 40px;
}
.price-button-cell {
width: 120px;
}
.price-button {
padding: 5px 8px;
font-size: 11px;
}
}

<!–

–>

<!–

–>

<!–

–>

<!–

–>

<!–

–>

Product Image Check Price
1. Instant Pot Duo Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with Multicooker Lids, 8QT…. Instant Pot Duo Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with ⭐ 4.7/5 Check Price
2. Instant Pot Pro Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with Multicooker Lids, 8 Quart…. Instant Pot Pro Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with ⭐ 4.6/5 Check Price
3. Instant Pot 10QT Air Fryer, 7-in… Instant Pot 10QT Air Fryer, 7-in ⭐ 4.5/5 Check Price
4. Instant Pot Duo Crisp Ultimate Lid 13-in-1 Air Fryer and Pressure Cooker Combo, 6.5 Quart…. Instant Pot Duo Crisp Ultimate Lid 13-in-1 Air Fryer and Pressure Cook ⭐ 3.7/5 Check Price
5. Instant Pot Vortex Plus 6QT XL Air Fryer, a versatile 6-in-1 cooking appliance…. Instant Pot Vortex Plus 6QT XL Air Fryer, a versatile 6-in-1 cooking a ⭐ 4.5/5 Check Price

Our Top 5 Best Instant Pot With Air Fryer Reviews – Expert Tested & Recommended

🏆 Best Choice


h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

1. Instant Pot Duo Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with Multicooker Lids, 8QT.

Instant Pot Duo Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with Multicooker Lids, 8QT.

The Instant Pot Duo Crisp 11-in-1 Air Fryer and Pressure Cooker Combo is a powerhouse in any kitchen, offering incredible versatility in an 8-quart capacity. It’s designed to replace multiple appliances, allowing you to pressure cook, air fry, slow cook, steam, sauté, roast, bake, dehydrate, and more, all within one sleek unit. This model is perfect for families or those who love to entertain, delivering fast, delicious, and healthy meals with ease.

Key Features That Stand Out

  • 11 Cooking Functions: Pressure cook, air fry, roast, bake, dehydrate, slow cook, sauté, steam, sterilize, warm, or cook rice effortlessly.
  • 8-Quart Capacity: Generous size perfect for family meals, meal prep, or entertaining guests.
  • Two Removable Lids: Includes separate lids for pressure cooking and air frying, ensuring optimal performance for each function.
  • Customizable Smart Programs: Features 11 one-touch options for everything from savory soups to sweet desserts.
  • Cooks Up to 70% Faster: Enjoy meals much quicker compared to traditional slow-cooking methods.

Why We Recommend It

We highly recommend the Instant Pot Duo Crisp because it truly simplifies complex cooking. The combination of rapid pressure cooking and effective air frying means you can achieve both tender interiors and crispy exteriors with a single appliance. Its intuitive controls and robust build quality make it a reliable choice for daily use, helping you expand your culinary repertoire without cluttering your kitchen.

Best For

This appliance is best for families and meal preppers who need a versatile, large-capacity cooker that can handle a wide range of recipes from quick weeknight dinners to special occasion feasts.

Pros and Cons

Pros:
  • Combines 11 functions, saving significant counter space.
  • Cooks meals much faster than conventional methods.
  • Achieves perfectly crispy results with the air frying function.
  • Large capacity is ideal for larger households.
Cons:
  • Requires storing two separate lids.
  • Can have a slight learning curve for new multicooker users.
  • Its 8QT size might be too large for very small kitchens.

Customer Reviews

Customer Review: “This pot has improved my days in the kitchen; it’s definitely been one of my best purchases. The Instant Pot is a game changer! It cooks everything faster, healthier, and with amazing flavor. I love how easy it is to use and clean, and it replaces several appliances in my kitchen. Perfect for busy “

Customer Review: “Purchased this to replace my 8 quart Emeril Lagasse that quit heating up after about 3 years. I used it probably 3 times a week or more. Love electric pressure cookers! So quick and easy to prepare a meal. I am hoping this will last a good long time. I don’t use the air fryer on it very often, but w”

⭐ Editor’s Choice


h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

2. Instant Pot Pro Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with Multicooker Lids, 8 Quart.

Instant Pot Pro Crisp 11-in-1 Air Fryer and Pressure Cooker Combo with Multicooker Lids, 8 Quart.

The Instant Pot Pro Crisp 11-in-1 Air Fryer and Pressure Cooker Combo takes multi-cooking to the next level with its premium features and versatile functions. This 8-quart model is designed for culinary enthusiasts who appreciate precision and enhanced durability. It seamlessly transitions between pressure cooking, air frying, slow cooking, sous vide, and more, offering a comprehensive cooking solution that helps you create restaurant-quality meals at home with less oil.

Key Features That Stand Out

  • 11 Premium Cooking Functions: Pressure cook, air fry, slow cook, steam, sauté, sous vide, roast, bake, broil, dehydrate, and keep warm.
  • Two Lids for Total Flexibility: Comes with distinct lids for pressure cooking and air frying, optimizing performance for each method.
  • EvenCrisp Technology: Delivers superior air frying results with up to 95% less oil, perfect for crispy textures.
  • Pro-Level Enhancements: Often features a more durable inner pot, ergonomic handles, and enhanced display.
  • 8-Quart Capacity: Ample space for cooking large batches or family meals.

Why We Recommend It

We recommend the Instant Pot Pro Crisp for its robust build and expanded capabilities, especially the sous vide function, which is a fantastic addition for gourmet cooking. The EvenCrisp Technology ensures your air-fried dishes are perfectly golden and crunchy, making it a reliable choice for consistently delicious results. It’s a step up for those looking for a more professional-grade multi-cooker.

Best For

This model is best for experienced home cooks and culinary enthusiasts who desire a higher-end appliance with precise controls and advanced cooking functions like sous vide.

Pros and Cons

Pros:
  • Offers premium build quality and enhanced features.
  • Includes advanced cooking functions such as sous vide.
  • EvenCrisp technology ensures superior air frying performance.
  • Large 8-quart capacity is suitable for various cooking needs.
Cons:
  • Higher price point compared to other Instant Pot models.
  • Still requires managing two separate lids.
  • Its size can be cumbersome in smaller kitchens.

Customer Reviews

Customer Review: “This is actually my second time owning this unit. I had it in 2022, but I replaced it at the very end of 2022 when I was given the ninja foodie OL 701 as a gift. The ninja foodie actually ended up going out on me in February of this year, I got another one, and that one went out less than two months”

Customer Review: “Pretty cool and works well but a little expensive for an Instant Pot. It’s probably better to get an air fryer separate but I wanted something we could take on the road. This works well. We can cook and air fry in a regular hotel room while on road trips.”

💰 Best Budget


h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

3. Instant Pot 10QT Air Fryer, 7-in

Instant Pot 10QT Air Fryer, 7-in

While our focus is on Instant Pot with air fryer combos, sometimes a dedicated air fryer from the trusted Instant Pot brand is exactly what you need. The Instant Pot 10QT Air Fryer, 7-in-1 is an excellent choice for those who already own a pressure cooker or prefer a standalone air frying appliance. This large-capacity air fryer oven excels at delivering crispy, delicious results with minimal oil, and it comes with extra functions like rotisserie, making it a versatile addition to any kitchen.

Key Features That Stand Out

  • 7 Dedicated Air Frying Functions: Air fry, roast, broil, bake, reheat, dehydrate, and rotisserie.
  • 10-Quart Capacity: Generous space for cooking larger meals, whole chickens, or multiple side dishes.
  • EvenCrisp Technology: Ensures optimal air circulation for a perfect golden finish with 95% less oil.
  • Little to No Preheat Time: Get started cooking almost immediately, saving valuable time.
  • Rotisserie Function: Ideal for perfectly roasted meats, providing even cooking and delicious flavor.

Why We Recommend It

We recommend this Instant Pot Air Fryer for its impressive capacity and dedicated air frying capabilities. If you’re looking to upgrade your air frying game or want a larger air fryer oven that can handle family-sized portions and even rotisserie chicken, this model offers excellent value. It’s a fantastic standalone option from a brand known for quality kitchen appliances, delivering consistent crispness every time.

Best For

This air fryer is best for individuals or families who prioritize air frying, roasting, and dehydrating, or those who already own a traditional Instant Pot and want a dedicated, large-capacity air fryer oven to complement it.

Pros and Cons

Pros:
  • Large 10-quart capacity accommodates bigger meals.
  • Dedicated air frying functions with excellent crisping.
  • Includes a convenient rotisserie function.
  • Quick preheat time speeds up cooking.
Cons:
  • Does not include pressure cooking functionality.
  • Takes up considerable counter space due to its size.
  • Limited to dry-heat cooking methods.

Customer Reviews

Customer Review: “This is a great air fryer. I purchased it as a gift and it was a big hit. It is really good quality for the price. It is also quite large which means you can use it to make several different dishes. It also has different settings which other air fryers do not always provide. It is extremely easy to “

Customer Review: “Okay I’ll say right off, maybe I should get more friends! But as a man who is a self-styled amateur chef, I have been pining for one of these types of cookers for a couple of years now. I always find a way to squeeze in one more item on the countertop.I choose this model based on reviews, features a”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

4. Instant Pot Duo Crisp Ultimate Lid 13-in-1 Air Fryer and Pressure Cooker Combo, 6.5 Quart.

Instant Pot Duo Crisp Ultimate Lid 13-in-1 Air Fryer and Pressure Cooker Combo, 6.5 Quart.

The Instant Pot Duo Crisp Ultimate Lid 13-in-1 Air Fryer and Pressure Cooker Combo truly lives up to its “Ultimate” name, revolutionizing the multi-cooker experience with a single, innovative lid. This 6.5-quart model combines 13 different cooking functions, from pressure cooking and air frying to proofing bread and making yogurt, all without the hassle of switching lids. It’s designed for maximum convenience and safety, making it a fantastic choice for modern kitchens seeking efficiency and versatility.

Key Features That Stand Out

  • 13 Cooking Functions in One: Pressure cook, air fry, slow cook, steam, sauté, roast, bake, broil, dehydrate, sous vide, make yogurt, proof bread, or keep warm.
  • Single Ultimate Lid: Effortlessly switches between pressure cooking, air frying, and other functions without needing to swap lids.
  • Safe & Easy Steam Release: Features direct control panel venting and an “OK to Open Lid” message for enhanced safety.
  • 6.5-Quart Capacity: A versatile size suitable for couples, small families, or individuals.
  • Large, Easy-to-Read Display: Provides clear cooking status and safety messages.

Why We Recommend It

We absolutely recommend the Instant Pot Duo Crisp Ultimate Lid for its groundbreaking single-lid design. This feature alone makes it incredibly user-friendly and convenient, eliminating the need to store and swap multiple lids. Its vast array of cooking functions ensures that almost any recipe is within reach, making it an indispensable tool for busy households that value both efficiency and diverse culinary capabilities.

Best For

This appliance is best for tech-savvy cooks and those with limited storage space who want the ultimate convenience of a single lid for all cooking functions, without sacrificing versatility or performance.

Pros and Cons

Pros:
  • Innovative single lid simplifies operation and storage.
  • Most versatile model with 13 diverse cooking functions.
  • Enhanced safety features for steam release and lid operation.
  • Reduces kitchen clutter significantly.
Cons:
  • 6.5-quart capacity may be too small for larger families.
  • The unique lid design might be more complex to repair if issues arise.
  • Potentially a higher initial investment due to advanced features.

Customer Reviews

Customer Review: “Bought my Instant Pot Duo Crisp Ultimate here in “Used – Good Condition” fulfilled by Amazon.The thing arrived in perfect shape with all original literature. After doing a quick pressure test with 2 cups of water (just to make sure it seals), I was ready for my first cook. I had to go for the pict”

Customer Review: “Update 2-18-2025I’ve lowered this to a 1 star. This Instapot does not see heavy use. We mainly use the air fryer and pressure cook functions for rice, potatoes, and the occasional roast. Regardless we have owned it since early December and it has already become completely useless. The lid release le”

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

5. Instant Pot Vortex Plus 6QT XL Air Fryer, a versatile 6-in-1 cooking appliance.

Instant Pot Vortex Plus 6QT XL Air Fryer, a versatile 6-in-1 cooking appliance.

Rounding out our list is another excellent dedicated air fryer from the Instant Pot family, the Instant Pot Vortex Plus 6QT XL Air Fryer. While not a pressure cooker combo, this appliance is a master of crispy textures, offering 6-in-1 functionality including air frying, baking, roasting, broiling, dehydrating, and reheating. It’s an ideal choice if you already own an Instant Pot pressure cooker and are looking to add a top-tier air fryer to your kitchen lineup, or simply prefer a standalone air fryer for its focused performance and intuitive operation.

Key Features That Stand Out

  • 6 Cooking Functions: Air fry, bake, roast, broil, dehydrate, and reheat with little to no preheating time.
  • 6-Quart XL Capacity: Ample space for family-sized portions or multiple side dishes.
  • Adjustable Temperature Control: Precise temperature settings from 95 to 400°F for perfect results.
  • User-Friendly Operation: Features a sleek touchscreen and one-touch settings for ease of use.
  • EvenCrisp Technology: Guarantees uniform cooking and a satisfying crunch with minimal oil.

Why We Recommend It

We recommend the Instant Pot Vortex Plus for its exceptional air frying capabilities and user-friendly design. It delivers consistently crispy foods, making it a go-to for snacks, sides, and main courses that require a golden finish. The intuitive controls and versatile functions make it easy for anyone to use, ensuring delicious, healthier meals without the fuss of deep frying. It’s a reliable workhorse for everyday cooking.

Best For

This air fryer is best for individuals or small families who primarily focus on air frying, roasting, and quick reheating, or those who want a powerful, easy-to-use dedicated air fryer from a trusted brand.

Pros and Cons

Pros:
  • Excellent for achieving consistently crispy and golden results.
  • Intuitive touchscreen and one-touch programs for easy use.
  • Versatile with 6 functions beyond just air frying.
  • Quick preheating saves time in the kitchen.
Cons:
  • Does not offer pressure cooking or other moist heat methods.
  • Takes up dedicated counter space as a separate appliance.
  • Capacity may be limiting for very large families.

Customer Reviews

Customer Review: “This is a great air fryer. I purchased it as a gift and it was a big hit. It is really good quality for the price. It is also quite large which means you can use it to make several different dishes. It also has different settings which other air fryers do not always provide. It is extremely easy to “

Customer Review: “Okay I’ll say right off, maybe I should get more friends! But as a man who is a self-styled amateur chef, I have been pining for one of these types of cookers for a couple of years now. I always find a way to squeeze in one more item on the countertop.I choose this model based on reviews, features a”

Complete Buying Guide for Instant Pot With Air Fryer

Essential Factors We Consider

When searching for the best Instant Pot with air fryer, there are several key factors to keep in mind to ensure you pick the perfect model for your culinary needs. First and foremost, consider the capacity – 6-quart is great for smaller families or couples, while 8-quart or even 10-quart models are better for larger households or those who frequently cook for guests. Next, look at the number of cooking functions. While all models will pressure cook and air fry, some offer additional features like sous vide, dehydrating, or even bread proofing, adding to their versatility. The lid design is also crucial: some models come with two separate lids (one for pressure cooking, one for air frying), while innovative newer models feature a single “ultimate lid” that transitions between functions seamlessly, simplifying storage and use. Finally, evaluate the ease of cleaning and the overall build quality to ensure your investment stands the test of time and everyday use.

Budget Planning

Your budget will naturally play a role in choosing your ideal Instant Pot with air fryer combo. Prices can vary significantly based on capacity, the number of cooking functions, and premium features. Entry-level models that combine pressure cooking and air frying might start at a moderate price point, offering excellent value for core functions. As you move to larger capacities or models with advanced features like the “ultimate lid” or more specialized cooking programs (e.g., sous vide), the price tends to increase. Remember to consider the long-term value: an appliance that replaces multiple others and simplifies your cooking routine can be a wise investment, even if the initial cost is higher. Also, keep an eye out for sales and promotions, especially around holidays, to snag a great deal on your desired model.

Final Thoughts

Ultimately, investing in an Instant Pot with air fryer is about enhancing your kitchen’s capabilities and making cooking more enjoyable and efficient. By carefully considering factors like capacity, specific cooking functions, lid design, and your budget, you can confidently choose a model that perfectly fits your lifestyle. These appliances are designed to be workhorses, transforming how you prepare everything from quick weeknight meals to elaborate holiday feasts. Embrace the versatility and convenience they offer, and get ready to discover a new world of culinary possibilities!

Frequently Asked Questions

Q: What is the main difference between an Instant Pot Duo Crisp and an Instant Pot Pro Crisp?

A: While both the Duo Crisp and Pro Crisp lines offer excellent pressure cooking and air frying capabilities, the Instant Pot Pro Crisp typically features a more premium build, enhanced durability, and often includes advanced functions like sous vide. The Pro series might also come with improved inner pots (e.g., stainless steel with silicone handles) and a more intuitive, brighter display, offering a more refined cooking experience compared to the standard Duo Crisp.

Q: Do all Instant Pot with air fryer models use two separate lids?

A: Most Instant Pot with air fryer combos historically came with two separate lids: one for pressure cooking and another for air frying. However, newer innovations, such as the Instant Pot Duo Crisp Ultimate Lid, feature a revolutionary single lid design that can perform both pressure cooking and air frying functions without needing to swap out lids, significantly enhancing convenience and saving storage space.

Q: Can I use an air fryer lid on my regular Instant Pot?

A: Yes, Instant Pot offers a separate Air Fryer Lid accessory that is compatible with most 6-quart and 8-quart Instant Pot pressure cookers (check compatibility with your specific model). This lid transforms your existing Instant Pot into an air fryer. While it adds air frying functionality, it means you’ll still have two separate components (your Instant Pot base + the air fryer lid), rather than an integrated “combo” appliance from the start.

Q: Is an Instant Pot with air fryer worth it?

A: Absolutely! An Instant Pot with air fryer combo is a fantastic investment for anyone looking to save counter space, reduce kitchen clutter, and enjoy incredible culinary versatility. It allows you to quickly pressure cook tender meals and then crisp them up with the air fryer function, all in one unit. This multi-functionality can replace several individual appliances, making it a highly valuable and efficient tool for a wide range of cooking tasks.

Q: How do Instant Pot’s EvenCrisp Technology and Vortex Plus differ?

A: EvenCrisp Technology is a feature found in Instant Pot’s multi-cookers that combine pressure cooking and air frying (like the Duo Crisp series). It’s designed to ensure optimal air circulation for consistent, crispy results during the air frying mode. The Vortex Plus, on the other hand, refers to Instant Pot’s line of dedicated air fryers (not pressure cooker combos) that focus solely on air frying, roasting, baking, etc., also utilizing advanced air circulation for superior crisping and browning.

There you have it – our comprehensive rundown of the best Instant Pot with air fryer options available, along with some great dedicated Instant Pot air fryers! We hope this guide has helped you narrow down your choices and feel more confident about selecting the perfect kitchen companion. These versatile appliances truly revolutionize meal prep, bringing speed, convenience, and incredible flavor to your table. Don’t wait to transform your cooking experience; click through our links to find the perfect Instant Pot with air fryer for your home today and start enjoying healthier, tastier meals effortlessly!

// Fetch real-time product data for all products when page loads
(function() {
const products = [‘B07VT23JDM’, ‘B08NB1VGBK’, ‘B07VM28XTR’, ‘B0B1G5M31V’, ‘B07VHFMZHJ’];
const affiliateTag = ‘kitchenguideco-20’;

async function fetchLiveProductData(asin) {
try {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘⏳ Fetching…’;

const amazonUrl = ‘https://www.amazon.com/dp/’ + asin;
const response = await fetch(‘https://api.allorigins.win/raw?url=’ + encodeURIComponent(amazonUrl));
const html = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(html, ‘text/html’);

let price = null;
const priceWhole = doc.querySelector(‘.a-price-whole’);
const priceFraction = doc.querySelector(‘.a-price-fraction’);
if (priceWhole) {
price = ‘$’ + priceWhole.textContent.trim() + (priceFraction ? priceFraction.textContent.trim() : ”);
}

let rating = null;
const ratingEl = doc.querySelector(‘[data-hook=”average-star-rating”] .a-icon-alt’);
if (ratingEl) {
const match = ratingEl.textContent.match(/(\d+\.\d+)/);
if (match) rating = match[1];
}

let reviewCount = null;
const reviewEl = doc.querySelector(‘#acrCustomerReviewText’);
if (reviewEl) reviewCount = reviewEl.textContent.trim();

if (price) {
const priceEl = document.getElementById(‘price-‘ + asin);
if (priceEl) {
priceEl.innerHTML = price;
priceEl.style.animation = ‘pulse 0.5s’;
}
}

// if (rating) {
// const ratingEl = document.getElementById(‘rating-‘ + asin);
// if (ratingEl) {
// const stars = ‘⭐’.repeat(Math.floor(parseFloat(rating)));
// ratingEl.innerHTML = stars + ‘ ‘ + rating + ‘/5’;
// ratingEl.style.animation = ‘pulse 0.5s’;
// }
// }

if (reviewCount) {
const reviewsEl = document.getElementById(‘reviews-‘ + asin);
if (reviewsEl) {
reviewsEl.innerHTML = reviewCount;
reviewsEl.style.animation = ‘pulse 0.5s’;
}
}

if (updateTimeEl) {
const now = new Date();
const timeStr = now.toLocaleString(‘en-US’, {
month: ‘long’, day: ‘numeric’, year: ‘numeric’,
hour: ‘numeric’, minute: ‘2-digit’, hour12: true
});
updateTimeEl.innerHTML = ‘✓ Updated: ‘ + timeStr;
}
} catch (error) {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘✓ Cached data’;
}
}

const style = document.createElement(‘style’);
style.textContent = `@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }`;
document.head.appendChild(style);

function loadAllProducts() {
products.forEach((asin, index) => {
setTimeout(() => fetchLiveProductData(asin), index * 2000);
});
}

if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, loadAllProducts);
} else {
loadAllProducts();
}
})();

Similar Posts