> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Twitterapi: Tweets By Ids

> Hydrate multiple tweets from a list of tweet IDs. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Hydrate multiple tweets from a list of tweet IDs.

> [!NOTE]
>
> Tool ID: `twitterapi_tweets_by_ids`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'twitterapi_tweets_by_ids',
  {
    "tweet_ids": "tweet_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute twitterapi_tweets_by_ids --input '{
  "tweet_ids": "tweet_123"
}' --json
```

## Input reference

Get tweets by IDs.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.tweet_ids` | `string` | Yes | — | Comma-separated tweet IDs. Minimum length: 1. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Get tweets by IDs.",
    "properties": {
      "tweet_ids": {
        "type": "string",
        "description": "Comma-separated tweet IDs.",
        "minLength": 1
      }
    },
    "required": [
      "tweet_ids"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

The static output schema is not available. Run `deepline describe twitterapi_tweets_by_ids --json` for the live contract.

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.01` per pricing unit.

## Related documentation

* [Twitterapi provider guide](https://deepline.com/docs/providers/twitterapi/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.