# hashtag for cookie (`fastcrawler/hashtag-for-cookie`) Actor

- **URL**: https://apify.com/fastcrawler/hashtag-for-cookie.md
- **Developed by:** [fastcrawler](https://apify.com/fastcrawler) (community)
- **Categories:** AI, Agents, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$12.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### Twitter Hashtag Scraper: Support Sentiment & Tone Analyzer 2025

Get 1,000 results for just $0.01! Discover sentiment and tone insights while scraping hashtags effortlessly! The Twitter Hashtag Sentiment & Tone Analyzer is your ultimate solution for fast, accurate, and affordable Twitter data extraction. Perfect for marketers, researchers, and social media analysts, this tool helps you unlock valuable insights in no time.

Key Features:

1. Extract hashtag data quickly and efficiently.

2. Analyze sentiment and tone for smarter insights.

3. Apply advanced filters for precise targeting.

4. Affordable, high-speed, and productivity-focused.

**Don’t miss out—supercharge your hashtag analysis with the best Twitter scraper available**

### Contact and Feature Requests

- If you need customized features or have specific requirements
- support for second-level tweet monitoring
- Real-time username change monitoring
- real-time follow activity monitoring, feel free to contact me
- If you need any sort of support, please send an email to fastcrawler9@gmail.com | [tg](https://t.me/+MUMR3PKOoVVjNzE9) | [discord](https://discord.gg/s4jyupzaWu)

### 💡 Related scrapers

[Twitter comments scraper](https://apify.com/fastcrawler/twitter-x-reply-comment-scraper-support-sentiment-tone-analyzer) | [Twitter Cashtag Scraper: Stock & Crypto & Sentiment Analysis](https://apify.com/fastcrawler/twitter-cashtag-scraper-stock-crypto-sentiment-analysis) | [stock-crypto-kol-tracker-discover-top-twitter-influencers](https://apify.com/fastcrawler/stock-crypto-kol-tracker-discover-top-twitter-influencers) | [Other useful scrapers](https://apify.com/fastcrawler)

### Cost

![Hashtag Cost](https://1-usd-promotion.com/_next/image?url=%2Fimages%2FhashtagCost.webp\&w=828\&q=75)

### Input Parameters

| Field | Type     | Description          |
|----|----------|---------------|
| Hashtag   | string   | a hashtag,like #btc   |
| sentimentAnalysis   | boolean   | Analyze the provided tweet and identify the primary \n\n **tone** (Positive, Negative, Neutral, Humorous, Sarcastic, Enthusiastic, Angry, Informative) \n\n **sentiment** (Positive, Negative, Neutral). \n\n **Note**: The analysis may take longer when checked.|
| Start Time   | string   | Specify the datetime (yyyy-MM-dd\_HH:mm:ss\_UTC),Returns tweets sent after the given date.   |
| End Time   | string   | Specify the datetime (yyyy-MM-dd\_HH:mm:ss\_UTC),Returns tweets sent before the given date.   |
| Sort By   | string   | Sorts search results by the given option.   |
| Maximum number of items on output   | int   | Maximum number of items that you want as output.   |
| Minimum retweets   | int   | Returns tweets with at least the given number of retweets.   |
| Minimum Likes   | int   | Returns tweets with at least the given number of Likes.   |
| Minimum Replies   | int   | Returns tweets with at least the given number of replies.   |
| Only verified users   | int   | If checked then returns tweets by users who are verified.   |
| Only Twitter Blue   | int   | If checked then returns tweets by users who are Twitter Blue subscribers.   |
| lang   | string   | lang , eg： en   |

### Output Example

```
{
    "type": "tweet",
    "id": 1882246784816394800,
    "viewCount": null,
    "url": "https://x.com/PHall20069/status/1882246784816394744",
    "text": "Altseason starts now.\n#BTC #ETH #SOL #Memecoin #Trump #Melania #Bitlayer #Success #Bitcoin #Crypto #Altseanson\nhttps://t.co/c638lLGnC0 https://t.co/r1eX99mpDs",
    "isQuote": false,
    "isRetweet": false,
    "retweetCount": 0,
    "replyCount": 0,
    "likeCount": 0,
    "quoteCount": 0,
    "createdAt": "2025-01-23 01:59:38+00:00",
    "lang": "en",
    "bookmarkCount": 0,
    "isReply": false,
    "source": "Twitter Web App",
    "author": {
        "type": "user",
        "username": "PHall20069",
        "url": "https://x.com/PHall20069",
        "id": 1844650977133199400,
        "name": "Philip Hall",
        "isVerified": false,
        "isBlueVerified": false,
        "verifiedType": null,
        "profilePicture": "https://pbs.twimg.com/profile_images/1844651128459493376/cY6vaRzx_normal.jpg",
        "coverPicture": null,
        "description": "",
        "location": "",
        "followers": 12,
        "following": 772,
        "protected": null,
        "createdAt": "2024-10-11 08:07:32+00:00",
        "favouritesCount": 592,
        "mediaCount": 143,
        "statusesCount": 544,
        "listedCount": 0
    },
    "quote": null,
    "retweetedTweet": null,
    "media": "Media(photos=[MediaPhoto(url='https://pbs.twimg.com/media/Gh8VcWlaoAA1Cfc.jpg')], videos=[], animated=[])",
    "cashtags": [],
    "hashtags": [
        "BTC",
        "ETH",
        "SOL",
        "Memecoin",
        "Trump",
        "Melania",
        "Bitlayer",
        "Success",
        "Bitcoin",
        "Crypto",
        "Altseanson"
    ],
    "links": [
        "TextLink(url='https://tokenpikachu.com/', text='tokenpikachu.com', tcourl='https://t.co/c638lLGnC0')"
    ],
    "conversationId": 1882246784816394800,
    "card": null,
    "coordinates": null,
    "mentionedUsers": [],
    "tone": "Enthusiastic",
    "sentiment": "Positive"
}
```

# Actor input Schema

## `cookies` (type: `array`):

Cookies are used to authorize the actor with twitter

You can input multiple cookies, and when one cookie rate limit is set, it will automatically switch to another cookie to continue to capture data.

Follow these steps to get the cookies:

1. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension
2. Login to your twitter account
3. Click on the extension and Export As 'Headers String' and export the twitter cookies
4. Paste the copied contents here.

[how-to-get-twitter-cookie](https://1-usd-promotion.com/how-to-get-twitter-cookie)

## `hashtag` (type: `string`):

A hashtag ,like #btc

## `sentimentAnalysis` (type: `boolean`):

Analyze the provided tweet and identify the primary

**tone** (Positive, Negative, Neutral, Humorous, Sarcastic, Enthusiastic, Angry, Informative)

**sentiment** (Positive, Negative, Neutral).

**Note**: The analysis may take longer when checked.

## `startTime` (type: `string`):

Specify the datetime (yyyy-MM-dd\_HH:mm:ss\_UTC，2024-10-20\_23:59:59\_UTC),Returns tweets sent after the given date.

## `endTime` (type: `string`):

Specify the datetime (yyyy-MM-dd\_HH:mm:ss\_UTC，2024-10-20\_23:59:59\_UTC),Returns tweets sent before the given date.

## `sortBy` (type: `string`):

Sorts search results by the given option.

## `maxItems` (type: `integer`):

Maximum number of items that you want as output.

## `minRetweets` (type: `integer`):

Returns tweets with at least the given number of retweets.

## `minLikes` (type: `integer`):

Returns tweets with at least the given number of Likes.

## `minReplies` (type: `integer`):

Returns tweets with at least the given number of replies.

## `lang` (type: `string`):

lang

## `onlyVerifiedUsers` (type: `boolean`):

If checked then returns tweets by users who are verified.

## `onlyBuleVerifiedUsers` (type: `boolean`):

If checked then returns tweets by users who are Twitter Blue subscribers.

## Actor input object example

```json
{
  "cookies": [
    "your cookie"
  ],
  "hashtag": "btc",
  "sortBy": "Latest",
  "maxItems": 10,
  "minRetweets": 0,
  "minLikes": 0,
  "minReplies": 0
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cookies": [
        "your cookie"
    ],
    "hashtag": "btc",
    "sentimentAnalysis": false,
    "sortBy": "Latest",
    "onlyVerifiedUsers": false,
    "onlyBuleVerifiedUsers": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastcrawler/hashtag-for-cookie").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "cookies": ["your cookie"],
    "hashtag": "btc",
    "sentimentAnalysis": False,
    "sortBy": "Latest",
    "onlyVerifiedUsers": False,
    "onlyBuleVerifiedUsers": False,
}

# Run the Actor and wait for it to finish
run = client.actor("fastcrawler/hashtag-for-cookie").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cookies": [
    "your cookie"
  ],
  "hashtag": "btc",
  "sentimentAnalysis": false,
  "sortBy": "Latest",
  "onlyVerifiedUsers": false,
  "onlyBuleVerifiedUsers": false
}' |
apify call fastcrawler/hashtag-for-cookie --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fastcrawler/hashtag-for-cookie"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lfaaTeDllmxq3hHDV/builds/raE19evtITN0g1b8E/openapi.json
