Yahoo Inc
The company said the requests were made between December 1, 2012 and May 31 this year.
"The most common of these requests concerned fraud, homicides, kidnappings, and other criminal investigations," Yahoo said in a statement posted on its Tumblr page.
Others were made under the US Foreign Intelligence Surveillance Act, it said.
Technology companies have been under pressure to disclose the precise nature of their cooperation with the US National Security Agency (NSA) after leaked documents showed it had been acquiring consumer data from them for years.
Edward Snowden, a disillusioned former CIA computer technician who had worked as a contractor at the NSA, identified himself as the source of multiple disclosures on the surveillance that were published by the Guardian and the Washington Post this month.
The reports fuelled a passionate debate in the United States over how to balance civil liberties and the right to individual privacy with concerns about national security.
Apple Inc
The companies denied the NSA had any direct access to their servers and said consumer data was only handed over if the request was in the form of a court order.
Discover the latest Business News, Sensex, and Nifty updates. Obtain Personal Finance insights, tax queries, and expert opinions on Moneycontrol or download the Moneycontrol App to stay updated!
Find the best of Al News in one place, specially curated for you every weekend.
Stay on top of the latest tech trends and biggest startup news.