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.

curl https://templateapi.vquint.com/

Example Request

curl https://templateapi.vquint.com/
// JavaScript fetch("https://templateapi.vquint.com/") .then(res => res.text()) .then(console.log);

GETList Categories

Retrieve a list of all available template categories.

curl https://templateapi.vquint.com/categories?api_key=pk_live_xxxxx

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.vquint.com/categories/gym?api_key=pk_live_xxxxx

In this example, gym 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.vquint.com/templates/gym?raw=true&api_key=pk_live_xxxxx

Example Usage

fetch("https://templateapi.vquint.com/templates/gym?raw=true&api_key=pk_live_xxxxx") .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.vquint.com/templates/gym/1?raw=true&api_key=pk_live_xxxxx

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

Python Examples

Here are practical examples of using the Template Hive API with Python.

Basic Setup

import requests API_KEY = "pk_live_xxxxx" BASE_URL = "https://templateapi.vquint.com" headers = { "X-API-Key": API_KEY }

Get All Categories

response = requests.get( f"{BASE_URL}/categories", params={"api_key": API_KEY} ) categories = response.json()["categories"] print(categories)

List Templates in Gym Category

response = requests.get( f"{BASE_URL}/categories/gym", params={"api_key": API_KEY} ) data = response.json() print(f"Found {data['template_count']} gym templates")

Get Single Template (Raw HTML)

response = requests.get( f"{BASE_URL}/templates/gym/1", params={"raw": "true", "api_key": API_KEY} ) html_content = response.text print(html_content)

Save Template to File

response = requests.get( f"{BASE_URL}/templates/gym/1", params={"raw": "true", "api_key": API_KEY} ) with open("template.html", "w", encoding="utf-8") as f: f.write(response.text) print("Template saved to template.html")

Pricing

Developer

$7/month
  • 2000 API Requests
  • Full access to all templates
  • 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