ATLANTA (AP) — Atlanta United set a pair of attendance records Sunday but failed to secure a first-round bye in the playoffs when Sebastian Giovinco scored on a brilliant free kick in the 84th minute, giving Toronto FC a 2-2 tie and the most points ever in a Major League Soccer season.

Josef Martinez scored his 19th goal in the 74th minute to put expansion United in position to finish second in the Eastern Conference, which would have been good enough to avoid the single-game knockout round.

But Giovinco, with a set piece from just outside the penalty area, curled a shot over the wall that caught the bottom off the crossbar to deflect past leaping goalkeeper Brad Guzan. It was Giovinco's 16th goal of the season.

United broke its own MLS single-game attendance record with a crowd of 71,874 at Mercedes-Benz Stadium, where the retractable roof was open on a warm, cloudy day. Atlanta also set a season record with an average of 48,200 a game, eclipsing the mark of 44,247 set two years ago by Seattle.

The tie gave Supporters' Shield winner Toronto (20-5-9) 69 points on the season, beating the previous MLS mark of 68 set by the Los Angeles Galaxy in 1998.

Atlanta (15-9-10) will host Columbus in the opening round of the playoffs.

TIMBERS 2, WHITECAPS 1

PORTLAND, Ore. (AP) — Darren Mattocks scored early in the second half and Portland held off Vancouver.

Portland (15-11-8) won the Western Conference title to earn a bye in the first round of the playoffs. The Timbers also won their second Cascadia Cup since joining MLS. The Cascadia Cup is a trophy created by the fans of Portland, Vancouver, and Seattle awarded to the best team in the Pacific Northwest.

Vancouver (15-12-7) opened the scoring in the 29th minute, when Yordy Reyna's free kick from 25-yards out found an unmarked Kendall Waston 8 yards from goal to head in his fourth goal of the season.

Portland tied it three minutes later. A corner kick bounced through the box and found Darlington Nagbe at the top of the box. Nagbe's shot was blocked by goalkeeper Stefan Marinovic, but Timbers defender Liam Ridgewell reacted instantly to throw a foot out and stab the ball past Marinovic.

Portland took the lead early in the second half, as some fancy footwork and a clever pass by Sebastian Blanco found Vytautas Andriuskevicius open near the goal line. The Timbers defender dragged a pass back to Mattocks, whose shot ping-ponged off of two Vancouver defenders on its way into the net for his ninth goal

EARTHQUAKES 3, MINNESOTA UNITED 2

SAN JOSE, Calif. (AP) — Marco Urena scored in the third minute of stoppage time and San Jose beat Minnesota to secure a playoff spot.

San Jose (13-14-7) needed a win for the final spot in the Western Conference after FC Dallas' victory over the Los Angeles Galaxy. It's an unexpected run for the Earthquakes, who fired coach Dominic Kinnear midway through the season.

In the build-up to the winner, San Jose goalkeeper Andrew Tarbell sent a long ball that was chested by Victor Bernardez and headed to Quincy Amarikwa inside the 18-yard box. Minnesota goalkeeper Bobby Shuttleworth pushed Amarikwa's shot wide but San Jose star Chris Wondolowski chased it down for a feed to an open Urena in front of goal.

The Earthquakes have won seven of their last nine home games — with every win coming by one goal.

Wondolowski gave San Jose a 2-1 lead in the 55th with an easy redirection of Danny Hoesen cross at the back post. Minnesota (10-18-6), which has lost nine of its last 12 road games, tied it at 2 in the 81st on Francisco Calvo's header off the crossbar.

SOUNDERS 3, RAPIDS 0

SEATTLE (AP) — Nicolas Loderio scored two goals, Will Bruin had his third in the past two games and Seattle beat Colorado to take the No. 2 playoff seed in the Western Conference.

The defending MLS Cup champion Sounders (14-9-11) avoided this week's knockout round.

Bruin's ninth-minute goal put Seattle on the board and gave him 11 for the season. Lodeiro sent a penalty kick past goalkeeper Tim Howard in the 64th minute, then scored again in the third minute of stoppage time. He finished the year with seven goals.

Both teams finished with 10 men, each losing a player to a straight red card after video reviews by referee Christopher Penso.

NEW YORK CITY FC 2, CREW 2, TIE

NEW YORK (AP) — David Villa scored two goals and New York City FC tied Columbus in the first regular-season match at Citi Field to secure the No. 2 seed in the Eastern Conference playoffs.

Citi Field was used instead of Yankee Stadium because of a conflict with the Yankees playoff run.

Ola Kamara gave the Crew a 1-0 lead in the 11th minute but Villa tied it with a header off a corner kick by Maximiliano Moralez in the 18th and then blasted a right-footer from the top corner of the box that deflected off a diving Zack Steffen and gave NYCFC (16-9-9) a 2-1 lead just before halftime.

Josh Williams, who had a brief stint with New York City in 2015, headed home a corner kick by Federico Higuain in the 58th minute to cap the scoring. Williams, a defender, has scored all of his three goals this season in the last four games.

Villa finished the regular season with 22 goals — his second consecutive 20-goal season — and has 61 goals in three MLS seasons.

