Extract Inline Links API
inline_links lists each unique link on the page, up to
300, including same-page #fragment links.
internal is true for links on the same website, including its subdomains.
API examples
Inline links
{
...
"inline_links": [
...
{
"title": "coffee beans",
"link": "https://en.wikipedia.org/wiki/Coffee_bean",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoffee_bean"
},
{
"title": "brewed",
"link": "https://en.wikipedia.org/wiki/Coffee_brew",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoffee_brew"
},
{
"title": "bitter",
"link": "https://en.wikipedia.org/wiki/Bitterness",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBitterness"
},
{
"title": "stimulating effect",
"link": "https://en.wikipedia.org/wiki/Stimulant",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FStimulant"
},
{
"title": "caffeine",
"link": "https://en.wikipedia.org/wiki/Caffeine",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCaffeine"
},
{
"title": "decaffeinated",
"link": "https://en.wikipedia.org/wiki/Decaffeinated",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDecaffeinated"
},
{
"title": "coffee substitutes",
"link": "https://en.wikipedia.org/wiki/Coffee_substitute",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoffee_substitute"
}
]
}
JSON structure overview
{
...
"inline_links": [
{
"title": "String - Text of the link",
"link": "String - URL of the link",
"rel": "String - rel attribute of the link",
"internal": "Boolean - Returns true if the link is on the same website, including its subdomains",
"serpapi_extract_link": "String - Extract API link for extracting this URL next"
},
...
],
...
}