快速入门
不到 5 分钟即可获得第一份 SERP 响应。最快的方式是先在控制台创建密钥,再直接进入已自动填入该密钥的 Google 搜索测试工具。
1. 注册账户
访问我们的官方网站并注册一个新账户。注册后,您的账户将自动获得免费积分,以便您可以立即开始测试。
2. 在控制台创建 API 密钥
登录后,在仪表盘中打开 API 密钥 部分,点击 创建新密钥。密钥创建后,使用 在文档中测试 Google 搜索 操作,打开已填入密钥的 Google 搜索测试器。
3. 发送您的第一个 Google 搜索请求
如果您从仪表盘到达此处,测试器可以自动预填您的 API 密钥和 query=coffee。否则,您也可以手动粘贴密钥并在此处发送请求。
使用您喜欢的工具(curl、Postman 或任何编程语言)发送请求。所有请求必须在 X-API-Key 标头中包含您的 API 密钥。
示例请求(curl)
bash
curl -X GET "https://api.justserpapi.com/api/v1/google/search?query=coffee" \
-H "X-API-Key: YOUR_API_KEY"示例响应
json
{
"code": 200,
"message": "success",
"data": {
"search_information": {
"query_displayed": "coffee",
"organic_results_state": "Results for exact spelling"
},
"menu_items": [
{
"title": "Maps",
"link": "https://www.google.com/url?q=http://maps.google.com/maps%3Fq%3Dcoffee%26gl%3Dus%26hl%3Den%26gbv%3D1%26um%3D1%26ie%3DUTF-8%26ved%3D1t:200713%26ictx%3D111&opi=89978449&sa=U&ved=0ahUKEwj5x-DzhMSSAxWmhv0HHdsLO3sQiaAMCAYoAQ&usg=AOvVaw2W3fdlaxHazMbhelYGVlJA",
"position": 1
},
{
"title": "Images",
"link": "https://www.google.com/search?q=coffee&sca_esv=6db730eca1f1f010&gl=us&hl=en&gbv=1&tbm=isch&source=lnms&sa=X&ved=0ahUKEwj5x-DzhMSSAxWmhv0HHdsLO3sQ_AUIBygC",
"position": 2
},
{
"title": "Videos",
"link": "https://www.google.com/search?q=coffee&sca_esv=6db730eca1f1f010&gl=us&hl=en&gbv=1&tbm=vid&source=lnms&sa=X&ved=0ahUKEwj5x-DzhMSSAxWmhv0HHdsLO3sQ_AUICCgD",
"position": 3
},
{
"title": "News",
"link": "https://www.google.com/search?q=coffee&sca_esv=6db730eca1f1f010&gl=us&hl=en&gbv=1&tbm=nws&source=lnms&sa=X&ved=0ahUKEwj5x-DzhMSSAxWmhv0HHdsLO3sQ_AUICSgE",
"position": 4
},
{
"title": "Books",
"link": "https://www.google.com/search?q=coffee&sca_esv=6db730eca1f1f010&gl=us&hl=en&gbv=1&udm=36&source=lnms&sa=X&ved=0ahUKEwj5x-DzhMSSAxWmhv0HHdsLO3sQ_AUICigF",
"position": 5
}
],
"peopleAlsoAskedFor": [
{
"question": "What does coffee do to your body?",
"answers": "Caffeine is the first thing that comes to mind when you think about coffee. But coffee also contains antioxidants and other active substances that may reduce internal inflammation and protect against disease, say nutrition experts from Johns Hopkins University School of Medicine.",
"link": "https://www.hopkinsmedicine.org/health/wellness-and-prevention/9-reasons-why-the-right-amount-of-coffee-is-good-for-you",
"displayed_link": "www.hopkinsmedicine.org › health › wellness-and-prevention › 9-reasons-...",
"rank": 1
},
{}
],
"organic_results": [
{
"title": "Coffee - Wikipedia",
"displayed_link": "https://en.wikipedia.org › wiki › Coffee",
"snippet": "Coffee is a beverage brewed from roasted, ground coffee beans. Darkly colored, bitter, and slightly acidic, coffee has a stimulating effect on humans",
"date": "",
"missing": [],
"link": "https://en.wikipedia.org/wiki/Coffee",
"favicon": "https://www.google.com/s2/favicons?domain=en.wikipedia.org",
"rank": 1,
"page_rank": 1
},
{
"title": "r/Coffee - Reddit",
"displayed_link": "https://www.reddit.com › Coffee",
"snippet": "r/Coffee: /r/Coffee is back - for now - and talking about itself, in addition to coffee.",
"date": "",
"missing": [],
"link": "https://www.reddit.com/r/Coffee/",
"favicon": "https://www.google.com/s2/favicons?domain=www.reddit.com",
"rank": 2,
"page_rank": 2
},
{
"title": "Starbucks Coffee Company",
"displayed_link": "https://www.starbucks.com",
"snippet": "Explore our winter menu of handcrafted drinks, order ahead, sign up for Starbucks® Rewards, manage your gift card and more.",
"date": "Feb 9, 2025",
"missing": [],
"link": "https://www.starbucks.com/",
"favicon": "https://www.google.com/s2/favicons?domain=www.starbucks.com",
"rank": 3,
"page_rank": 3
},
{
"title": "Coffee - The Nutrition Source",
"displayed_link": "https://nutritionsource.hsph.harvard.edu › food-features › coffee",
"snippet": "A plain “black” cup of coffee is a very low calorie drink—8 ounces only contains 2 calories! However, adding sugar, cream, and milk can quickly bump up the ...",
"date": "",
"missing": [],
"link": "https://nutritionsource.hsph.harvard.edu/food-features/coffee/",
"favicon": "https://www.google.com/s2/favicons?domain=nutritionsource.hsph.harvard.edu",
"rank": 4,
"page_rank": 4
},
{
"title": "Peet's Coffee | The Original Craft Coffee Since 1966",
"displayed_link": "https://www.peets.com",
"snippet": "Since 1966, Peet's Coffee has sourced and offered superior coffees and teas adhered to strict high-quality and taste standards. Shop online today.",
"date": "",
"missing": [],
"link": "https://www.peets.com/",
"favicon": "https://www.google.com/s2/favicons?domain=www.peets.com",
"rank": 5,
"page_rank": 5
},
{
"title": "What is coffee? - NCA - About Coffee",
"displayed_link": "https://www.aboutcoffee.org › Origins",
"snippet": "What is coffee made of? Learn about the coffee tree, its lifespan, how it produces coffee beans, and the two most common coffee species, arabica and ...",
"date": "",
"missing": [],
"link": "https://www.aboutcoffee.org/origins/what-is-coffee/",
"favicon": "https://www.google.com/s2/favicons?domain=www.aboutcoffee.org",
"rank": 6,
"page_rank": 6
},
{
"title": "Stumptown Coffee Roasters: Craft Coffee Beans Online & In Shops",
"displayed_link": "https://www.stumptowncoffee.com",
"snippet": "Stumptown Coffee Roasters brings you fresh beans, cold brew, and good vibes. Order online, visit a shop, or subscribe for the long haul.",
"date": "",
"missing": [],
"link": "https://www.stumptowncoffee.com/?srsltid=AfmBOooCkaR6aiYf5nYvWefvhHEzhV3PBJSxTpLY_0S6cmtwkA18HF7g",
"favicon": "https://www.google.com/s2/favicons?domain=www.stumptowncoffee.com",
"rank": 7,
"page_rank": 7
},
{
"title": "Coffee - Walmart.com",
"displayed_link": "https://www.walmart.com › coffee",
"snippet": "Free 90-day returnsShop for Coffee at Walmart.com. Buy Ground coffee, coffee pods, instant coffee, and whole bean coffee. Save money. Live better.",
"date": " 4.3 4.4K ",
"missing": [],
"link": "https://www.walmart.com/cp/coffee/1086446",
"favicon": "https://www.google.com/s2/favicons?domain=www.walmart.com",
"rank": 8,
"page_rank": 8
},
{
"title": "Community Coffee | #1 Family-Owned Retail Coffee Brand in America",
"displayed_link": "https://www.communitycoffee.com",
"snippet": "$7.95 delivery 30-day returnsFrom responsible sourcing to expert roasting, we make our premium coffee with over 105 years of experience.",
"date": "$7.95 delivery",
"missing": [],
"link": "https://www.communitycoffee.com/?srsltid=AfmBOorY9S2IeNPi_rkRTJq6G33k9NxMDZfAYrV9Uk4eCu27GycUAZMW",
"favicon": "https://www.google.com/s2/favicons?domain=www.communitycoffee.com",
"rank": 9,
"page_rank": 9
},
{
"title": "Death Wish Coffee: #1 Organic and #1 Fair Trade Coffee",
"displayed_link": "https://www.deathwishcoffee.com",
"snippet": "Bold, Smooth and Delicious since 2012. We source USDA Organic and Fair Trade Certified™ arabica and robusta coffee beans from India, Peru, and other ...",
"date": "",
"missing": [],
"link": "https://www.deathwishcoffee.com/?srsltid=AfmBOorFOBqnagdoW6299o2-e5V_hjA09vibdWABecQoVsPwAZCTRV39",
"favicon": "https://www.google.com/s2/favicons?domain=www.deathwishcoffee.com",
"rank": 10,
"page_rank": 10
}
],
"relatedSearches": [
{
"query": "Coffee nearby",
"link": "https://google.com/search?gl=us&q=Coffee+nearby"
},
{
"query": "Coffee types",
"link": "https://google.com/search?gl=us&q=Coffee+types"
},
{
"query": "Coffee Pic",
"link": "https://google.com/search?gl=us&q=Coffee+Pic"
},
{
"query": "Coffee brands",
"link": "https://google.com/search?gl=us&q=Coffee+brands"
},
{
"query": "Coffee Powder",
"link": "https://google.com/search?gl=us&q=Coffee+Powder"
},
{
"query": "Coffee NESCAFÉ",
"link": "https://google.com/search?gl=us&q=Coffee+NESCAFÉ"
},
{
"query": "Coffee beans",
"link": "https://google.com/search?gl=us&q=Coffee+beans"
},
{
"query": "Coffee benefits",
"link": "https://google.com/search?gl=us&q=Coffee+benefits"
}
],
"pagination": {
"page_no": {}
},
"scrapingdog_pagination": {
"page_no": {}
}
},
"requestId": "b8c34a1d-0307-42e6-9460-a58774d063ee",
"timestamp": 1770352476724
}