Here's how Amazon is winning the online retail game. Again.

Around 2009, Amazon quietly entered the private-label business by offering a handful of items under a new brand called AmazonBasics. Early offerings were the kinds of unglamorous products consumers typically bought at their local hardware store: power cords and cables for electronics and, in particular, batteries — with prices roughly 30 percent lower than that of national brands like Energizer and Duracell.

The results were stunning. In just a few years, AmazonBasics had grabbed nearly a third of the online market for batteries, outselling both Energizer and Duracell on its site.

Inside Amazon’s Seattle headquarters, that success raised a tantalizing possibility. If, with very little effort, Amazon could become a huge player in the battery market, what else might be possible for the company?

Anyone who spends much time on the Amazon site can see the answer to that question. The company now has roughly 100 private-label brands for sale on its huge online marketplace, of which more than five dozen have been introduced in the past year alone. But few of those are sold under the Amazon brand.

Instead, they have been given a variety of anodyne, disposable names like Spotted Zebra (kids’ clothes), Good Brief (men’s underwear), Wag (dog food) and Rivet (home furnishings). Want to buy a stylish but affordable cap-sleeve dress? A flared version from Lark & Ro ($39), maybe in millennial pink, might be just what you’re looking for.

On the surface, the move into the private-label business (in which goods are sold under the retailer’s name rather than that of an outside vendor) appears to be a deft move by Amazon. Analysts predict that nearly half of all online shopping in the United States will be conducted on Amazon’s platform in the next couple of years. That creates a massive opportunity for Amazon to more than double revenue from its in-house brands to $25 billion in the next four years, according to analysts at SunTrust Robinson Humphrey. That’s the equivalent of all of Macy’s revenue last year.

Furthermore, in an effort to incentivize shoppers to sign up for the Amazon Prime program (which now costs $119 a year, up from $99 a year ago), certain of Amazon’s private-label products, such as its Goodthreads men’s khakis or Wag’s salmon-and-lentil dog food, can be purchased only by Prime customers.

“Amazon started very slowly in private label,” said Youssef Squali, a managing director of internet and digital media research at SunTrust. “Quite frankly, we think our estimate for the size of the private-label business is conservative,” he added.

Amazon declined to make any of its executives available for this article, but in a response to a list of questions, the company said its overarching goal is to provide customers a wide range of products and brands.

“We take the same approach to private label as we do with anything here at Amazon: We start with the customer and work backwards,” the company said in its statement.

It’s not just lower prices that are driving Amazon’s customers to its private-label goods.

Amazon is utilizing its knowledge of its powerful marketplace machine — from optimizing word-search algorithms to analyzing competitors’ sales data to using its customer-review networks — to steer shoppers toward its in-house brands and away from its competitors, analysts say.

And as consumers increasingly shop using voice technology, the playing field becomes even more tilted. For instance, consumers asking Amazon’s Alexa to “buy batteries” get only one option: AmazonBasics.

The emerging private-label threat from Amazon presents a quandary for small vendors and big, national brands alike. Even as Amazon takes away market share and eats into their profit margins, they have little choice but to continue to sell on Amazon’s platform to get themselves in front of millions of potential customers.

“I think, effectively, you have a company that has conspired with about a billion consumers and technology to destroy brands,” Scott Galloway, a founder of a business research firm now called Gartner L2 and a professor of marketing at New York University Stern School of Business, argued in a presentation last year. “Their attitude is that brands have, for a long time, earned an unearned price premium that screws consumers.”

But as Amazon uses its powerful platform to bolster its private-label business, there is also debate in legal circles whether some of its activities could be viewed as monopolistic in nature. Some say Amazon could face a legal challenge akin in size and scope to when the Justice Department two decades ago filed antitrust charges against Microsoft for bundling its own browser into its software, making it difficult for consumers to install a browser from Microsoft’s top competitor, Netscape. Microsoft lost that court battle.

“I think there is a potential monopolization case against Amazon,” said Chris Sagers, an antitrust professor at the Cleveland-Marshall College of Law in Ohio. “The Amazon marketing people are geniuses. They’re brilliant,” Sagers said. “But if they are getting massive penetration in the market and preventing customers from buying products from their competitors? Well, it’s like they’re writing the plaintiff’s complaint for them.”

In an email, a spokeswoman for Amazon said the company is “a small fraction of a very large and vibrant global retail industry, and the competition and invention happening across retail is great for customers.”

Amazon’s advantage over traditional retailers is its knowledge and access to data from its platform.

Take word searches. About 70 percent of the word searches done on Amazon’s search browser are for generic goods. That means consumers are typing in “men’s underwear” or “running shoes” rather than asking, specifically, for Hanes or Nike.

For Amazon, those word searches by consumers allow it to put its private-label products in front of the consumer and make sure they appear quickly. In addition, Amazon has the emails of the consumers who performed searches on its site and can email them directly or use pop-up ads on other websites to direct those consumers back to Amazon’s marketplace.

Some of this data is also available to big brands or vendors selling on Amazon’s platform through a program called Amazon Retail Analytics Premium. But it is expensive, with vendors paying 1% of their wholesale cost of goods sold to Amazon or a minimum of $100,000 to get access to a database that lets them to see some, but not all, of the data Amazon has compiled.

