The sharecaster API allows you to create shareable links from Farcaster URIs that are easy to share across the web.
https://sharecaster.xyz/0xf9b33ed7c032f1a320e9db2ea0fbdf178fe42419a852437fff627a9ee53a2359
<aside> ⚠️ If you plan to use this API, please join the telegram channel to provide feedback stay up to date on any upcoming changes:
👉 https://t.me/+4Zh-J9uYrTg1Njhh
</aside>
POST <https://sharecaster.xyz/api/share/
>
Body Params
Key | Value | Value Example |
---|---|---|
sharecast |
Farcaster URI | https://warpcast.com/pfista/0xc74419 |
DEPRECATED: farcaster://casts/0xd77ab56c37b72b5f5b78b0e1b533ed4733ee0e95179819e1f00165aee394b747/0xd77ab56c37b72b5f5b78b0e1b533ed4733ee0e95179819e1f00165aee394b747 |
curl -X 'POST' \\
'<https://sharecaster.xyz/api/share>' \\
-H 'accept: application/json' \\
-H 'Content-Type: application/json' \\
-d '{
"sharecast": "<https://warpcast.com/pfista/0xc74419>"
}'
{"data":"pfista/0xc74419"}
Use the value of data to form your Sharecast link. For example, to create a Sharecast link from the response above, you would use it like so:
https://sharecaster.xyz/{data.value}
https://sharecaster.xyz/pfista/0xc74419