The Webpage API provides services to retrieve URL information and web page metadata from any website URL. All web page metadata is retrieved live from the URL by loading and parsing the page.
To retrieve web page text, use the Web Scraper API instead.
https://api.api-ninjas.com/v1/webpage
Returns the URL information and web page metadata from a given URL.
url requiredURL to retrieve information from.
X-Api-Key requiredAPI Key associated with your account.
urlURL to retrieve information from.
domainDomain name of the URL.
url_pathPath of the URL.
url_parametersParameters of the URL.
page_titleTitle of the web page.
page_descriptionDescription of the web page.
meta_tagsMeta tags of the web page.
faviconFavicon of the web page.
https://api.api-ninjas.com/v1/webpage?url=https://example.comHeaders
X-Api-KeyLog in or sign up to get your API Key1
2
3
4
5
6
7
8
9
10
11
12
{
"url": "https://example.com",
"domain": "example.com",
"url_path": "",
"url_parameters": {},
"page_title": "Example Domain",
"page_description": "",
"meta_tags": {
"viewport": "width=device-width, initial-scale=1"
},
"favicon": ""
}1
2
curl -X GET "https://api.api-ninjas.com/v1/webpage?url=https://example.com" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.