Threads: User Posts
User Posts from Threads as JSON. 1 credit per successful call.
GET /v1/threads/user-postsNeeds terms
Note
This endpoint needs the restricted-endpoint terms, which you can accept in your dashboard.
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
username | string | Required | Up to 30 characters |
user_id | integer | Optional | Any |
Example request
curl "https://api.perceptlayer.com/v1/threads/user-posts?username=natgeo" \
-H "X-API-Key: $API_KEY"Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in posts has these 10 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
code | string |
pk | string |
username | string |
text | string |
permalink | url |
taken_at | integer |
like_count | integer |
quoted_post | object |
media | object[] |
reposted_post | object |