Skip to main content
GET
/
v1
/
twitter
/
top_posts
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/twitter/top_posts?type=Likes&country=ALL&period=Monthly' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "code": 0,
  "message": "success",
  "data": {
    "timeline": [],
    "next_cursor": null
  },
  "requestId": "1f1a3c4a-8f50-4aa9-9e2b-9526fbc060db"
}

Documentation Index

Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

πŸͺ™1 creditper request

Copy for AI

πŸ€– Why Code When AI Can Do It For You?

Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.

Authorizations

Authorization
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx Get your API key from the Dashboard.

Query Parameters

type
enum<string>
default:Likes
required
Available options:
Likes,
Replies,
Quotes,
Bookmarks,
Shares,
VideoQuality Views
country
enum<string>
default:ALL
required
Available options:
ALL,
USA,
FRA,
AFG,
ALB,
DZA,
AND,
AGO,
ATG,
ARG,
ARM,
AUS,
AUT,
AZE,
BHS,
BHR,
BGD,
BRB,
BLR,
BEL,
BLZ,
BEN,
BTN,
BOL,
BIH,
BWA,
BRA,
BRN,
BGR,
BFA,
BDI,
KHM,
CMR,
CAN,
CPV,
CAF,
TCD,
CHL,
CHN,
COL,
COM,
COG,
CRI,
CIV,
HRV,
CUB,
CYP,
CZE,
DNK,
DJI,
DMA,
DOM,
ECU,
EGY,
SLV,
GNQ,
ERI,
EST,
SWZ,
ETH,
FJI,
FIN,
GAB,
GMB,
GEO,
DEU,
GHA,
GRC,
GRD,
GTM,
GIN,
GNB,
GUY,
HTI,
HND,
HUN,
ISL,
IND,
IDN,
IRN,
IRQ,
IRL,
ISR,
ITA,
JAM,
JPN,
JOR,
KAZ,
KEN,
KIR,
KWT,
KGZ,
LAO,
LVA,
LBN,
LSO,
LBR,
LBY,
LIE,
LTU,
LUX,
MDG,
MWI,
MYS,
MDV,
MLI,
MLT,
MHL,
MRT,
MUS,
MEX,
FSM,
MDA,
MCO,
MNG,
MNE,
MAR,
MOZ,
MMR,
NAM,
NRU,
NPL,
NLD,
NZL,
NIC,
NER,
NGA,
MKD,
NOR,
OMN,
PAK,
PLW,
PAN,
PNG,
PRY,
PER,
PHL,
POL,
PRT,
QAT,
ROU,
RUS,
RWA,
KNA,
LCA,
VCT,
WSM,
SMR,
STP,
SAU,
SEN,
SRB,
SYC,
SLE,
SGP,
SVK,
SVN,
SLB,
SOM,
ZAF,
SSD,
ESP,
LKA,
SDN,
SUR,
SWE,
CHE,
SYR,
TJK,
TZA,
THA,
TLS,
TGO,
TON,
TTO,
TUN,
TUR,
TKM,
TUV,
UGA,
UKR,
ARE,
GBR,
URY,
UZB,
VUT,
VEN,
VNM,
YEM,
ZMB,
ZWE
period
enum<string>
default:Daily
required
Available options:
Daily,
Weekly,
Monthly

Response

The response is of type object.