Google Related Websites API
For some local searches, Google search includes the "Related websites" block with nearby businesses. SerpApi is able to scrape and make sense of this information by extracting position, title, link, image, type, hours, address, and phone, plus the map image of these businesses in related_websites_map.
The API endpoint is https://serpapi.com/search?engine=google
Head to the playground for a live and interactive demo.
API Examples
Results for: repair auto shop
{
...
"related_websites": [
{
"position": 1,
"title": "AutoCare Tyre and Service Centre",
"link": "https://www.google.ie/search?sca_esv=fd197440f8bb2449&gl=ie&hl=en&sxsrf=APpeQns23GrnWNUbs0IKJgb0zSMTrhL4jw:1792435610561&q=AutoCare+Tyre+and+Service+Centre+Mechanic+35+Ballybough+Rd,+Drumcondra,+Dublin+3,+D03+P638&sa=X&ved=2ahUKEwitnOb-3saXAxV9XUEAHRPWB1EQ2egTegQIJhAC&ictx=0",
"image": "https://serpapi.com/searches/6ad7a994ce4eb05c83efa3bd/images/m1sIxSa0PE_VTSojhkIMuNOkeaGiHiw4zGKtxIpLF5o.jpeg",
"type": "Mechanic",
"hours": "Closes soon · 8 pm",
"address": "35 Ballybough Rd, Drumcondra, Dublin 3, D03 P638",
"phone": "087 932 7123"
},
{
"position": 2,
"title": "Car Service Dublin",
"link": "http://www.carservicedublin.ie/",
"image": "https://serpapi.com/searches/6ad7a994ce4eb05c83efa3bd/images/m1sIxSa0PE_VTSojhkIMuJf9Xsu-NY-F4GAOV5H2In0.png",
"type": "Car repair and maintenance service",
"hours": "Open · Closes 9 pm",
"address": "1 Limekiln Ln, Whitehall, Dublin 12, D12 DY80",
"phone": "085 274 2638"
},
{
"position": 3,
"title": "Car4Tech",
"link": "http://car4tech.ie/",
"image": "https://serpapi.com/searches/6ad7a994ce4eb05c83efa3bd/images/m1sIxSa0PE_VTSojhkIMuBTPBaa7ST7uBKFps2uNMsQ.jpeg",
"type": "Auto repair shop",
"hours": "Open 24 hours",
"address": "Unit 7, Block V2, Ballymount Rd Lower, Dublin 12",
"phone": "089 236 6438"
},
...
],
"related_websites_map": {
"image": "https://www.google.com/maps/vt/data=X-dqTfep2lhokQ8jckq3zE1gu_lBjr4ePv1ParGwzIHRYN1bvuhnvs5TbV3eMGVTk9HEMEKwYXcKXpIQFsAk4N2nH5JzW9RyoKIMXpbIal9rCML43opIpXSQLpXkeWZWF2_nDn-5gWCOoq7eJUaAddoMs1fXj5nQE97aILUuBTEyoo6d_7mnbA"
},
...
}
JSON Structure Overview
{
...
"related_websites": [
{
"position": "Integer - Position of the business",
"title": "String - Name of the business",
"link": "String - URL of the business website, or a Google search if it has none",
"image": "String - URL of the business image",
"type": "String - Type of the business",
"hours": "String - Opening hours of the business",
"address": "String - Address of the business",
"phone": "String - Phone number of the business"
},
...
],
"related_websites_map": {
"image": "String - URL of the map image showing the businesses"
},
...
}