Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

X / Twitter User Search

เอกสาร API
https://api.sandbase.ai/v1/api/twitter/search-users

Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.

ราคา
เริ่มต้นที่ $0.00054USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
Keyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts. Use twitter.search for posts.
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of accounts.
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `location`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

X / Twitter User Search API

Returns X (Twitter) accounts that match a keyword, like the People tab of X search. It needs one input, query, which can be a topic, a name, or a handle. Each account comes back with its bio, follower, following and post counts, and profile links.

Use cases

  • Build a lead list of accounts that talk about a topic, such as ai agents, and sort them by followers.
  • Find the account behind a brand or person name and get its numeric id and username.
  • Track new accounts in a niche by checking createdUtc across search results.
  • Collect bios and profile URLs to review which accounts claim to work on a given subject.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/search-users" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "ai agents"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesKeyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts
cursorstringNoOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of accounts.
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example location, and it is served only by a source that returns every one o

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "nextCursor": "cur_Vlh_zPr3gk8IXhV_RYndHg",
    "users": [
      {
        "avatarUrl": "https://pbs.twimg.com/profile_images/1878814517825572864/CjL1QsNr_normal.jpg",
        "bio": "The first #AIAgent web3 solution for Gaming & Engagement 🎮\n\nPlay #Gamety app: ht…",
        "canDm": null,
        "coverUrl": "https://pbs.twimg.com/profile_banners/1754796337399316480/1741867369",
        "createdUtc": 1707211049,
        "followers": 168259,
        "following": 106,
        "id": "1754796337399316480",
        "listedCount": null,
        "location": null,
        "name": "G-AGENTS AI💎",
        "posts": 1031
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.users[].idNumeric account ID as a string. Use it to identify the account in other calls.
data.users[].username / data.users[].nameusername is the handle without the @ sign. name is the display name.
data.users[].profileUrlLink to the account on x.com.
data.users[].bioProfile bio text. It can contain line breaks, hashtags, and links.
data.users[].followers / data.users[].following / data.users[].postsCounts of followers, accounts followed, and posts for the account.
data.users[].createdUtcAccount creation time as a Unix timestamp in seconds.
data.users[].verifiedtrue if the account is marked as verified.
data.users[].avatarUrl / data.users[].coverUrlImage URLs for the profile picture and the profile banner.
data.users[].location / data.users[].canDm / data.users[].listedCountOptional fields. They are null in this response. Pass them in requireFields to ask for a source that returns them.
data.nextCursorCursor for the next page of accounts.

Notes

  • For the next page, send the nextCursor value from the response as cursor with the same query.
  • requireFields accepts canDm, listedCount, and location. It applies to the first page only and can change which source serves the call and its price.
  • To search posts instead of accounts, use Twitter Search Timeline.
  • To get more detail on one account found here, call Twitter User Profile.

Pricing

Billed at the actual cost of each call, about $0.00054 for the request above. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
X (Twitter)เริ่มต้นที่ $0.00054 ต่อครั้งJSON
X (Twitter)เริ่มต้นที่ $0.00054 ต่อครั้งJSON
Twitterเริ่มต้นที่ $0.0006 ต่อครั้งAsync JSON
X (Twitter)เริ่มต้นที่ $0.0001 ต่อครั้งJSON
X (Twitter)เริ่มต้นที่ $0.0036 ต่อครั้งJSON
X (Twitter)เริ่มต้นที่ $0.00045 ต่อครั้งJSON

คู่มือ:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ X / Twitter User Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/twitter/search-users โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

X / Twitter User Search API ราคาเท่าไร?

เริ่มต้นที่ $0.00054 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

X / Twitter User Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: query (string). ตัวเลือก: cursor (string) และ requireFields (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

X / Twitter User Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ X (Twitter) ไหม?

ไม่จำเป็น X / Twitter User Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง X (Twitter) API แยกต่างหาก