Template Hive

Editable HTML post templates delivered via a simple API.

View DocumentationGet API Key

What this API does

This API provides high-quality HTML templates designed for social media and web posts. Developers can retrieve templates programmatically and edit the raw HTML to suit their specific content and design requirements. All templates are delivered as clean, semantic HTML, providing full control over structure, styling, and layout.

Authentication

Authenticate your requests by including your API key in the header. API keys are issued manually via email verification.

Authorization: Bearer YOUR_API_KEY

GETHealth Check

Verify that the API is online and responsive.

GET https://templateapi-5tsz.onrender.com

Example Request

# cURL curl https://templateapi-5tsz.onrender.com
// JavaScript fetch("https://templateapi-5tsz.onrender.com") .then(res => res.text()) .then(console.log);

GETList Categories

Retrieve a list of all available template categories.

curl https://templateapi-5tsz.onrender.com/categories

Response

{ "categories": [ "beauty", "business", "education", "gym", "marriage", "medical", "realestate", "restaurant", "retail", "travel" ] }

Categories represent different industry verticals or post types available in the library.

GETList Templates by Category

Get a list of available templates within a specific category.

curl https://templateapi-5tsz.onrender.com/categories/business

In this example, business is the category slug. The response will include metadata for all templates tagged with this category.

GETGet All Templates (Raw HTML)

Fetch the raw HTML content for all templates in a category. This is useful for bulk loading or caching.

curl https://templateapi-5tsz.onrender.com/templates/business?raw=true

Example Usage

fetch("https://templateapi-5tsz.onrender.com/templates/business?raw=true") .then(res => res.text()) .then(html => { // Inject the raw HTML directly into your DOM document.getElementById("post").innerHTML = html; });

GETGet Single Template

Retrieve the raw HTML for a specific template by its ID.

curl https://templateapi-5tsz.onrender.com/templates/business/1?raw=true

Here 1 represents the unique template ID. This endpoint is best used when a user selects a specific template to edit.

Pricing

Developer

$7/mo
  • Production API Access
  • Unlimited Requests
  • Email Support

If you need more credits or a custom enterprise plan, please email us. We will reach out to you with a tailored solution.

Get API Key

To maintain quality of service, we currently issue API keys manually.

Please email us with a brief description of your use case to request access.


Request API Key