Post Enrichment API
Retrieve the full data behind any public post from its URL — post text, publish date, author details, engagement counts, attached media, and hashtags.
Endpoint:
https://api.enrichmentapi.io/post_enrichmentAPI Parameters
🔑
Authentication
api_keyRequiredYour API key from the dashboard.
🔍
Query Parameters
post_urlRequiredThe URL of the post to enrich (e.g.your_post_url).
API Examples
Code to Integrate
curl -G "https://api.enrichmentapi.io/post_enrichment" \ --data-urlencode "api_key=APIKEY" \ --data-urlencode "post_url=your_post_url"
import requests params = { 'api_key': 'APIKEY', 'post_url': 'your_post_url' } response = requests.get('https://api.enrichmentapi.io/post_enrichment', params=params) print(response.json())
const axios = require('axios'); axios.get('https://api.enrichmentapi.io/post_enrichment', { params: { api_key: 'APIKEY', post_url: 'your_post_url' } }) .then(res => console.log(res.data)) .catch(err => console.error(err.message));
<?php $query = http_build_query([ 'api_key' => 'APIKEY', 'post_url' => 'your_post_url', ]); $response = file_get_contents("https://api.enrichmentapi.io/post_enrichment?$query"); print_r(json_decode($response, true));
require 'net/http' require 'json' uri = URI('https://api.enrichmentapi.io/post_enrichment') uri.query = URI.encode_www_form(api_key: 'APIKEY', post_url: 'your_post_url') response = Net::HTTP.get(uri) puts JSON.parse(response)
import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; public class Main { public static void main(String[] args) throws Exception { String url = "https://api.enrichmentapi.io/post_enrichment?api_key=APIKEY&post_url=your_post_url"; HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder().uri(URI.create(url)).GET().build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } }
API Response
{
"success": true,
"post_id": "7051021454629627392",
"post_url": "https://your_post_url",
"text": "We just shipped real-time enrichment for every plan. Same key, same endpoint, no waiting on batch jobs.",
"posted_at": "2026-08-12T09:31:00.000Z",
"author": {
"name": "Jordan Lee",
"profile_id": "jordanlee",
"headline": "Head of Growth at Northwind Labs",
"profile_image": "https://images.enrichmentapi.io/profiles/jordanlee.jpg"
},
"reactions": 1284,
"comments": 96,
"reposts": 41,
"media": [
{
"type": "image",
"url": "https://images.enrichmentapi.io/posts/7051021454629627392-1.jpg"
}
],
"hashtags": ["#api", "#dataenrichment"]
}