Suppose you are preparing a desk-photo challenge on Weibo. The announcement already asks readers to post pictures in the comments, but the submission post has not been checked. This endpoint helps verify that specific entry condition. It does not upload images or publish comments.

Identify the submission post

Keep the final post link and its identifier together. A teaser, the official invitation, and a repost promoting the event are different objects. Checking one does not establish the setting for the others. Put the result beside the exact submission link in the event checklist.

Keep an unknown result separate from a refusal

After a successful request, an explicit positive result supports keeping the photo-comment instruction. A negative result calls for a different submission arrangement or another verified post. A failed request or missing result means the check is unresolved. Do not silently turn that uncertainty into either permission or refusal.

Recheck the invitation before publication

Ask the event owner to compare the published instructions with the actual post page. Record when the check happened and who owns the fallback wording. The result describes a post-level condition; it does not guarantee that every participant can upload or that moderation will accept every image. Repeat the check if the submission destination changes.

Request URL and parameters

GET https://api.trmesh.com/openapi/api/v1/weibo/web_v2/check_allow_comment_with_pic

Parameter Type Required Meaning
id string Yes Weibo ID

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/weibo/web_v2/check_allow_comment_with_pic"
params = {
    "id": "5092682368025584"
}
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.