Webpage Metadata API
Extract title, description, Open Graph tags, Twitter cards, canonical URL, favicon and more from any webpage — with a single GET request.
Get your API token
Create an account and subscribe ($9/month) to start using the API.
Endpoint
GET https://abesttools.com/api/metadata
Authentication
Pass your API token in one of two ways:
- Query parameter:
?token=YOUR_TOKEN - Header:
Authorization: Bearer YOUR_TOKEN
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full URL of the webpage to inspect (http or https) |
token | string | Yes* | Your API token (* or use Authorization header) |
Example request
curl "https://abesttools.com/api/metadata?url=https://example.com" \
-H "Authorization: Bearer YOUR_TOKEN"
-H "Authorization: Bearer YOUR_TOKEN"
https://abesttools.com/api/metadata?token=YOUR_TOKEN&url=https://example.com
Response fields
| Field | Description |
|---|---|
url | The requested URL |
title | Page <title> |
description | meta name="description" |
keywords | meta name="keywords" |
robots | meta name="robots" |
language | <html lang="..."> |
canonical | <link rel="canonical"> |
favicon | Favicon URL (absolute) |
og_title | Open Graph title |
og_description | Open Graph description |
og_image | Open Graph image URL |
og_type | Open Graph type |
og_url | Open Graph URL |
og_site_name | Open Graph site name |
twitter_card | Twitter card type |
twitter_title | Twitter title |
twitter_description | Twitter description |
twitter_image | Twitter image URL |
Example response
{
"url": "https://example.com",
"title": "Example Domain",
"description": "This domain is for use in illustrative examples.",
"keywords": "",
"robots": "",
"language": "en",
"canonical": "https://example.com/",
"favicon": "https://example.com/favicon.ico",
"og_title": "",
"og_description": "",
"og_image": "",
"og_type": "",
"og_url": "",
"og_site_name": "",
"twitter_card": "",
"twitter_title": "",
"twitter_description": "",
"twitter_image": ""
}
Error responses
| Status | Meaning |
|---|---|
401 | Invalid or missing API token |
403 | Active subscription required |
422 | Invalid or missing url parameter |
502 | Could not fetch the target page |