<human>:  Where do the NSA and other National Security agencies get the authority to spy on Americans?
<bot>: They get the authority to spy on Americans from the USA Patriot Act. The Patriot Act was passed in 2001 and amended in 2005. It gives the government the authority to collect intelligence on foreign threats to the USA.