Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Wha Tools API
version: 0.288.0
contact:
name: WhaTools contact
url: https://wha.tools/contact
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
description: 'Operations tagged tools across 2 of this provider''s published API definitions: openapi.json, wha-tools-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://wha.tools
tags:
- name: Tools
description: Utility endpoints backing the browser tools.
paths:
/api/link-preview:
post:
operationId: debugLinkPreview
summary: Link preview debugger
description: Fetches a URL and returns how its preview card would look when shared on WhatsApp (Open Graph / Twitter / tags plus the winning image’s real dimensions), for client-side diagnosis. SSRF-guarded and throttled per IP (two outbound fetches per call).
tags:
- Tools
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
format: uri
maxLength: 2048
description: The http(s) URL to inspect.
responses:
'200':
description: Diagnostics document.
content:
application/json:
schema:
type: object
required:
- success
properties:
success:
type: boolean
data:
type: object
description: Preview diagnostics.
'400':
description: Missing or invalid URL.
'408':
description: The target page timed out.
'429':
description: Per-IP rate limit exceeded (see Retry-After).
'502':
description: The target page could not be fetched.
servers:
- url: https://wha.tools
x-refined-from:
- openapi.json
- wha-tools-openapi.json