Threads URL Parser API — Links to Request Fields

Parse a Threads link

Whether a threads.com or threads.net address is a post, a profile, a profile tab, a topic, a search, the trending page or the home page, with the ids it carries and the route and arguments that read it. Fetches nothing and costs no credit.

POST /resolve-url Utilities
https://api.fetchlayer.dev/threads/resolve-url
OpenAPI JSON

Headers

Authorization string required

Bearer token — your FetchLayer API key.

Parameters

url string required

Any threads.com or threads.net address.

format string optional

json or markdown. (default: json)

Response Fields

resolve-url

Parse a Threads link

transport string

The data source: always the platform id, "threads".

notes string[]

What to do with a link that is not one of the above.

kind string

post, profile, profile_tab, topic, search, trending or home.

url string

The canonical address.

username string | null

The account, for a post, profile or profile-tab link.

postCode string

The post’s code, for a post link.

postId string

The post’s numeric id, when the link carries it.

tab string

The tab, for a profile-tab link.

topic string

The topic name, for a topic link.

topicId string | null

The topic id, when the link carries it.

query string

The search words, for a search link.

tool string | null

The tool that reads this link, such as threads_post_detail; null when none does.

arguments object

The arguments to give that tool.

Request

curl -X POST "https://api.fetchlayer.dev/threads/resolve-url" \
  -H "Authorization: Bearer ss-your-key" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.threads.net/@zuck/post/DfihFPxkaZ1"}'

Response

{
  "transport": "threads",
  "notes": [],
  "kind": "post",
  "url": "https://www.threads.com/@zuck/post/DfihFPxkaZ1",
  "username": "zuck",
  "postCode": "DfihFPxkaZ1",
  "postId": "4026926512892651125",
  "tool": "threads_post_detail",
  "arguments": {
    "post": "DfihFPxkaZ1"
  }
}
Product overview Threads API: what it returns, pricing and use cases