Telegraph API

Beginner's Pick Social / API Key Intermediate HTTPS
77 B
Measured Score 0 50 100 Speed 14/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

Telegraph is a minimalist publishing API from the Telegram team that lets you create and edit clean, shareable blog posts programmatically. You create an account anonymously with just a short token — no email or password needed. It is a great beginner project for learning how to publish formatted content via an API.

Beginner Tip

Call the createAccount endpoint first to get your access_token, then use createPage to publish your first article — the whole flow takes less than five minutes.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.telegra.ph/createAccount?short_name=Sandbox&author_name=Anonymous
Result
HTTP 200 · application/json · 254 bytes · compressed
Response time
276 ms (median of 3) · fastest 272 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by GoDaddy.com, Inc.
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
nginx/1.30.1
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
short_name string Sandbox
author_name string Anonymous
author_url string
access_token string 84f7d340a4ce1f55cec399e26fd7c8264aced7d0062f1…
auth_url string (url) https://edit.telegra.ph/auth/gBHSgyED8ESAa9i4…

Captured Response

Captured from a real request to https://api.telegra.ph/createAccount?short_name=Sandbox&author_name=Anonymous on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "ok": true,
  "result": {
    "short_name": "Sandbox",
    "author_name": "Anonymous",
    "author_url": "",
    "access_token": "84f7d340a4ce1f55cec399e26fd7c8264aced7d0062f1b248dbbdf90e67b",
    "auth_url": "https://edit.telegra.ph/auth/gBHSgyED8ESAa9i4I7D6p8iChvCx6Ilkh0dxyP8FsY"
  }
}

Field Reference

ok True if the API call succeeded.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.telegra.ph/createAccount";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

ACCESS_TOKEN_INVALID The access_token passed does not match any active account.
Use the token returned from createAccount; do not modify it or share it across accounts.
CONTENT_TOO_BIG The content array of the page exceeds the allowed size limit.
Split your content into multiple pages or reduce the total character count.
PAGE_NOT_FOUND The path parameter references a page that does not exist or was deleted.
Double-check the page path returned when you created the page, as it is case-sensitive.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 14/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 276ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Social
Difficulty Intermediate
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →