You can buy tickets for the Sagrada Família through the basilica's official website, authorized online ticket outlets, or in Barcelona.