# Telegram Bulk Activity Checker — TG Validator (`tgvalidator/tgvalidator-telegram-activity-checker`) Actor

Check registration, user IDs, usernames and last-seen activity for phone lists. Resume bulk tasks with your TG Validator key.

- **URL**: https://apify.com/tgvalidator/tgvalidator-telegram-activity-checker.md
- **Developed by:** [TgValidator](https://apify.com/tgvalidator) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## Telegram Bulk Activity Checker — TG Validator

Review contact-list freshness using the available Telegram last-seen signal. This Actor connects Apify to [TG Validator](https://tgvalidator.com/) using **your own API key**.

**Get started:** [Create a TG Validator account](https://tgvalidator.com/register), create an API key in Settings, and check [current provider pricing](https://tgvalidator.com/pricing). TG Validator balance and Apify runtime costs are separate.

### Supported products

- [tg_active_batch product details](https://tgvalidator.com/products/tg_active_batch) · [Official API reference](https://tgvalidator.com/api-docs#b-tg_active_batch)

### What it returns

Provider fields: **registered, uid, username, activedays**. Results describe the provider's observation at the time of checking. They do not prove identity, consent, message deliverability, or permission to contact someone.

The Apify dataset contains **one task summary**, with taskId, serviceType, status, resultUrl, country, total, successCount and failureCount. Individual phone-number results are in the provider's downloadable file, not automatically imported into the Apify dataset. Open resultUrl when the task status is success. Counts and the download link can be null while processing.

### Run a new bulk task

1. Register at [TG Validator](https://tgvalidator.com/register), obtain your key, and ensure sufficient balance.
2. Enter the key into the encrypted apiKey field.
3. Paste 1,000–500,000 unique numbers into numbers, one number per line, with country codes. The Actor creates and uploads a TXT file; it does not accept a remote file URL.
4. Set country to a two-letter uppercase ISO code such as US. Use a single-country list. The provider may exclude numbers belonging to another country.
5. Choose the check type if offered, set maxWaitSecs, and start.
6. Download the original file through resultUrl, or copy taskId to resume later.

Empty lines are removed and duplicate numbers are checked once. Malformed numbers stop submission. No header, commas, extra columns or formatting punctuation are supported. The provider still applies its own country, validity, quota and balance rules.

### Resume and avoid duplicate submissions

Set apiKey and taskId to inspect an existing task. numbers and country are not required for resume. Polling uses GET and does not create a new paid task. The task must be a product supported by this Actor.

Polls are at least 30 seconds apart. maxWaitSecs defaults to 600 and allows 0–3600. A run may finish successfully while the provider task remains processing; this is a submitted task, not completed number checking. Provider work continues after the Actor exits.

The Actor saves the idempotency key before submission and the returned task ID in CHECKPOINT. If submission is interrupted before a task ID is received, reuse the saved idempotency key with exactly the same input. A new run with no saved key can create a separate paid task. Never reuse one key for different lists or services.

#### Illustrative task summary

```json
{"taskId":"provider-task-id","serviceType":"tg_active_batch","status":"processing","resultUrl":null,"total":1000}
```

This example is illustrative, not a live verification result. A failed task is recorded with its provider status; an Apify run completing does not mean every number was checked.

### Billing and data handling

Use your own TG Validator account. This Actor has no additional per-result charge; Apify platform usage and TG Validator provider usage remain separate. Check [TG Validator pricing](https://tgvalidator.com/pricing) before running. Undetermined results and failed checks follow the provider's refund rules; this Actor does not administer refunds.

Phone numbers are sent to api.tgvalidator.com for the requested checks. Inputs, checkpoints and outputs are stored in your Apify run storage. Keep them private and apply your retention policy. API keys use Apify's secret input field and are not written to result rows or checkpoints. Use contact lists you are authorized to process.

### Documentation and support

- [TG Validator official website](https://tgvalidator.com/)
- [Create an account and obtain an API key](https://tgvalidator.com/register)
- [API documentation](https://tgvalidator.com/api-docs)
- [Pricing](https://tgvalidator.com/pricing)
- [Provider support](https://tgvalidator.com/support)

Implementation is checked against the public API contract and automated simulated responses. Paid end-to-end checks have not been performed as part of initial publication.

### Interpret last-seen activity correctly

activedays represents days since last seen. With privacy-limited last-seen information, the provider uses approximate buckets: 0 for recently, 7 for within a week, 30 for within a month and 1000 for a long time ago. These are approximations, not exact timestamps or live online status. Missing values remain unavailable.

The downloaded activity file includes uid and username when available; a username can be empty.

# Actor input Schema

## `apiKey` (type: `string`):

Create your own key at https://tgvalidator.com/ after registration. Provider balance is billed separately.

## `numbers` (type: `string`):

1000–500000 unique numbers, country code required. Digits and optional leading + only. No CSV header or extra columns.

## `country` (type: `string`):

Required for new tasks, for example US or GB. All numbers must belong to this country. Other-country numbers may be omitted by the provider.

## `taskId` (type: `string`):

Resume an existing task without submitting or paying for a new task. Omit numbers and country when resuming.

## `idempotencyKey` (type: `string`):

Reuse the same key only for the same task after an uncertain submission. Generated and saved in CHECKPOINT if omitted.

## `maxWaitSecs` (type: `integer`):

Poll every 30 seconds. Set 0 to submit once or inspect an existing task once. The provider task continues after this Actor exits.

## Actor input object example

```json
{
  "maxWaitSecs": 600
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `checkpoint` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("tgvalidator/tgvalidator-telegram-activity-checker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("tgvalidator/tgvalidator-telegram-activity-checker").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 '{}' |
apify call tgvalidator/tgvalidator-telegram-activity-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tgvalidator/tgvalidator-telegram-activity-checker"
        }
    }
}
```

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/HTZbA1TlQ5fXekzgY/builds/SsWzQupFyvcd9RJiG/openapi.json