Columbus (16-12-6), which could have finished as high as No. 2 in the Eastern Conference, will be fifth seed and face No. 4 Atlanta in the knockout round. New York City earned a bye into the conference semifinals, which begin Oct. 30.

RED BULLS 2, D.C. UNITED 1

WASHINGTON (AP) — Gonzalo Veron and Michael Murillo scored minutes apart and New York beat rival D.C. United for the Atlantic Cup in the final MLS game at RFK Stadium.

United is set to play home games next season at the new Audi Field.

New York (14-12-8), which last won at RFK in 2013, will be the No. 6 seed in the Eastern Conference playoffs and play at third-seeded Chicago in the Knockout round.

Veron scored into an open net in the 75th minute to cap the scoring. Vincent Bezecourt back-heeled it to Alex Muyl, who fed a low cross to Veron for the finish.

Paul Arriola ripped a volley, off an arcing cross from Luciano Acosta, for his first MLS goal to give United (9-20-5) a 1-0 lead just before halftime. Murillo tied it in the 68th, tapping it back-and-forth twice with Muhamed Keita before chipping a volley over Clark into the net.

DYNAMO 3, FIRE 0

HOUSTON (AP) — Romell Quioto and Mauro Manotas scored in the second half to help Houston beat Chicago.

Houston (13-10-11), which is unbeaten in six matches, will host Sporting Kansas City in the single-game knockout round. Chicago (16-11-7) also secured a home game in the opening round and will face the New York Red Bulls.

Leonardo opened the scoring in the second minute with a header of Adolfo Machado's long throw in.

On a counter attack in the 68th, Quioto dribbled from near midfield into the 18-yard box and sent a touch-angled shot past goalkeeper Richard Sanchez. Seven minutes later, Manotas redirected Andrew Wenger's cross on a breakaway.

Nemanja Nikolic, in his first season in the MLS, won the Golden Boot award with 24 goals for Chicago, three in front of Portland's Diego Valeri.

FC DALLAS 5, GALAXY 1

FRISCO, Texas (AP) — Roland Lamah scored twice, Mauro Diaz had a goal and two assists, and FC Dallas beat 10-man Los Angeles.

FC Dallas (11-10-13) needed at least a tie and some help to make the playoffs, but the San Jose Earthquakes' win over Minnesota United eliminated the defending Supporter's Shield winners.

Lamah tied it at 1 in the 37th minute and made it 3-1 in the 49th. He settled Carlos Gruezo's shot inside the 6-yard box and sent an open shot into the back of the net for his first goal. After halftime, Lamah finished Diaz's corner kick with a glancing header.

Diaz's penalty kick goal in the 73rd capped the scoring against backup goalkeeper Brian Rowe.

Los Angeles (8-18-8) opened the scoring in the second minute on Michael Ciani's header of Romain Alessandrini's corner kick. Starting goalkeeper Clement Diop was given a straight red card in the 71st for taking down Kellyn Acosta on a breakaway.

REAL SALT LAKE 2, SPORTING KANSAS CITY 1

SANDY, Utah (AP) — Luis Silva scored in the opening minutes and Real Salt Lake beat Sporting Kansas City.

Real Salt Lake (13-15-6), which was winless in its first five games of the season and won just two of its first 11, finished one point out of the Western Conference playoffs.

Silva came upon a loose ball near the spot a tapped a slow roller past a charging Andrew Dykstra in the third minute and Brooks Lennon made it 2-0 in the 41st. Silva, near the top of the box, drew three defenders and slipped it to Lennon who, after his first shot was rejected by Dykstra, top-netted the rebound.

Ike Opara put away a low, diving header — off a free kick Graham Zusi — in the 89th minute for Sporting KC (12-9-13).

Kansas City, winless in its last five, will be the No. 5 seed in the Western Conference and play at fourth-seeded Houston in the knockout round.

UNION 6, ORLANDO CITY 1

CHESTER, Pa. (AP) — C.J. Sapong had two goals and set Philadelphia's single-season goals record and Fabrice-Jean Picault and Ilson Pereira also scored twice to help the Union beat Orlando City.

Ilsinho, racing toward the top of the box, put away a low cross from Alejandro Bedoya in the third minute and then chipped a feed to Picault, who flicked a header high in the net to give Philadelphia (11-14-9) a 2-0 lead in the sixth.

Sapong tapped a sliding finish into an empty net to break Sebastien Le Toux's club record of 14 goals, set in 2010. A pass from Fabio Alves led Picault, who outraced a defender down the left sideline and then fed Sapong for the easy goal. Picault scored through the legs of goalkeeper Earl Edwards Jr. in the 38th minute to set Philadelphia's record for goals in a half and make it 4-0.

Ilsinho added a goal in the 63rd and, after Dom Dwyer put Orlando City (10-15-9) on the board, Sapong's 16th goal of the season capped the scoring in the 74th.

REVOLUTION 3, IMPACT 2

MONTREAL (AP) — Kelyn Rowe scored in stoppage time to lift New England past Montreal.

Rowe, a late substitute, put a shot from 30 yards out just under the bar behind goalkeeper Max Crepeau moments after Montreal's Matteo Mancosu tied it with a 90th-minute goal.

Diego Fagundez and Krisztian Nemeth also scored for New England (13-15-6).

Patrice Bernier scored in his final game for Montreal (11-17-6).