Developer examples

See how it works in code

TRMesh Social Media Data API — a unified REST API for real-time access to 16+ social media platforms, including TikTok, Douyin, Instagram, YouTube, Twitter/X, Xiaohongshu, Bilibili, Weibo, Threads, LinkedIn, Reddit, Kuaishou, WeChat, Lemon8, Zhihu, and more.

Built for developers, data scientists, and AI engineers, supporting AI training, creator analytics, trend monitoring, social listening, market research, and competitive intelligence.

import os
import requests

url = "https://api.trmesh.com/openapi/api/v1/instagram/web_app/fetch_user_info_by_username"
headers = {
    "accept": "application/json",
    "Authorization": f"Bearer {os.environ['TRMESH_API_TOKEN']}",
}
params = {"username": "instagram"}

response = requests.get(url, headers=headers, params=params, timeout=30)
print(response.status_code)
print(response.json())
Important notes: Set TRMESH_API_TOKEN to a developer token from the workspace. Install dependencies before running locally: pip install requests. View API Docs →
Ways to use TRMesh

Start with a question. Find a useful signal

These scenarios show research paths using public social data. Check API Docs for current platform coverage and route availability

01 / Creator research

Find the right creators before reaching out

Use public profiles and content to study creator themes, recent work, and engagement signals. Build a clearer shortlist for human review and outreach

  • Discover relevant creators and content
  • Compare themes and content response
  • Review a shortlist and reach out directly
Explore available APIs
Creator profile and content research workspace
02 / Cross-border commerce

Understand what your target market is talking about

Study public content, topics, and creators in a target market to understand customer interests and competitor narratives before shaping a commerce strategy

  • Observe product-related conversations
  • Research competitors and audience topics
  • Form market hypotheses from actual data
Explore available APIs
Cross-border commerce market research scene
03 / Social analysis

Bring scattered social signals into focus

Use available documented routes for public accounts, content, and engagement. Organize a view across platforms and time to find changes worth investigating

  • Gather public account and content signals
  • Compare topics and engagement shifts
  • Keep sources visible and verify conclusions
Explore available APIs
Cross-platform social media analysis scene
04 / Travel research

Find travel ideas in real shared experiences

Explore public destination content, travel themes, and creator experiences as research inputs for guides or trip planning. Confirm details and freshness before using them

  • Discover destination conversations
  • Review public experiences and content
  • Verify details before shaping a guide
Explore available APIs
Destination and travel content research scene
Responses

HTTP status codes

Start troubleshooting with the status code, then check usage logs, wallet records and error details in the workspace

View API Docs →
400
Bad Request

The request format is invalid, required parameters are missing, or values do not match the selected route

401
Unauthorized

The token is missing, invalid, expired or cannot be matched to an active user

402
Payment Required

The account does not have enough free quota or USD balance for this paid request

403
Forbidden

The account, email verification state, token permission or route access does not allow the request

404
Not Found

The route is not registered, not online, or the requested data does not exist

429
Too Many Requests

The request rate exceeded the account's RPS level. Lower concurrency or upgrade the level before retrying

500 / 502
Server / Data Service Error

The platform or data-service provider is temporarily unavailable. Retry or degrade based on business tolerance

Ready to make real requests?

Start Free Trial →

Create an account, generate a token and choose an online route in the API docs. This page explains integration patterns; runtime access still follows workspace permissions, pricing and route status