{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan X (Twitter) Scraper | Tweets, Trends & Volume",
    "description": "Japan Twitter (X) scraper without login or X API: Japanese tweets by keyword, hashtag or account with likes, reposts and media, tweet volume over time, positive and negative share, and Japan trends right now, via Yahoo!リアルタイム検索.",
    "version": "0.1",
    "x-build-id": "MPLGNYu0DNLCMDmbN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/monkey.d.scraping~yahoo-realtime-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-monkey.d.scraping-yahoo-realtime-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/monkey.d.scraping~yahoo-realtime-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-monkey.d.scraping-yahoo-realtime-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/monkey.d.scraping~yahoo-realtime-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-monkey.d.scraping-yahoo-realtime-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words, brand names, hashtags or phrases to search in public X (Twitter) posts, as on Yahoo! リアルタイム検索. Japanese or English, one per line, up to 50 per run. A brand typed in English also finds its Japanese spelling (dyson finds ダイソン). You can use #hashtag, @mention, \"exact phrase\", -exclude and URL:example.com.",
            "items": {
              "type": "string"
            }
          },
          "accounts": {
            "title": "X accounts",
            "type": "array",
            "description": "X (Twitter) account names or profile links to collect the newest posts from, one per line, up to 50. For example UNIQLO_JP or https://x.com/UNIQLO_JP.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Posts per keyword or account",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of posts to collect for each keyword and each account. Each post is one dataset row and one charge.",
            "default": 100
          },
          "startDate": {
            "title": "From date",
            "pattern": "^\\s*([+-]?\\s*\\d+\\s*([Mm]inute|[Hh]our|[Dd]ay|[Ww]eek|[Mm]onth|[Yy]ear)s?(\\s+ago)?|\\d{4}-\\d\\d-\\d\\d([T ]\\d\\d:\\d\\d(:\\d\\d)?)?)\\s*$",
            "type": "string",
            "description": "Only posts published on or after this moment: a date (2026-01-31), a date and time in Japan time (2026-01-31T18:00), or a period back from now such as 6 hours, 7 days or 2 weeks. Posts of about the last 30 days are searchable. Leave empty for no lower limit."
          },
          "endDate": {
            "title": "To date",
            "pattern": "^\\s*([+-]?\\s*\\d+\\s*([Mm]inute|[Hh]our|[Dd]ay|[Ww]eek|[Mm]onth|[Yy]ear)s?(\\s+ago)?|\\d{4}-\\d\\d-\\d\\d([T ]\\d\\d:\\d\\d(:\\d\\d)?)?)\\s*$",
            "type": "string",
            "description": "Only posts published on or before this moment: a date (the whole day is included), a date and time in Japan time, or a period such as 1 hour. Leave empty for now."
          },
          "includeVolume": {
            "title": "Post volume and sentiment for each keyword",
            "type": "boolean",
            "description": "Adds one row per keyword with how many posts mentioned it over time (the series behind the chart on Yahoo! リアルタイム検索), the total, the peak and the positive and negative share. One extra row and one charge per keyword.",
            "default": true
          },
          "includeTrends": {
            "title": "Trending words in Japan now",
            "type": "boolean",
            "description": "Adds the words trending right now on X in Japan, in rank order, with post count, genre, related words and positive and negative share. About 20 rows. Works with or without keywords.",
            "default": false
          },
          "onlyNewPosts": {
            "title": "Only posts not delivered before",
            "type": "boolean",
            "description": "For scheduled monitoring: each run returns only posts that earlier runs of the same search did not return, so you never pay twice for the same post. The list of delivered posts is kept in a key-value store of your account named yahoo-realtime-search-new-posts; each saved task keeps its own list.",
            "default": false
          },
          "sortBy": {
            "title": "Results order",
            "enum": [
              "latest",
              "popular"
            ],
            "type": "string",
            "description": "Latest returns the newest matching posts first. Popular returns the posts with the most reactions (話題のポスト), up to 40 for each day of the period.",
            "default": "latest"
          },
          "mediaType": {
            "title": "Posts with media",
            "enum": [
              "all",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Keep every post, or only posts with images, or only posts with video.",
            "default": "all"
          },
          "exactMatch": {
            "title": "Exact word only",
            "type": "boolean",
            "description": "On: only posts containing the keyword exactly as typed. Off: also posts with other spellings of the same name, for example the katakana form of a brand typed in English. Keywords that already use quotes or other search operators are left as typed.",
            "default": false
          },
          "volumePeriod": {
            "title": "Volume period",
            "enum": [
              "24hours",
              "7days",
              "30days"
            ],
            "type": "string",
            "description": "Period and step of the post volume series of each keyword.",
            "default": "30days"
          },
          "includeTrendDigests": {
            "title": "Topic digests (話題のまとめ)",
            "type": "boolean",
            "description": "Adds the topic digests of Yahoo! リアルタイム検索: for each topic people are posting about, a title, a short summary in Japanese, post count, related themes and positive and negative share. Up to 100 rows.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}