After an online event, you want the demonstration clips shared by its speakers. Some posts contain original video, others quote it, and others show screenshots. Establish those relationships before building a media handoff.
Start with a verified account
Retrieve posts for the intended screen_name or rest_id and preserve lookup time and cursor coverage. Publication time may differ from event time. Check account identity rather than assuming that a similar name represents the speaker.
Inspect the layer carrying the content
Use tweet_id for details and examine the source, quotation relationship and available media information. A quoting author's comments are not the original creator's explanation, and a screenshot is not a retrieved video. The contract does not guarantee identical nested media fields, so preserve missing information as a gap.
Keep explanatory notes in the index
Include original link, quoted source, event subject, media type, lookup time and later processing state. Distinguish video leads, images and text after inspection. AI may summarize supplied information but cannot reconstruct a full demonstration from a screenshot or invent playback addresses.
Verify file delivery separately
These lookups do not download, edit or assemble event material, nor guarantee permanent addresses. Check any later saved file before marking it complete. Merge repeated references to the same clip while preserving different commentary. The index should explain provenance and availability rather than conceal missing material behind a list of links.
Requests used in this project
- Get user post:https://api.trmesh.com/openapi/api/v1/twitter/web/fetch_user_post_tweet · Documentation
- Get single tweet data:https://api.trmesh.com/openapi/api/v1/twitter/web/fetch_tweet_detail · Documentation
Request URL and parameters
GET https://api.trmesh.com/openapi/api/v1/twitter/web/fetch_user_post_tweet
| Parameter | Type | Required | Meaning |
|---|---|---|---|
screen_name |
string | No | Screen Name |
rest_id |
integer | No | User ID |
cursor |
string | No | Cursor |
Run the Python example
Install requests and set TRMESH_API_TOKEN in your environment. Replace the sample identifiers with the public object you intend to inspect. Example IDs may no longer be available.
import os
import requests
# Read your own developer key from the server environment.
url = "https://api.trmesh.com/openapi/api/v1/twitter/web/fetch_user_post_tweet"
params = {
"screen_name": "elonmusk",
"rest_id": "44196397"
}
response = requests.get(
url, params=params, timeout=30,
headers={"Authorization": f"Bearer {os.environ['TRMESH_API_TOKEN']}"},
)
response.raise_for_status()
payload = response.json()
print(payload) # Inspect the actual response before mapping fields
Endpoint documentation · Free profile tool
API calls use your TRMesh account allowance. Check the endpoint price before running a script.