TWITTER API

Tweet Details

Retrieve tweet details from Twitter with a single API request.

GET/api/data/v1/twitter/tweet
1credit base costZero-credit cache supported

Request parameters

Up to 1 credit

Tweet URL

Set to true for a trimmed down version of the response

If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.]

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/twitter/tweet' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "credits_charged": 1,
  "rest_id": "1935730646267158797",
  "views": {
    "count": "27539",
    "state": "EnabledWithCount"
  },
  "source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
  "legacy": {
    "bookmark_count": 95,
    "bookmarked": false,
    "created_at": "Thu Jun 19 16:05:24 +0000 2025",
    "conversation_id_str": "1935730646267158797",
    "display_text_range": [
      0
    ],
    "entities": {
      "hashtags": [],
      "media": [
        {
          "display_url": "pic.x.com/YywdjQZde8",
          "expanded_url": "https://x.com/Austen/status/1935730646267158797/photo/1",
          "id_str": "1935730260303069184",
          "indices": [
            149
          ],
          "media_key": "3_1935730260303069184",
          "media_url_https": "https://pbs.twimg.com/media/Gt0YanJWwAA6B80.jpg",
          "type": "photo",
          "url": "https://t.co/YywdjQZde8",
          "ext_media_availability": {
            "status": "Available"
          },
          "allow_download_status": {
            "allow_download": true
          },
          "media_results": {
            "result": {
              "media_key": "3_1935730260303069184"
            }
          }
        }
      ],
      "symbols": [],
      "timestamps": [],
      "urls": [],
      "user_mentions": []
    },
    "extended_entities": {
      "media": [
        {
          "display_url": "pic.x.com/YywdjQZde8",
          "expanded_url": "https://x.com/Austen/status/1935730646267158797/photo/1",
          "id_str": "1935730260303069184",
          "indices": [
            149
          ],
          "media_key": "3_1935730260303069184",
          "media_url_https": "https://pbs.twimg.com/media/Gt0YanJWwAA6B80.jpg",
          "type": "photo",
          "url": "https://t.co/YywdjQZde8",
          "ext_media_availability": {
            "status": "Available"
          },
          "allow_download_status": {
            "allow_download": true
          },
          "media_results": {
            "result": {
              "media_key": "3_1935730260303069184"
            }
          }
        }
      ]
    },
    "favorite_count": 80,
    "favorited": false,
    "full_text": "This was created by a Gauntlet AI grad based on a whole lot of experimentation.\n\nOne of the most important things an AI dev can begin to understand. https://t.co/YywdjQZde8",
    "is_quote_status": false,
    "lang": "en",
    "possibly_sensitive": false,
    "possibly_sensitive_editable": true,
    "quote_count": 3,
    "reply_count": 6,
    "retweet_count": 5,
    "retweeted": false,
    "user_id_str": "221838349",
    "id_str": "1935730646267158797"
  }
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "credits_charged": {
      "type": "integer"
    },
    "rest_id": {
      "type": "string"
    },
    "views": {
      "type": "object",
      "properties": {
        "count": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      }
    },
    "source": {
      "type": "string"
    },
    "legacy": {
      "type": "object",
      "properties": {
        "bookmark_count": {
          "type": "integer"
        },
        "bookmarked": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string"
        },
        "conversation_id_str": {
          "type": "string"
        },
        "display_text_range": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "entities": {
          "type": "object",
          "properties": {
            "hashtags": {
              "type": "array"
            },
            "media": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "display_url": {
                    "type": "string"
                  },
                  "expanded_url": {
                    "type": "string"
                  },
                  "id_str": {
                    "type": "string"
                  },
                  "indices": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "media_key": {
                    "type": "string"
                  },
                  "media_url_https": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "ext_media_availability": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string"
                      }
                    }
                  },
                  "allow_download_status": {
                    "type": "object",
                    "properties": {
                      "allow_download": {
                        "type": "boolean"
                      }
                    }
                  },
                  "media_results": {
                    "type": "object",
                    "properties": {
                      "result": {
                        "type": "object",
                        "properties": {
                          "media_key": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "symbols": {
              "type": "array"
            },
            "timestamps": {
              "type": "array"
            },
            "urls": {
              "type": "array"
            },
            "user_mentions": {
              "type": "array"
            }
          }
        },
        "extended_entities": {
          "type": "object",
          "properties": {
            "media": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "display_url": {
                    "type": "string"
                  },
                  "expanded_url": {
                    "type": "string"
                  },
                  "id_str": {
                    "type": "string"
                  },
                  "indices": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "media_key": {
                    "type": "string"
                  },
                  "media_url_https": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "ext_media_availability": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string"
                      }
                    }
                  },
                  "allow_download_status": {
                    "type": "object",
                    "properties": {
                      "allow_download": {
                        "type": "boolean"
                      }
                    }
                  },
                  "media_results": {
                    "type": "object",
                    "properties": {
                      "result": {
                        "type": "object",
                        "properties": {
                          "media_key": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "favorite_count": {
          "type": "integer"
        },
        "favorited": {
          "type": "boolean"
        },
        "full_text": {
          "type": "string"
        },
        "is_quote_status": {
          "type": "boolean"
        },
        "lang": {
          "type": "string"
        },
        "possibly_sensitive": {
          "type": "boolean"
        },
        "possibly_sensitive_editable": {
          "type": "boolean"
        },
        "quote_count": {
          "type": "integer"
        },
        "reply_count": {
          "type": "integer"
        },
        "retweet_count": {
          "type": "integer"
        },
        "retweeted": {
          "type": "boolean"
        },
        "user_id_str": {
          "type": "string"
        },
        "id_str": {
          "type": "string"
        }
      }
    }
  }
}