# Twitter 🐦 Jobs Scraper (`jupri/twitter-jobs`) Actor

💫 Scrape Twitter Jobs

- **URL**: https://apify.com/jupri/twitter-jobs.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Jobs, Social media
- **Stats:** 73 total users, 1 monthly users, 5.8% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## 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

## Welcome to Twitter Jobs Scraper

<img src="https://static5.depositphotos.com/1001046/514/v/450/depositphotos_5148743-stock-illustration-outline-illustration-of-sitting-cat.jpg" width="240"><img src="https://raw.githubusercontent.com/JupriGH/resources/main/twitter.svg" alt="description" title="title" width="120" height="120" />

### About Twitter.com

**Twitter** is an online [social media](https://en.wikipedia.org/wiki/Social_media "Social media") and [social networking service](https://en.wikipedia.org/wiki/Social_networking_service "Social networking service") owned and operated by American company [X Corp.](https://en.wikipedia.org/wiki/X_Corp. "X Corp."), the legal successor of [Twitter, Inc.](https://en.wikipedia.org/wiki/Twitter,_Inc. "Twitter, Inc.") Twitter users outside the United States are legally served by the Ireland-based Twitter International Unlimited Company, which makes these users subject to Irish and [European Union data protection laws](https://en.wikipedia.org/wiki/Data_Protection_Directive "Data Protection Directive")[\[9\]](https://en.wikipedia.org/wiki/Twitter#cite_note-irishtimes-twitterint-9)[\[10\]](https://en.wikipedia.org/wiki/Twitter#cite_note-10)

### About This Actor

⭐ Scrape Jobs opportunities from https://twitter.com/jobs

> *For complete scraping other Twitter Resources please use 🐦 [**Twitter X-Plorer**](https://apify.com/jupri/twitter-scraper) Actor.*

#### HTTP Cookies

Some function need **auth\_token** to work properly (required sign-in to Twitter.com).  When you receive log error something like below, then probably you need to supply parameters with ***auth\_token*** value.

```json
❌ Authorization: Denied by access control: unspecified reason
❌ HTTP error 404: Not Found
```

**Important Notes :**

- This is NOT your APIFY Token, instead a value from your browser cookie, named **auth\_token**.
- Use this only if necessary, as it have risk your account getting blocked by [@elonmusk](https://twitter.com/elonmusk).
- Your cookies is your SECRET. Please don't share it with someone else.
- The **auth\_token** value will always valid until you logged out from Twitter.com

To get ***auth\_token*** cookie value :

1. Login to Twitter.com
2. Open Chrome Developer Tools *(Ctrl + Shift + I)*
3. Open **Application** Tab
4. On left panel, go to: Storage -> Cookies -> https://twitter.com
5. Find cookie named **auth\_token** (40 characters string value).
6. Copy & Paste Here :

```yaml
{
	"query": "python software engineer",
	"token": "YOUR_TWITTER_AUTH_TOKEN"
}
```

![enter image description here](https://raw.githubusercontent.com/JupriGH/resources/main/tweety.png)

# Actor input Schema

## `query` (type: `string`):

Search Terms

## `token` (type: `string`):

<b>Share Your Cookies</b><br><i>\[REQUIRED: Since 1-July-2023]</i><br><br>Some function required your login cookie. Please use this only if necessary.<br><br><i>💡 <b>Notes:</b> this is not your APIFY token, but a value inside your browser cookie storage</i><br><br>Login to twitter account, search for cookie named <b>auth\_token</b> then copy & paste here.

## `limit` (type: `integer`):

Number of results

## `filters.jobs.location` (type: `string`):

No description

## `filters.jobs.location_type` (type: `array`):

No description

## `filters.jobs.seniority` (type: `array`):

No description

## `filters.jobs.employment` (type: `array`):

No description

## `filters.jobs.company` (type: `string`):

No description

## `dev_proxy_config` (type: `object`):

<b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>\<a href=https://scrapeops.io/app/register/main target=\_blank>ScrapeOps.IO</a></b><br><code>scrapeops://{api-key}</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_transform_enable` (type: `boolean`):

No description

## `dev_transform_fields` (type: `array`):

No description

## `dev_dataset_enable` (type: `boolean`):

No description

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_dataset_name` (type: `string`):

💡 <b>Use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## Actor input object example

```json
{
  "query": "python software engineer",
  "limit": 5
}
```

# 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 = {
    "query": "python software engineer",
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/twitter-jobs").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 = {
    "query": "python software engineer",
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/twitter-jobs").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "query": "python software engineer",
  "limit": 5
}' |
apify call jupri/twitter-jobs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jupri/twitter-jobs",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/7CfjzTMYEa0RetcFH/builds/M7IgiF1C5EXc6aP3k/openapi.json
