using System;
using System.Net.Http;
class Program
{
static async Task Main()
{
var client = new HttpClient();
var query = System.Web.HttpUtility.ParseQueryString(string.Empty);
query["engine"] = "google_finance";
query["q"] = "GOOGL:NASDAQ";
query["no_cache"] = "false";
query["api_key"] = "YOUR_API_KEY";
var response = await client.GetAsync(
$"https://serpapi.abcproxy.com/search?{query}"
);
Console.WriteLine(await response.Content.ReadAsStringAsync());
}
}
import java.net.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://serpapi.abcproxy.com/search" +
"?engine=google_finance" +
"&q=GOOGL:NASDAQ" +
"&no_cache=false" +
"&api_key=YOUR_API_KEY";
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
conn.setRequestMethod("GET");
BufferedReader in = new BufferedReader(
new InputStreamReader(conn.getInputStream())
);
String response = in.lines().collect(Collectors.joining());
System.out.println(response);
}
}
{
"search_parameters": {
"q": "GOOGL:NASDAQ",
"engine": "google_finance",
"no_cache": true,
"api_key": "YOUR_API_KEY"
},
"markets": {
"market": {
"US": [
{
"price": "41,989.96",
"price_movement": {
"percentage": "Down by 0.028%",
"value": "-11.80"
},
"link": "https://www.google.com/finance./quote/.DJI:INDEXDJX",
"name": "Dow Jones"
},
]
}
},
"search_metadata": {
"id": "a26dd8b2-ed41-4f55-af62-e70d2be70777",
"json_endpoint": "https://webserp.abcproxy.com/files/c45e4a00ff6768b7/a26dd8b2-ed41-4f55-af62-e70d2be70777.json",
"created_at": "2025-04-02 17:49:42",
"google_finance_url": "https://www.google.com/finance/quote/GOOGL:NASDAQ?q=GOOGL%3ANASDAQ",
"raw_html_file": "https://webserp.abcproxy.com/files/c45e4a00ff6768b7/a26dd8b2-ed41-4f55-af62-e70d2be70777.html",
"xray_html_file": "https://webserp.abcproxy.com/files/c45e4a00ff6768b7/a26dd8b2-ed41-4f55-af62-e70d2be70777.xray",
"total_time_taken": "7.0945"
},
"summary": {
"percentage": "Up by 1.57%",
"value": "+2.43 Today",
"market": {
"trading": "Pre-market:$156.81(0.17%)-0.26",
"price": "$156.81",
"percentage": "0.17%",
"value": "-0.26"
},
"extensions": [
"Closed: Apr 2, 5:42:50 AM GMT-4",
"USD",
"NASDAQ",
"Disclaimer"
],
"title": "Alphabet Inc Class A",
"stock": "HomeGOOGL • NASDAQ",
"price": "$157.07"
},
"compare_to": [
{
"change": "GOOG",
"title": "Alphabet Inc Class C",
"price": "$158.88",
"label": "1.70%"
},
],
"news_results": [
{
"link": "https://nypost.com/2025/03/31/business/alphabets-isomorphic-labs-raises-600m-for-ai-drug-business/",
"snippet": "Alphabet’s Isomorphic Labs raises $600M in first funding round for AI drug \nbusiness",
"source": "New York Post",
"date": "1 day ago",
"thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQYM_wdwUm4iX4rL_UnsnbMNw6jiih1y-1ICbIArXUMUWOr50jMs-b7nGiQ_qQ"
},
{
"snippet": "Alphabet Stock Flirts With a Bottom: Here’s What Michael Morris Predicts \nAhead",
"source": "TipRanks",
"date": "1 day ago",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKJbGBj4tYScspnHfnQmqW-dqu2x_-_98hlSS6gqxl4CyeAb9FCO7_m4TV1zM",
"link": "https://www.tipranks.com/news/alphabet-stock-flirts-with-a-bottom-heres-what-michael-morris-predicts-ahead"
},
{
"link": "https://markets.businessinsider.com/news/stocks/aapl-googl-nvda-hedge-funds-dump-tech-stocks-at-fastest-pace-in-six-months-1034534444",
"snippet": "AAPL, GOOGL, NVDA: Hedge Funds Dump Tech Stocks at Fastest Pace in Six \nMonths",
"source": "markets.businessinsider.com",
"date": "1 day ago",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQeqNVjfPSJmbH3hp6kVox1rhp6P2joiYLmVqeqECTvuuElIVt2_8PYbgaDF2I"
},
{
"date": "1 day ago",
"thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcT-VDuG-PpHU7rDPJlNuNTTwre0_D1CI8902_fsrSMaFvkCJYpJJqP1T52xedM",
"snippet": "We are exiting a Magnificent 7 stock for a gain of more than 100% — here's \nwhy",
"source": "CNBC"
},
{
"snippet": "Google CEO Sundar Pichai to employees on company’s largest acquisition \never: We don't make deals like thi",
"source": "Times of India",
"date": "1 week ago"
}
],
"discover_more": {
"items": [
{
"results": [
{
"stock": ".DJI:INDEXDJX",
"link": "https://www.google.com/finance/quote/.DJI:INDEXDJX",
"name": "Dow Jones Industrial Average",
"price": "41,989.96",
"percentage": "Down by 0.028%"
},
],
"title": "You may be interested in"
},
{
"title": "People also search for",
"results": [
{
"stock": "GOOG:NASDAQ",
"link": "https://www.google.com/finance/quote/GOOG:NASDAQ",
"name": "Alphabet Inc Class C",
"price": "$158.88",
"percentage": "Up by 1.70%"
},
}
]
},
"financials": [
{
"title": "Income Statement",
"date": "Dec 2024",
"period_type": "Quarterly",
"table": [
{
"title": "Revenue",
"description": "The total amount of income generated by the sale of goods or services related to the company's primary operations",
"value": "96.47B",
"change": "11.77%"
},
]
},
{
"date": "Dec 2024",
"period_type": "Quarterly",
"table": [
{
"title": "Cash and short-term investments",
"description": "Investments that are relatively liquid and have maturities between 3 months and one year",
"value": "95.66B",
"change": "-13.76%"
},
],
"title": "Balance Sheet"
},
{
"title": "Cash Flow",
"date": "Dec 2024",
"period_type": "Quarterly",
"table": [
{
"value": "26.54B",
"change": "28.27%",
"title": "Net income",
"description": "Company’s earnings for a period net of operating costs, taxes, and interest"
},
]
}
],
"knowledge_graph": {
"about": {
"title": "About",
"description": {
"link": "https://en.wikipedia.org/wiki/Alphabet_Inc.",
"link_text": "Wikipedia",
"snippet": "Alphabet Inc. is an American multinational technology conglomerate holding company headquartered in Mountain View, California. Alphabet is the world's third-largest technology company by revenue, after Amazon and Apple, and one of the world's most valuable companies. It was created through a restructuring of Google on October 2, 2015, and became the parent holding company of Google and several former Google subsidiaries. It is considered one of the Big Five American information technology companies, alongside Amazon, Apple, Meta, and Microsoft.\nThe establishment of Alphabet Inc. was prompted by a desire to make the core Google business \"cleaner and more accountable\" while allowing greater autonomy to group companies that operate in businesses other than Internet services. Founders Larry Page and Sergey Brin announced their resignation from their executive posts in December 2019, with the CEO role to be filled by Sundar Pichai, who is also the CEO of Google. Page and Brin remain employees, board members, and controlling shareholders of Alphabet Inc. Wikipedia"
},
"info": [
{
"label": "CEO",
"value": "Sundar Pichai",
"link": "https://www.google.com/search?q=Sundar%20Pichai&hl=en-US"
},
]
},
"tags": [
{
"title": "Stock",
"link": "https://www.google.com/finance",
"description": "Ownership of a fraction of a corporation and the right to claim a share of the corporation's assets and profits equal to the amount of stock owned"
},
],
"stats": [
{
"description": "The last closing price",
"label": "Previous close",
"value": "$154.64"
},
]
},
"url": "https://www.google.com/finance/quote/GOOGL:NASDAQ?q=GOOGL%3ANASDAQ"
}
{
"code": 400,
"message": "API Key can not be empty"
}