{
  "item": [
    {
      "name": "Quick start (read-only)",
      "description": {
        "content": "Safe public profile, Tweet, and search requests for initial setup.",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Profile (ready to run)",
          "request": {
            "name": "By Username",
            "description": {
              "content": "Immediately runnable after setting tweetapiApiKey. Retrieves the public profile for username elonmusk.",
              "type": "text/markdown"
            },
            "url": {
              "path": [
                "tw-v2",
                "user",
                "by-username"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "username",
                  "value": "elonmusk",
                  "description": "(Required) platform username without @ symbol (e.g., 'sample_user_96991')"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Tweet Details (set tweetId first)",
          "request": {
            "name": "Details Conversation",
            "description": {
              "content": "Requires one value from you: run Search first, copy a returned Tweet ID, set the empty tweetId collection variable, and then run this request.",
              "type": "text/markdown"
            },
            "url": {
              "path": [
                "tw-v2",
                "tweet",
                "details"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "tweetId",
                  "value": "{{tweetId}}",
                  "description": "(Required) Unique tweet/post ID"
                },
                {
                  "disabled": true,
                  "key": "cursor",
                  "value": "NEXT_CURSOR",
                  "description": "Pagination cursor for fetching next page of results. Obtained from previous response."
                },
                {
                  "disabled": true,
                  "key": "sortBy",
                  "value": "Relevance",
                  "description": "Sort order for conversation replies (Relevance, Recency, Likes). Default: Relevance"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Search (ready to run)",
          "request": {
            "name": "Search",
            "description": {
              "content": "Immediately runnable after setting tweetapiApiKey. Searches Latest results for from:elonmusk. Copy a returned Tweet ID into the tweetId collection variable before running Tweet Details.",
              "type": "text/markdown"
            },
            "url": {
              "path": [
                "tw-v2",
                "search"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "query",
                  "value": "from:elonmusk",
                  "description": "(Required) Search query string. Supports advanced search operators."
                },
                {
                  "disabled": false,
                  "key": "type",
                  "value": "Latest",
                  "description": "(Required) Type of search results (Latest, Top, People, Photos, Videos)"
                },
                {
                  "disabled": true,
                  "key": "cursor",
                  "value": "NEXT_CURSOR",
                  "description": "Pagination cursor for fetching next page of results. Obtained from previous response."
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "auth": null
          },
          "response": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.tweetapi.com",
      "type": "string"
    },
    {
      "key": "tweetapiApiKey",
      "value": "",
      "type": "string"
    },
    {
      "key": "tweetId",
      "value": "",
      "type": "string",
      "description": "Run Search first, copy a returned Tweet ID, and set it here before running Tweet Details."
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{tweetapiApiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "info": {
    "name": "TweetAPI v2 Read-only Quick Start",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Generated from https://tweetapi.com/openapi-v2.json. Set the empty tweetapiApiKey variable first. Profile and Search are immediately runnable safe read-only requests. Run Search first, copy a returned Tweet ID into the empty tweetId variable, and then run Tweet Details. No scripts or automatic chaining are included. Not affiliated with X Corp."
  }
}
