NEW YORK -- Lebron James scored 30 points, narrowly missing a triple-double, to lead the Miami Heat to 106-91 win over the New York Knicks Saturday at Madison Square Garden.

James also had eight rebounds, seven assists and six steals. The Heat (33-13) won for the sixth time in their last eight games.

Carmelo Anthony led the Knicks (19-28) with 26 points.

The loss matched the Knicks total from last season when they went to the Eastern Conference quarterfinals. New York finished its eight-game homestand at 4-4.

A breakaway dunk and fadeaway jumper from James on successive possessions in the four quarter gave the Heat their largest lead, 96-71, of the second half.

The Heat led throughout the third quarter and ended the period with five free throws from forward Chris Andersen over the last 1:15 for a 77-71 advantage.

New York outscored the Heat 6-2 in the last 2:09 of the second quarter to cut the Miami lead to seven points at 53-46 at the half. Miami had led by as many as 12 points in the quarter.

Tim Hardaway Jr. had a difficult time guarding James in the second quarter. The rookie guard picked up his third foul with 3:24 left in the quarter when he fouled James on a driving layup. James converted for a three-point play to put the Heat ahead 50-38.

The lead changed hands seven times in the first quarter before the Heat used a 10-2 run in the final 3:28 to emerge with a 29-22 advantage. Battier contributed 11 points, nailing three of his four 3-pointers in the game. Smith led the Knicks with 11 points.

NOTES: The Heat have allowed 15 opponents to shoot 50 percent or better from the field this season. ... Knicks F Carmelo Anthony averaged 28.7 points and nine rebounds in January. ... Anthony is third in the league this season in first quarter scoring, averaging 8.1 points per game. He scored four points in the first quarter against the Heat. ... Miami G Dwayne Wade has now recorded 687 career blocked shots, third-most by a guard in league history. ... Among the celebrities at courtside were actor Hugh Jackman, comedian Rickey Gervais, international soccer star David Beckham and former heavyweight champion Evander Holyfield.