NEW YORK (AP) — The NBA set an attendance record for the fourth straight season, surpassing 22 million for the first time.

The league says 22.1 million fans attended games in the regular season, eclipsing 21.9 million during the 2016-17 season.

The NBA also announced Thursday a record for average attendance at 17,987, improving from last season's high of 17,884.

The league says it set records for online merchandise sales — up 25 percent from last season — and a 9 percent increase in social media followers.

___

More AP basketball: https://apnews.com/tag/NBAbasketball