Get Started
- Quickstart
- Frameworks
- LLM Docs
Account Management
Files
Additional Resources
- Community SDKs
- IPFS 101
- Farcaster
Cast by Hash
GET
/
casts
/
{hash}
curl --request GET \
--url https://api.pinata.cloud/v3/farcaster/casts/{hash} \
--header 'Authorization: Bearer <token>'
{
"cast": {
"author": {
"active_status": "inactive",
"custody_address": "0x456131161f83c7d7fda15b32a5f7c21fd4e27e96",
"display_name": "Steve",
"fid": 6023,
"follower_count": 5095,
"following_count": 936,
"object": "user",
"pfp_url": "https://p765cpbvm0.execute-api.eu-central-1.amazonaws.com/p1/renderer/Minteeble/chain/base/collection/6e0b39a5-8569-4e67-b330-d352593c9629/image/176.png",
"power_badge": true,
"profile": {
"bio": {
"mentioned_profiles": [],
"text": "Head of Developer Relations at /pinata | Technical Writer | Building honeythread.xyz | Tinkering Photocaster | stevedylan.dev/links"
}
},
"username": "stevedylandev.eth",
"verifications": [
"0xad73eafcac4f4c6755dfc61770875fb8b6bc8a25"
],
"verified_addresses": {
"eth_addresses": [
"0xad73eafcac4f4c6755dfc61770875fb8b6bc8a25"
],
"sol_addresses": []
}
},
"embeds": [
{
"cast_id": {
"fid": 6023,
"hash": "0x4579466d6555e3d42a9fc579c3763342f85292fb"
}
},
{
"url": "http://dietcast.xyz"
}
],
"frames": [
{
"buttons": [
{
"action_type": "link",
"index": 1,
"target": "https://dietcast.xyz",
"title": "Visit"
},
{
"action_type": "link",
"index": 2,
"target": "https://www.pinata.cloud/blog/how-to-build-a-lite-client-with-the-pinata-farcaster-api",
"title": "Tutorial"
},
{
"action_type": "link",
"index": 3,
"target": "https://github.com/PinataCloud/diet-cast",
"title": "Repo"
}
],
"frames_url": "http://dietcast.xyz",
"image": "https://dweb.mypinata.cloud/ipfs/QmYZArEWBaAosWP1XRAB1zLK1kK7zScia4rHbv62xKs3zo?filename=og.png",
"input": {},
"state": {},
"title": "Diet Cast",
"version": "vNext"
}
],
"hash": "0x48895560a708870f4833207152dc2ab9427f8a55",
"mentioned_profiles": [],
"object": "cast",
"parent_author": {
"fid": null
},
"parent_hash": null,
"parent_url": "https://warpcast.com/~/channel/fc-devs",
"reactions": {
"likes": [
{
"fid": 646,
"fname": "0xshash"
},
{
"fid": 394037,
"fname": "kis201"
},
{
"fid": 249109,
"fname": "scottcooper"
},
{
"fid": 3621,
"fname": "portlymerchant.eth"
},
{
"fid": 2902,
"fname": "falcon"
}
],
"likes_count": 9,
"recasts": [
{
"fid": 3621,
"fname": "portlymerchant.eth"
}
],
"recasts_count": 1
},
"replies": {
"count": 1
},
"root_parent_url": "https://warpcast.com/~/channel/fc-devs",
"text": "New lite client is live! Check out how we made it with the tutorial and open source repo linked in the frame 🥤 dietcast.xyz",
"thread_hash": "0x48895560a708870f4833207152dc2ab9427f8a55",
"timestamp": "2024-04-30T15:16:27.000Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The full hash of the cast you want to fetch
Example:
"0x48895560a708870f4833207152dc2ab9427f8a55"
Response
200 - application/json
OK
The response is of type object
.
curl --request GET \
--url https://api.pinata.cloud/v3/farcaster/casts/{hash} \
--header 'Authorization: Bearer <token>'
{
"cast": {
"author": {
"active_status": "inactive",
"custody_address": "0x456131161f83c7d7fda15b32a5f7c21fd4e27e96",
"display_name": "Steve",
"fid": 6023,
"follower_count": 5095,
"following_count": 936,
"object": "user",
"pfp_url": "https://p765cpbvm0.execute-api.eu-central-1.amazonaws.com/p1/renderer/Minteeble/chain/base/collection/6e0b39a5-8569-4e67-b330-d352593c9629/image/176.png",
"power_badge": true,
"profile": {
"bio": {
"mentioned_profiles": [],
"text": "Head of Developer Relations at /pinata | Technical Writer | Building honeythread.xyz | Tinkering Photocaster | stevedylan.dev/links"
}
},
"username": "stevedylandev.eth",
"verifications": [
"0xad73eafcac4f4c6755dfc61770875fb8b6bc8a25"
],
"verified_addresses": {
"eth_addresses": [
"0xad73eafcac4f4c6755dfc61770875fb8b6bc8a25"
],
"sol_addresses": []
}
},
"embeds": [
{
"cast_id": {
"fid": 6023,
"hash": "0x4579466d6555e3d42a9fc579c3763342f85292fb"
}
},
{
"url": "http://dietcast.xyz"
}
],
"frames": [
{
"buttons": [
{
"action_type": "link",
"index": 1,
"target": "https://dietcast.xyz",
"title": "Visit"
},
{
"action_type": "link",
"index": 2,
"target": "https://www.pinata.cloud/blog/how-to-build-a-lite-client-with-the-pinata-farcaster-api",
"title": "Tutorial"
},
{
"action_type": "link",
"index": 3,
"target": "https://github.com/PinataCloud/diet-cast",
"title": "Repo"
}
],
"frames_url": "http://dietcast.xyz",
"image": "https://dweb.mypinata.cloud/ipfs/QmYZArEWBaAosWP1XRAB1zLK1kK7zScia4rHbv62xKs3zo?filename=og.png",
"input": {},
"state": {},
"title": "Diet Cast",
"version": "vNext"
}
],
"hash": "0x48895560a708870f4833207152dc2ab9427f8a55",
"mentioned_profiles": [],
"object": "cast",
"parent_author": {
"fid": null
},
"parent_hash": null,
"parent_url": "https://warpcast.com/~/channel/fc-devs",
"reactions": {
"likes": [
{
"fid": 646,
"fname": "0xshash"
},
{
"fid": 394037,
"fname": "kis201"
},
{
"fid": 249109,
"fname": "scottcooper"
},
{
"fid": 3621,
"fname": "portlymerchant.eth"
},
{
"fid": 2902,
"fname": "falcon"
}
],
"likes_count": 9,
"recasts": [
{
"fid": 3621,
"fname": "portlymerchant.eth"
}
],
"recasts_count": 1
},
"replies": {
"count": 1
},
"root_parent_url": "https://warpcast.com/~/channel/fc-devs",
"text": "New lite client is live! Check out how we made it with the tutorial and open source repo linked in the frame 🥤 dietcast.xyz",
"thread_hash": "0x48895560a708870f4833207152dc2ab9427f8a55",
"timestamp": "2024-04-30T15:16:27.000Z"
}
}