Skip to content
onelayer.
All tools

Tool detail

glim.sh

Searches tweets matching an advanced-operator query, optionally filtered by a date range and sorted by recency or engagement.

Categories: Social media

Use when

  • search Twitter/X for tweets matching operators like from: or min_faves:
  • pull recent or top tweets on a topic within a date range

Not for

  • not for crawling linked URLs by default — set expand_urls for that, at extra response size

Inputs

POST JSON body: query (string, required); optional cursor, sort (latest|top), start_date, end_date, expand_urls (bool, default false)

Admitted input schema

{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 0,
      "maxLength": 500,
      "description": "Pagination cursor"
    },
    "end_date": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$",
      "description": "Only tweets before this time. YYYY-MM-DD (inclusive through end of day UTC) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"
    },
    "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
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Search query with advanced operators"
    },
    "sort": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "latest",
        "top"
      ],
      "description": "Sort order: \"top\" (most engaged matching tweets) or \"latest\" (newest first). Default: \"top\"."
    },
    "start_date": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$",
      "description": "Only tweets on or after this time. YYYY-MM-DD (UTC midnight) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Endpoint

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

Payment

Protocol
x402
Listed price
0.005 USDC per call on Solana (per docs' settled examples; schema omits decimals)
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/search
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z