# Twitter Search Scraper

epctex/twitter-search-scraper

Scrape any keyword or hashtag from Twitter. Extract tweets, replies, favorites, retweets, and conversation threads without limit. Gather user-related information such as verification, location, profile image, friends, followers, following, and much more! Get everything with no limits on Twitter!!

## Pricing

$20.00/month + usage

## Rating

5.0 (7)

## Developer

epctex

### Actor stats

- **Total users**: 1K
- **Monthly active users**: 7
- **Issues response time**: 4.4 days
- **Last modified**: 18 hours ago

### Categories

- [Social media](https://apify.com/store/categories/social-media)

## Twitter Search Scraper API

Below, you can find a list of relevant HTTP API endpoints for calling the Twitter Search Scraper Actor. For this, you’ll need an Apify account. Replace <YOUR_API_TOKEN> in the URLs with your Apify API token, which you can find under [Integrations](https://console.apify.com/settings/integrations) in Apify Console.

### Run Actor

POST

```http

```

### Run Actor synchronously and get dataset items

POST

```http

```

### Get Actor

GET

```http

```

Actors can be used to scrape web pages, extract data, or automate browser tasks. Use the Twitter Search Scraper API programmatically via the Apify API.

## Example Bash Command

```bash
# Set API token
$API_TOKEN=<YOUR_API_TOKEN>

# Prepare Actor input
$cat > input.json << 'EOF'
<{
<  "startUrls": [\
<    "https://x.com/search?q=real%20madrid&src=typed_query"\
<  ],
<  "searchTerms": [\
<    "web scraping",\
<    "scraping from:apify"\
<  ],
<  "maxItems": 1000,
<  "sort": "Latest",
<  "tweetLanguage": "en",
<  "author": "apify",
<  "inReplyTo": "webexpo",
<  "mentioning": "elonmusk",
<  "geotaggedNear": "Los Angeles",
<  "withinRadius": "15km",
<  "geocode": "37.7764685,-122.4172004,10km",
<  "placeObjectId": "96683cc9126741d1",
<  "minimumRetweets": 5,
<  "minimumFavorites": 5,
<  "minimumReplies": 5,
<  "start": "2021-07-01",
<  "end": "2021-07-02",
<  "customMapFunction": "(object) => { return {...object} }"
<}
<EOF

# Run the Actor using an HTTP API
# See the full API reference at https://docs.apify.com/api/v2
$curl "https://api.apify.com/v2/acts/epctex~twitter-search-scraper/runs?token=$API_TOKEN" \
<  -X POST \
<  -d @input.json \
<  -H 'Content-Type: application/json'
```

You can start Twitter Search Scraper with the Apify API by sending an HTTP POST request to the [Run Actor](https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor) endpoint.
