Title: Spain national football team
Content:  Sergio Ramos holds the record for most appearances for the Spanish team with 180 since his debut in 2005. In second place is Iker Casillas with 167, followed by Xavi with 133. David Villa holds the title of Spain's highest goalscorer, scoring 59 goals from 2005 to 2017, during which time he played for Spain on 98 occasions. Raúl González is the second highest goalscorer, scoring 44 goals in 102 appearances between 1996 and 2006. Between November 2006 and June 2009, Spain went undefeated for a record-equaling 35 consecutive matches before their loss to the United States in the Confederations Cup, a record shared with Brazil and Italy, and included a record 15-game winning streak. In the 2010 FIFA World Cup, Spain became the inaugural European national team to lift the World Cup trophy outside Europe; along with Brazil, Germany and Argentina, Spain is one of the four national teams to have won the FIFA World Cup outside its home continent.
Title: List of Spain national football team hat-tricks
Content:  Since Spain's first international association football match in 1920, there have been 41 occasions when a spanish player has scored three or more goals (a hat-trick) in a game. The first hat-trick was scored by José Luis Zabala against Portugal in 1923. The record for the most goals scored in an international by a spanish player is six, which has been achieved on one occasion: by Chacho against Bulgaria in 1933. Fernando Torres and David Villa holds the record for the most hat-tricks scored by a spanish player, with both having three, with the third of both to have been scored in 2013 confederations cup and in same game, against Tahiti, that ended up 10-0. Emilio Butragueño and Míchel are the only spanish players to have scored a hat-trick at the world cup finals, with Butragueño scoring 4 goals (a poker). David Villa is the only spanish player to have scored a hat-trick at the European championship finals, against Russia. Fernando Torres is the only spanish player to have scored two hat-tricks at the confederations cup finals, one in the 2009 edition and the other in the 2013 edition.
Title: List of La Liga top scorers
Content:  La Liga all-time top scorer is Lionel Messi with 474 goals, all for Barcelona. He also holds the record for most goals scored in a single season with 50 in the 2011–12 campaign, and is the only player ever to win the league's top scorer award in eight different seasons. Athletic Bilbao's Telmo Zarra, who was the competition's all-time top scorer until 2014, won the top scorer award six times. Four other players — Real Madrid's Alfredo Di Stéfano, Quini of Sporting Gijón and Barcelona, and Hugo Sánchez of Atlético Madrid and Real Madrid — each finished as top scorer in five individual seasons. ==Top scorers by season                                                                                                                                                                                          ==
Title: Spain national football team records and statistics
Content: 4 Player scored 4 goals ; 5 Player scored 5 goals ; 6 Player scored 6 goals As of 17 November 2020.
Title: Spain national football team records and statistics
Content: Bold denotes players still active at international level for the national team.  As of 14 November 2021, the ten highest scorers for Spain are:
Title: History of the Spain national football team
Content:  a score of 4–0 over Italy. Spain quickly took control in the first half, with goals in the 14th minute from a header by David Silva, and in the 41st minute from Jordi Alba. Spain increased their lead to 4–0 in the second half, with goals from Fernando Torres in the 84th minute, and from Juan Mata in the 88th minute, helping them to win their second straight European Championship, and their third straight major tournament title (Euro 2008 and 2010 World Cup). Fernando Torres finished as the top goalscorer of the tournament with 3 goals. Given the final victory Spain broke several records:
Title: History of the Spain national football team
Content:  finished 0–0 draw resulting in a penalty shoot-out which Spain won 4–2. Spain met Russia again in the semi-final, again beating them, this time 3–0. In the final, played in Vienna's Ernst-Happel-Stadion, Spain defeated Germany 1–0, with a goal scored by Fernando Torres in the 33rd minute. This was Spain's first major title since the 1964 European Championship. Spain were the top scoring team, with 12 goals, and David Villa finished as the top scorer with four goals; Xavi was awarded the player of the tournament, and nine Spanish players were picked for the Euro 2008 Team of the Tournament. Luis Aragonés 
Title: List of Spaniards
Content: Iker Casillas (born 1981), goalkeeper and Real Madrid; captain of Spain's team that won UEFA Euro 2008, the 2010 FIFA World Cup and Euro 2012 ; Francisco Gento (born 1933), Real Madrid player; winner of six UEFA Champions League ; Raúl González (born 1977), first player to reach 50 goals in UEFA Champions League ; Xavi Hernández (born 1980), midfielder and FC Barcelona player; UEFA Euro 2008 MVP ; Andrés Iniesta (born 1984), midfielder and FC Barcelona player; scored the winning goal at the 2010 FIFA World Cup Final; UEFA Euro 2012 MVP ; Fernando Torres (born 1984), striker and Chelsea player; scored the winning goal at the Euro 2008 Final; winner of Golden Boot at Euro 2012 ; David Villa (born 1981), striker and FC Barcelona player; Spain's all-time top goalscorer ; Andoni Zubizarreta (born 1961), Spanish international ; Gerard Pique (born 1979), plays for the club FC Barcelona, and is a defender 
Title: Spain national football team
Content:  Below is a list of the top ten goalscorers for Spain,.
Title: History of the Spain national football team
Content:  the manager's role after the Euro 2008 success, and was replaced by Vicente del Bosque. 2008 saw David Villa score 16 goals in 15 games, breaking the Spanish record of ten goals in one year held by Raúl since 1999. On 11 February 2009, Villa broke another Spanish record as his 36th-minute goal against England saw him become the first Spanish player to score in six consecutive games. By the start of the tournament, Del Bosque's had ten consecutive wins, making him the first international manager to do so from his debut, breaking João Saldanha's record – held since 1969 – of 

Question: all time highest goal scorer in spain national team?
Answer: David Villa.