Fetch Tweet or User
glim_twitter_getFetch a tweet or a user from one reference. A tweet URL (incl. handle-less /i/status/) returns the tweet with full thread context, parent, and optional replies/quotes; a profile URL (https://x.com/) returns the user with recent tweets. Prefer full URLs - if you only have a numeric id, pass it as a quoted string. Returns a compact human-readable view by default; pass format='json' for full structured data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Tweet URL or profile URL. A tweet URL (incl. /i/status/<id>) returns the tweet + thread; a profile URL (https://x.com/<handle>) returns the user + recent tweets. Prefer full URLs - if you only have a numeric id, pass it as a quoted string. | |
| cursor | No | Profile refs only: pagination cursor from next_cursor | |
| format | No | Output format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing. | text |
| include | No | Tweet refs only: also fetch 'replies' and/or 'quotes' | |
| expand_urls | No | When true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_fetch(url) for targeted crawls instead. | |
| include_replies | No | Profile refs only: include replies in the timeline | |
| include_mentions | No | Profile refs only: include the mentions timeline |