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

NameTypeRequiredDescription
urlstringYesFull URL of the webpage to inspect (http or https)
tokenstringYes*Your API token (* or use Authorization header)

Example request

curl "https://abesttools.com/api/metadata?url=https://example.com" \
  -H "Authorization: Bearer YOUR_TOKEN"
https://abesttools.com/api/metadata?token=YOUR_TOKEN&url=https://example.com

Response fields

FieldDescription
urlThe requested URL
titlePage <title>
descriptionmeta name="description"
keywordsmeta name="keywords"
robotsmeta name="robots"
language<html lang="...">
canonical<link rel="canonical">
faviconFavicon URL (absolute)
og_titleOpen Graph title
og_descriptionOpen Graph description
og_imageOpen Graph image URL
og_typeOpen Graph type
og_urlOpen Graph URL
og_site_nameOpen Graph site name
twitter_cardTwitter card type
twitter_titleTwitter title
twitter_descriptionTwitter description
twitter_imageTwitter 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

StatusMeaning
401Invalid or missing API token
403Active subscription required
422Invalid or missing url parameter
502Could not fetch the target page
Live test
Create an account and subscribe to test the API.