# Twitter — User Tweets

Get X User Tweets data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as handle, and retrieve structured data including returned credits charged field, returned credits remaining field, returned success field, returned legacy field, and returned rest id field for content research and account lookup, and integration reference.

Documentation: https://openany.si/x/x-scrapecreators-user-tweets/40e645db-d677-4150-86b6-3f6018abb51b/
API ID: 40e645db-d677-4150-86b6-3f6018abb51b
Provider: scrapecreators
Contract revision: 6
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/user-tweets
Page update time: 2026-12-03T02:50:47.543Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:50:46.557Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## X Twitter — User Tweets API

Retrieve tweets from a Twitter user's profile by handle with the X API. Provide handle in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `credits_charged` | Returned credits charged field |
| `credits_remaining` | Returned credits remaining field |
| `success` | Returned success field |
| `tweets[].legacy` | Returned legacy field |
| `tweets[].rest_id` | Returned rest id field |
| `tweets[].source` | Returned source field |
| `tweets[].url` | Returned URL |
| `tweets[].views` | Returned views field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Twitter — User Tweets request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "handle": {
          "type": "string",
          "description": "Twitter handle"
        },
        "trim": {
          "type": "boolean",
          "description": "Set to true for a trimmed down version of the response"
        }
      },
      "required": [
        "handle"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "success": {
      "type": "boolean"
    },
    "tweets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "legacy": {
            "type": "object",
            "properties": {
              "bookmark_count": {
                "type": "integer"
              },
              "bookmarked": {
                "type": "boolean"
              },
              "conversation_id_str": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "display_text_range": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "entities": {
                "type": "object",
                "properties": {
                  "hashtags": {
                    "type": "array",
                    "items": {}
                  },
                  "symbols": {
                    "type": "array",
                    "items": {}
                  },
                  "timestamps": {
                    "type": "array",
                    "items": {}
                  },
                  "urls": {
                    "type": "array",
                    "items": {}
                  },
                  "user_mentions": {
                    "type": "array",
                    "items": {}
                  }
                }
              },
              "favorite_count": {
                "type": "integer"
              },
              "favorited": {
                "type": "boolean"
              },
              "full_text": {
                "type": "string"
              },
              "id_str": {
                "type": "string"
              },
              "is_quote_status": {
                "type": "boolean"
              },
              "lang": {
                "type": "string"
              },
              "quote_count": {
                "type": "integer"
              },
              "reply_count": {
                "type": "integer"
              },
              "retweet_count": {
                "type": "integer"
              },
              "retweeted": {
                "type": "boolean"
              },
              "user_id_str": {
                "type": "string"
              }
            }
          },
          "rest_id": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "views": {
            "type": "object",
            "properties": {
              "count": {
                "type": "string"
              },
              "state": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/user-tweets?handle=levelsio' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "credits_charged": 1,
  "credits_remaining": 1000000,
  "success": true,
  "tweets": [
    {
      "legacy": {
        "bookmark_count": 2634,
        "bookmarked": false,
        "conversation_id_str": "1834021269559501236",
        "created_at": "Thu Sep 12 00:08:39 +0000 2024",
        "display_text_range": [
          0
        ],
        "entities": {
          "hashtags": [],
          "symbols": [],
          "timestamps": [],
          "urls": [],
          "user_mentions": []
        },
        "favorite_count": 129276,
        "favorited": false,
        "full_text": "Wife: “What did your teacher remember about September 11th?”\n\nNine-year-old: “She was only four then, she doesn’t remember it at all.”",
        "id_str": "1834021269559501236",
        "is_quote_status": false,
        "lang": "en",
        "quote_count": 674,
        "reply_count": 388,
        "retweet_count": 2901,
        "retweeted": false,
        "user_id_str": "221838349"
      },
      "rest_id": "1834021269559501236",
      "source": "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
      "url": "https://x.com/Austen/status/1935730646267158797",
      "views": {
        "count": "4710824",
        "state": "EnabledWithCount"
      }
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide handle in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### What type does trim use?
trim uses the JSON type boolean in query. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- scrapecreators: https://openany.si/x/x-scrapecreators-user-tweets/40e645db-d677-4150-86b6-3f6018abb51b/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
