Skip to content
onelayer.
All tools

Tool detail

glim.sh

Fetches a tweet with thread context by URL/id, or a user profile with recent tweets, from a single X/Twitter URL or id.

Categories: Social media

Use when

  • get a tweet and its reply thread by URL or id
  • fetch a user's recent tweets from their profile URL
  • pull quote tweets or replies for a specific tweet

Not for

  • not a general Twitter search - needs a specific tweet/profile ref

Inputs

POST JSON body: { ref: string (tweet URL/id or profile URL) } (required); cursor, include (replies|quotes), include_mentions, include_replies, expand_urls (optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 0,
      "maxLength": 500,
      "description": "Profile refs only: pagination cursor"
    },
    "expand_urls": {
      "type": "boolean",
      "description": "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_crawl(url) for targeted crawls instead.",
      "default": false
    },
    "include": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 4096,
        "enum": [
          "replies",
          "quotes"
        ]
      },
      "minItems": 0,
      "maxItems": 100,
      "description": "Tweet refs only: extra sections to include (replies, quotes)"
    },
    "include_mentions": {
      "type": "boolean",
      "description": "Profile refs only: include the mentions timeline",
      "default": false
    },
    "include_replies": {
      "type": "boolean",
      "description": "Profile refs only: include replies in the timeline",
      "default": false
    },
    "ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Tweet URL/id or profile URL. Tweet URLs including /i/status/<id> and bare numeric tweet ids return the tweet + thread; a profile URL (https://x.com/<handle>) returns the user + recent tweets."
    }
  },
  "required": [
    "ref"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://glim.sh/api/v1/twitter/get

Payment

Protocol
x402
Listed price
5000 raw units of USDC on Solana per call (decimals not provided, so exact USD amount unclear)
Payment method
exact
Network
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Asset
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://glim.sh/api/v1/twitter/get
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z