# OSINT Scraper (`epctex/osint-scraper`) Actor

Harness the power of OSINT data with our advanced OSINT Scraper. Discover keywords and leaked information from platforms like Ideone, Dumpz, Github Gist, Pastebin, Pasteorg and Textbin. You can specify search terms, customize and retrieve OSINT data out of the box.

- **URL**: https://apify.com/epctex/osint-scraper.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Categories:** Automation
- **Features:** Limited permissions
- **Stats:** 1,471 total users, 21 monthly users, 88.0% runs succeeded, 44 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.60 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Actor - OSINT Scraper

### OSINT scraper

This actor should help you to retrieve sensitive data from many websites which might leak the data.

The OSINT data scraper supports the following features:

- Search any keyword - You can search any keyword you would like to have and get the results

- Scrape multiple websites - Scrape Codepad, Dumpz, Github Gist, Ideone, Pastebin, Pasteorg, Textbin and many more websites.

- Customizable - Create a custom scraping function that will run on the results within your needs.

### Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from [here](https://github.com/epctex-support/osint-scraper/issues).

### Input Parameters

The input of this scraper should be JSON containing the list of pages on OSINT that should be visited. Possible fields are:

- `searchKeywords`: (Required) (String) Keyword array that you want to search on the websites.

- `codepad`: (Optional) (Boolean) This will enable the `codepad` module which will go to scrape http://codepad.org/.

- `githubgist`: (Optional) (Boolean) This will enable the `Github Gist` module which will go to scrape https://gist.github.com/.

- `ideone`: (Optional) (Boolean) This will enable the `ideone` module which will go to scrape https://ideone.com/.

- `pastebin`: (Optional) (Boolean) This will enable the `pastebin` module which will go to scrape https://pastebin.com/.

- `pasteorg`: (Optional) (Boolean) This will enable the `pasteorg` module which will go to scrape https://www.paste.org/.

- `textbin`: (Optional) (Boolean) This will enable the `textbin` module which will go to scrape https://textbin.net/.

- `proxy`: (Required) (Proxy Object) Proxy configuration.

- `extendOutputFunction`: (Optional) (String) Function that takes a JQuery handle ($) as an argument and returns an object with data.

This solution requires the use of **Proxy servers**, either your own proxy servers or you can use [Apify Proxy](https://www.apify.com/docs/proxy).

#### Tip

When you want to have a scrape only a couple of modules, you can set `true` on the module flags and the actor will initiate to scrape only these websites.

If you want to scrape Pastebin, please try to use US-based proxies because Pastebin is restricted in many countries.

#### Compute Unit Consumption

The actor is optimized to run blazing fast and scrape many listings as possible. Therefore, it forefronts all listing detail requests. If the actor doesn't block very often run consumes ~0.01-0.03 compute units per 100 pages.

#### OSINT Scraper Input example

```json
{
  "searchKeywords":[
    "@gmail",
    "db_pass"
  ],
  "codepad": true,
  "githubgist": true,
  "ideone": true,
  "pastebin": true,
  "pasteorg": true,
  "textbin": true,
  "proxy": {
    "useApifyProxy": true
  }
}

```

### During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified.
When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

### OSINT Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this OSINT actor.

### Scraped Output

The structure of each item in OSINT Scraper looks like this:

#### Item Detail

```json
{
  "keyword": "a",
	"url": "https://gist.github.com/trin94/3381395adc8b2c3fea81a38b9a385369"
}
```

### Contact

Please visit us through [epctex.com](https://epctex.com) to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in [epctex.com](https://epctex.com). In need of support? <business@epctex.com> is at your service.

# Actor input Schema

## `searchKeywords` (type: `array`):

Search keywords

## `codepad` (type: `boolean`):

Enable scraping http://codepad.org/

## `githubgist` (type: `boolean`):

Enable scraping https://gist.github.com/

## `ideone` (type: `boolean`):

Enable scraping https://ideone.com/

## `pastebin` (type: `boolean`):

Enable scraping https://pastebin.com/

## `pasteorg` (type: `boolean`):

Enable scraping https://www.paste.org/

## `textbin` (type: `boolean`):

Enable scraping https://textbin.net/

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

Maximum number of items that you want as output. Default is all

## `extendOutputFunction` (type: `string`):

Function that takes a JQuery handle ($) as argument and returns data that will be merged with the default output

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "searchKeywords": [
    "a"
  ],
  "codepad": true,
  "githubgist": true,
  "ideone": true,
  "pastebin": true,
  "pasteorg": true,
  "textbin": true,
  "maxItems": 20,
  "extendOutputFunction": "($) => { return {} }",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchKeywords": [
        "a"
    ],
    "maxItems": 20,
    "extendOutputFunction": ($) => { return {} },
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/osint-scraper").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 = {
    "searchKeywords": ["a"],
    "maxItems": 20,
    "extendOutputFunction": "($) => { return {} }",
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/osint-scraper").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 '{
  "searchKeywords": [
    "a"
  ],
  "maxItems": 20,
  "extendOutputFunction": "($) => { return {} }",
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call epctex/osint-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,epctex/osint-scraper"
        }
    }
}
```

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/LjAupwhUerVBOrel1/builds/w1gQawYeg6mr9Zajl/openapi.json
