# URL Title API

> URL Title fetches the HTML title tag of any web page in real time from a target URL. Paid plans also retrieve an array of every H1 heading tag found on the page.

**Endpoint:** `POST https://api.apiverve.com/v1/urltitle`  
**Category:** Domain Data  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/urltitle

## Overview

Send a web address to parse the live document over HTTP. The endpoint inspects the markup and extracts the text content inside the title tag. On paid tiers, the response also includes a list of all H1 headings located within the page body.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/urltitle" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://en.wikipedia.org/wiki/HTML_element"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL of the web page to get the title of; without a scheme, https:// is assumed. url |

## Response fields

- `title` — string · The HTML title tag content of the web page
- `h1` — array · Array of all H1 heading elements found on the page · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "title": "HTML element - Wikipedia",
    "h1": [
      "HTML element"
    ]
  }
}
```

## Use cases

- **Bookmark Link Cards** — Social bookmarking platforms generate readable cards by pulling page titles whenever members save external web links.
- **SEO Metadata Auditing** — Audit web pages across a client domain to verify that HTML title tags exist and match target requirements.
- **Reading List Management** — When readers submit articles to an aggregator, the system attaches live page titles to label each entry automatically.
- **Chat Message Previews** — Messaging services parse shared URLs on post to show clear discussion context before members click outbound links.

## SDKs

- **npm** — `npm install @apiverve/urltitle` (https://www.npmjs.com/package/@apiverve/urltitle)
- **PyPI** — `pip install apiverve-urltitle` (https://pypi.org/project/apiverve-urltitle/)
- **NuGet** — `dotnet add package APIVerve.API.URLTitle` (https://www.nuget.org/packages/APIVerve.API.URLTitle)
- **Source** — https://github.com/apiverve/urltitle-api

## More

- Full reference: https://docs.apiverve.com/ref/urltitle
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
