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": [
...
{
"position": 251,
"title": "coffee beans",
"link": "https://en.wikipedia.org/wiki/Coffee_bean",
"displayed_link": "en.wikipedia.org",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoffee_bean"
},
{
"position": 253,
"title": "brewed",
"link": "https://en.wikipedia.org/wiki/Coffee_brew",
"displayed_link": "en.wikipedia.org",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoffee_brew"
},
{
"position": 254,
"title": "bitter",
"link": "https://en.wikipedia.org/wiki/Bitterness",
"displayed_link": "en.wikipedia.org",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBitterness"
},
{
"position": 255,
"title": "stimulating effect",
"link": "https://en.wikipedia.org/wiki/Stimulant",
"displayed_link": "en.wikipedia.org",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FStimulant"
},
{
"position": 256,
"title": "caffeine",
"link": "https://en.wikipedia.org/wiki/Caffeine",
"displayed_link": "en.wikipedia.org",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCaffeine"
},
{
"position": 257,
"title": "decaffeinated",
"link": "https://en.wikipedia.org/wiki/Decaffeinated",
"displayed_link": "en.wikipedia.org",
"internal": true,
"serpapi_extract_link": "https://serpapi.com/search.json?device=desktop&engine=extract&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDecaffeinated"
},
{
"position": 258,
"title": "coffee substitutes",
"link": "https://en.wikipedia.org/wiki/Coffee_substitute",
"displayed_link": "en.wikipedia.org",
"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": [
{
"position": "Integer - Position of the link",
"title": "String - Text of the link",
"link": "String - URL of the link",
"displayed_link": "String - Host 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"
},
...
],
...
}