TWITTER API

Profile

Retrieve profile from Twitter with a single API request.

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

Request parameters

Up to 1 credit

Twitter handle

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/profile?handle=Austen' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "__typename": "User",
  "id": "VXNlcjoyMjE4MzgzNDk=",
  "rest_id": "221838349",
  "affiliates_highlighted_label": {
    "label": {
      "url": {
        "url": "https://twitter.com/bloomtech",
        "urlType": "DeepLink"
      },
      "badge": {
        "url": "https://pbs.twimg.com/profile_images/1542996246477938688/PR4UFtE6_bigger.jpg"
      },
      "description": "Bloom Institute of Technology",
      "userLabelType": "BusinessLabel",
      "userLabelDisplayType": "Badge"
    }
  },
  "is_blue_verified": true,
  "profile_image_shape": "Circle",
  "legacy": {
    "created_at": "Wed Dec 01 19:13:23 +0000 2010",
    "default_profile": false,
    "default_profile_image": false,
    "description": "CEO https://t.co/m6TigM5azr & https://t.co/NuPTghEZ1I (part of @bloomtech). We help teams maximize productivity using AI. Will tweet as I wish and suffer the consequences.",
    "entities": {
      "description": {
        "urls": [
          {
            "display_url": "GauntletAI.com",
            "expanded_url": "http://GauntletAI.com",
            "url": "https://t.co/m6TigM5azr",
            "indices": [
              4
            ]
          }
        ]
      },
      "url": {
        "urls": [
          {
            "display_url": "gauntletai.com",
            "expanded_url": "http://gauntletai.com",
            "url": "https://t.co/nCe0AdT8D4",
            "indices": [
              0
            ]
          }
        ]
      }
    },
    "fast_followers_count": 0,
    "favourites_count": 80812,
    "followers_count": 377608,
    "friends_count": 1051,
    "has_custom_timelines": true,
    "is_translator": false,
    "listed_count": 3959,
    "location": "Austin, TX",
    "media_count": 3843,
    "name": "Austen Allred",
    "normal_followers_count": 377608,
    "pinned_tweet_ids_str": [
      "1882816395400073367"
    ],
    "possibly_sensitive": false,
    "profile_banner_url": "https://pbs.twimg.com/profile_banners/221838349/1622098809",
    "profile_image_url_https": "https://pbs.twimg.com/profile_images/1608281295918096385/D2kh-M28_normal.jpg",
    "profile_interstitial_type": "",
    "screen_name": "Austen",
    "statuses_count": 46114,
    "translator_type": "regular",
    "url": "https://t.co/nCe0AdT8D4",
    "verified": false,
    "withheld_in_countries": []
  },
  "tipjar_settings": {
    "is_enabled": false,
    "bandcamp_handle": "",
    "bitcoin_handle": "",
    "cash_app_handle": "",
    "ethereum_handle": "",
    "gofundme_handle": "",
    "patreon_handle": "",
    "pay_pal_handle": "",
    "venmo_handle": ""
  },
  "legacy_extended_profile": {},
  "is_profile_translatable": false,
  "has_hidden_subscriptions_on_profile": false,
  "verification_info": {
    "is_identity_verified": false,
    "reason": {
      "description": {
        "text": "This account is verified because it's an affiliate of @bloomtech on X. Learn more",
        "entities": [
          {
            "from_index": 54,
            "to_index": 64,
            "ref": {
              "url": "https://twitter.com/bloomtech",
              "url_type": "ExternalUrl"
            }
          }
        ]
      },
      "verified_since_msec": "1473330227634"
    }
  },
  "highlights_info": {
    "can_highlight_tweets": true,
    "highlighted_tweets": "482"
  },
  "user_seed_tweet_count": 0,
  "business_account": {},
  "creator_subscriptions_count": 3,
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
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"
    },
    "__typename": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "rest_id": {
      "type": "string"
    },
    "affiliates_highlighted_label": {
      "type": "object",
      "properties": {
        "label": {
          "type": "object",
          "properties": {
            "url": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "urlType": {
                  "type": "string"
                }
              }
            },
            "badge": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                }
              }
            },
            "description": {
              "type": "string"
            },
            "userLabelType": {
              "type": "string"
            },
            "userLabelDisplayType": {
              "type": "string"
            }
          }
        }
      }
    },
    "is_blue_verified": {
      "type": "boolean"
    },
    "profile_image_shape": {
      "type": "string"
    },
    "legacy": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string"
        },
        "default_profile": {
          "type": "boolean"
        },
        "default_profile_image": {
          "type": "boolean"
        },
        "description": {
          "type": "string"
        },
        "entities": {
          "type": "object",
          "properties": {
            "description": {
              "type": "object",
              "properties": {
                "urls": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "display_url": {
                        "type": "string"
                      },
                      "expanded_url": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "indices": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            },
            "url": {
              "type": "object",
              "properties": {
                "urls": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "display_url": {
                        "type": "string"
                      },
                      "expanded_url": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "indices": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "fast_followers_count": {
          "type": "integer"
        },
        "favourites_count": {
          "type": "integer"
        },
        "followers_count": {
          "type": "integer"
        },
        "friends_count": {
          "type": "integer"
        },
        "has_custom_timelines": {
          "type": "boolean"
        },
        "is_translator": {
          "type": "boolean"
        },
        "listed_count": {
          "type": "integer"
        },
        "location": {
          "type": "string"
        },
        "media_count": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "normal_followers_count": {
          "type": "integer"
        },
        "pinned_tweet_ids_str": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "possibly_sensitive": {
          "type": "boolean"
        },
        "profile_banner_url": {
          "type": "string"
        },
        "profile_image_url_https": {
          "type": "string"
        },
        "profile_interstitial_type": {
          "type": "string"
        },
        "screen_name": {
          "type": "string"
        },
        "statuses_count": {
          "type": "integer"
        },
        "translator_type": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        },
        "withheld_in_countries": {
          "type": "array"
        }
      }
    },
    "tipjar_settings": {
      "type": "object",
      "properties": {
        "is_enabled": {
          "type": "boolean"
        },
        "bandcamp_handle": {
          "type": "string"
        },
        "bitcoin_handle": {
          "type": "string"
        },
        "cash_app_handle": {
          "type": "string"
        },
        "ethereum_handle": {
          "type": "string"
        },
        "gofundme_handle": {
          "type": "string"
        },
        "patreon_handle": {
          "type": "string"
        },
        "pay_pal_handle": {
          "type": "string"
        },
        "venmo_handle": {
          "type": "string"
        }
      }
    },
    "legacy_extended_profile": {
      "type": "object",
      "properties": {}
    },
    "is_profile_translatable": {
      "type": "boolean"
    },
    "has_hidden_subscriptions_on_profile": {
      "type": "boolean"
    },
    "verification_info": {
      "type": "object",
      "properties": {
        "is_identity_verified": {
          "type": "boolean"
        },
        "reason": {
          "type": "object",
          "properties": {
            "description": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "entities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "from_index": {
                        "type": "integer"
                      },
                      "to_index": {
                        "type": "integer"
                      },
                      "ref": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "url_type": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "verified_since_msec": {
              "type": "string"
            }
          }
        }
      }
    },
    "highlights_info": {
      "type": "object",
      "properties": {
        "can_highlight_tweets": {
          "type": "boolean"
        },
        "highlighted_tweets": {
          "type": "string"
        }
      }
    },
    "user_seed_tweet_count": {
      "type": "integer"
    },
    "business_account": {
      "type": "object",
      "properties": {}
    },
    "creator_subscriptions_count": {
      "type": "integer"
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}