“Amazon has access to data that nobody else has,” said James Thomson, a former Amazon executive who now works at Buy Box Experts, a consulting firm that advises companies on how to build their brands and sell products on Amazon. “I can’t just walk into a store and say, ‘Excuse me, did you look at this brand of cereal this morning and decide not to buy it?’ Amazon has that data. They know you looked at a brand and didn’t buy it, and they’re not going to share that data with any other brands.”

With that data, Amazon is able to conduct regional or one-day price tests, dropping the cost of its goods in certain markets to discover at what price more customers purchase the item.

And while traditional retailers can readily scan their sales data and understand what size shirts and colors sell and which ones don’t, Amazon has hundreds of reviews of competitors’ products on its website, providing customer feedback on how the shirt looked after five washes or how it fit different body types.

“Amazon can analyze those reviews and figure out why customers were dissatisfied,” said Cooper Smith, an analyst at research firm Gartner L2. “Amazon can then turn around and create a private label for a similar product but improve upon it based on what customers say.”

When Amazon introduces a new private-label product, it doesn’t go all in. It often uses a technique analysts call “test-and-repeat,” ordering a small batch of product from its manufacturers, testing demand and then, if the product is successful, reordering a bigger batch of product as well as expanding its assortment.

Again, here, Amazon has a big leg up on traditional retailers. Most retailers appeal to one segment of consumer — the budget, midmarket or higher-end shopper. Amazon can offer a variety of private-label goods, positioned toward shoppers in different categories, says Deborah Weinswig, founder and chief executive of Coresight Research.

But, perhaps more important, Amazon has utilized a reviewing program called Amazon Vine for many of its private-label goods.

Amazon Vine, or Vine Voices, are very active reviewers on the Amazon marketplace who are then invited by the company to participate in its Vine program, which identifies them as influential reviewers. In exchange for free products, which they disclose receiving, the reviewers agree to write evaluations on Amazon’s site.

Amazon has actively used Vine Voices to help introduce its private-label brands. An analysis of more than 1,600 products across 10 of Amazon’s private-label brands, including AmazonBasics, Amazon Essentials, Mama Bear, Pinzon, Goodthreads and others, showed that about half had Vine reviews. Of those 835 products, more than half of the first 30 reviews were from the Vine program, according to ReviewMeta.com, an online tool that helps customers identify inauthentic reviews.

While, for the most part, the Vine and non-Vine reviews were similarly rated, in a handful of cases, the Vine reviews were significantly better. For instance, Vine reviews for Amazon’s Mama Bear diapers and baby products averaged 4.36 stars; non-Vine reviews averaged 3.82 stars.

Amazon Vine is also available to non-Amazon brands, but, specifics around how the program works are difficult to determine because Amazon doesn’t make it public. But many analysts say it is fairly expensive to participate, saying it can cost manufacturers as much as $5,000 to obtain reviews for one product, along with the cost of giving the product away. (The money to participate goes to Amazon; the Vine reviewers receive no compensation beyond the free product.)

A spokeswoman for the company said Amazon does not incentivize positive star ratings or attempt to influence the content of reviews. She also said the company limits the total number of Vine reviews it displays for each product.

“What’s happening on Amazon is different than you see in brick-and-mortar stores,” said Kevin Grundy, an analyst at investment bank Jefferies. “There, private-label brands might take slightly more than 10 percent market share. Amazon’s private-label brands are taking more than 25 percent of the online market.”

Early last year, The Yale Law Journal published a note that was simply titled “Amazon’s Antitrust Paradox.”

The essay, written by a law student named Lina Khan, argued, essentially, that the current framing of the nation’s antitrust laws have not evolved to deal with the market power of technology giants like Amazon.

Just a few weeks earlier, The Capitol Forum, a Washington-based news service that examines business and regulation, published an article arguing that Amazon risked antitrust enforcement by the Trump administration for using its algorithms and platform to promote its own products over “those of merchants that are dependent on Amazon’s platform and with whom Amazon competes.”

The articles fed into a growing debate among economists and lawyers around whether Amazon is displaying monopolistic or anti-competitive behavior in its marketplace.

Amazon has two strong defenses when these issues are raised.

At least since the 1970s, courts have been very skeptical of antitrust plaintiffs who can’t show that the challenged conduct would cause prices to go up or quality to go down. In this case, Amazon can argue, quite vehemently that, through its platform, consumers are paying lower prices, legal experts say.

And while Amazon’s brands have quickly gained market share on its platform in some areas, in other segments, such as apparel, they account for less than 1 percent of the inventory sold. And when broadened out to include brick-and-mortar stores, its online share of the battery market equals less than 5 percent. Until Amazon’s share of the total market starts to reach closer to 40 percent or more, it is difficult to argue there is an attempted-monopolization case, say legal experts.

But if its private-label business grows as analysts expect it to do, could it face a legal challenge of whether it is a “monopsony”? In a monopsony, a large buyer controls a large proportion of the market and drives prices down.

“If Amazon is not making its competitors available on voice and Alexa, well, that sounds like possible exclusionary conduct to me,” Sagers said. “If a federal court could be convinced that there is a market for in-home, voice retail distribution and that Amazon controls it, then I think Amazon could be looking at a monopsony case.”

Still, others argue a dominant question in any sort of antitrust action has been whether the company’s actions or a planned merger would harm consumers.

“You have to show that the end game is some sort of consumer harm, either through higher prices or lower quality,” said Herbert Hovenkamp, an antitrust professor at the University of Pennsylvania Law School and the Wharton School. “And so far, Amazon doesn’t even show up on the radar screen when it comes to consumer harm.