X Twitter Getusersbyusername

1.24 credits/call
ae_x_twitter_getusersbyusername

Get public profile information by username.

Social
1.24 credits/call

Pricing

1.24 credits/call
ConditionCharge
Each call1.24 credits/call

1.24 credits/call Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
usernamestringYes用户名,不包含@。 Username without @.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_twitter_getusersbyusername' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "username": "bangdream_en"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "affiliates": [],
    "avatar": "https://pbs.twimg.com/profile_images/2098055007845449728/0uFeeIaf_normal.jpg",
    "blue_verified": true,
    "id": "1859062489369243648",
    "name": "BanG Dream! Official EN",
    "status": "active"
  },
  "docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_user_profile_api_v1_twitter_web_fetch_user_profile_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "params": {
    "screen_name": "bangdream_en"
  }
}

This example shows part of the response. Copied content is valid JSON.

Guides using this tool

See how this tool fits into real workflows