fetchproof.

/v1/twitter/tweet

GET

Tweet Details

Get detailed information about a specific tweet including engagement

Credit cost

Default: 1 credit

How charges are determined

Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.

A call that fails costs 0 credits. A result served from cache costs 0 credits.

`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.

A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).

A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.

Cache supportUse a cached response this old or newer for 0 credits. If none is available, fetch live at the endpoint’s normal price.
PaginationNo explicit pagination metadata in the published contract. Consult the parameters and response fields below.

Parameters

NameLocation / requiredSchema
url

Tweet URL

query / required

string

trim

Set true for a trimmed response.

query / optional

boolean

cache_max_age

Use a cached response this old or newer for 0 credits. If none is available, fetch live at the endpoint’s normal price.

query / optional

string

Allowed values ["1d","3d","7d","14d","30d"]

Request examples

Replace placeholder values and supply your own API key. For operations with a request body, populate the body using the schema above.

cURL
curl --request GET 'https://api.fetchproof.com/v1/twitter/tweet?url=YOUR_URL' \
  --header 'x-api-key: YOUR_API_KEY'
JavaScript
const response = await fetch("https://api.fetchproof.com/v1/twitter/tweet?url=YOUR_URL", {
  method: 'GET',
  headers: { 'x-api-key': process.env.FETCHPROOF_API_KEY }
});
console.log(await response.text());
Python
import os
import requests

response = requests.get("https://api.fetchproof.com/v1/twitter/tweet?url=YOUR_URL",
    headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]})
print(response.text)

Responses

200Success. Envelope: success / credits_remaining / credits_charged.

application/json

object

successrequired

boolean

credits_remainingrequired

integer

credits_chargedrequired

integer

__typenameoptional

string

rest_idrequired

string

coreoptional

object

user_resultsrequired

object

resultrequired

object

__typenamerequired

string

idrequired

string

rest_idrequired

string

affiliates_highlighted_labelrequired

object

is_blue_verifiedrequired

boolean

profile_image_shaperequired

string

legacyrequired

object

created_atrequired

string

default_profilerequired

boolean

default_profile_imagerequired

boolean

descriptionrequired

string

entitiesrequired

object

descriptionrequired

object

urlsrequired

array

Array items

object

display_urlrequired

string

expanded_urlrequired

string

urlrequired

string

indicesrequired

array

Array items

integer

urlrequired

object

urlsrequired

array

Array items

object

display_urlrequired

string

expanded_urlrequired

string

urlrequired

string

indicesrequired

array

Array items

integer

fast_followers_countrequired

integer

favourites_countrequired

integer

followers_countrequired

integer

friends_countrequired

integer

has_custom_timelinesrequired

boolean

is_translatorrequired

boolean

listed_countrequired

integer

locationrequired

string

media_countrequired

integer

namerequired

string

normal_followers_countrequired

integer

pinned_tweet_ids_strrequired

array

Array items

string

possibly_sensitiverequired

boolean

profile_banner_urlrequired

string

profile_image_url_httpsrequired

string

profile_interstitial_typerequired

string

screen_namerequired

string

statuses_countrequired

integer

translator_typerequired

string

urlrequired

string

verifiedrequired

boolean

withheld_in_countriesrequired

array

professionalrequired

object

rest_idrequired

string

professional_typerequired

string

categoryrequired

array

tipjar_settingsrequired

object

is_enabledrequired

boolean

bandcamp_handlerequired

string

bitcoin_handlerequired

string

cash_app_handlerequired

string

ethereum_handlerequired

string

gofundme_handlerequired

string

patreon_handlerequired

string

pay_pal_handlerequired

string

venmo_handlerequired

string

unmention_dataoptional

object

edit_controloptional

object

edit_tweet_idsrequired

array

Array items

string

editable_until_msecsrequired

string

is_edit_eligiblerequired

boolean

edits_remainingrequired

string

is_translatableoptional

boolean

viewsrequired

object

countrequired

string

staterequired

string

sourcerequired

string

legacyrequired

object

bookmark_countrequired

integer

bookmarkedrequired

boolean

created_atrequired

string

conversation_id_strrequired

string

display_text_rangerequired

array

Array items

integer

entitiesrequired

object

hashtagsrequired

array

symbolsrequired

array

timestampsrequired

array

urlsrequired

array

Array items

object

display_urlrequired

string

expanded_urlrequired

string

urlrequired

string

indicesrequired

array

Array items

integer

user_mentionsrequired

array

mediaoptional

array

Array items

object

display_urlrequired

string

expanded_urlrequired

string

id_strrequired

string

indicesrequired

array

Array items

integer

media_keyrequired

string

media_url_httpsrequired

string

typerequired

string

urlrequired

string

ext_media_availabilityrequired

object

statusrequired

string

allow_download_statusrequired

object

allow_downloadrequired

boolean

media_resultsrequired

object

resultrequired

object

media_keyrequired

string

favorite_countrequired

integer

favoritedrequired

boolean

full_textrequired

string

is_quote_statusrequired

boolean

langrequired

string

possibly_sensitiverequired

boolean

possibly_sensitive_editablerequired

boolean

quote_countrequired

integer

reply_countrequired

integer

retweet_countrequired

integer

retweetedrequired

boolean

user_id_strrequired

string

id_strrequired

string

extended_entitiesoptional

object

mediarequired

array

Array items

object

display_urlrequired

string

expanded_urlrequired

string

id_strrequired

string

indicesrequired

array

Array items

integer

media_keyrequired

string

media_url_httpsrequired

string

typerequired

string

urlrequired

string

ext_media_availabilityrequired

object

statusrequired

string

allow_download_statusrequired

object

allow_downloadrequired

boolean

media_resultsrequired

object

resultrequired

object

media_keyrequired

string

cachedoptional

boolean

cached_atoptional

string

{
  "format": "date-time"
}
401Invalid or missing x-api-key
402No credits remaining
403Upstream denied (age gate, audience controls)
404Resource or endpoint not found
429Rate limited