# Telegram Username Profile Checker — TG Validator (`tgvalidator/tgvalidator-telegram-username-profile-checker`) Actor

Look up Telegram user IDs, available last-seen activity and avatar URLs for username lists using your own TG Validator API key.

- **URL**: https://apify.com/tgvalidator/tgvalidator-telegram-username-profile-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 Username Profile Checker — TG Validator

Refresh available Telegram account metadata for usernames you are authorized to process. 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_username_profile_batch product details](https://tgvalidator.com/products/tg_username_profile_batch) · [Official API reference](https://tgvalidator.com/api-docs#b-tg_username_profile_batch)

### What it returns

Provider fields: **registered, uid, activedays, avatar_url**. 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 username 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 Telegram usernames into usernames, one per line. The Actor creates and uploads a TXT file; it does not accept a remote file URL.
4. Country is not required and is not sent for username tasks.
5. Choose the check type if offered, set maxWaitSecs, and start.
6. Download the original file through resultUrl, or copy taskId to resume later.

Accepts plain handles, @handles and plain t.me/handle or https://t.me/handle URLs. Handles are lowercased and deduplicated. Invite links, URL parameters, spaces, CSV headers and extra columns are rejected. Syntax acceptance does not prove account existence; the provider determines that. Minimum quantity applies after normalization and deduplication.

### Resume and avoid duplicate submissions

Set apiKey and taskId to inspect an existing task. usernames is 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 username 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_username_profile_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 username 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.

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

### Profile fields and privacy limits

The provider file includes registered, uid, activedays and avatar_url. User ID or activity may be unavailable even for an existing account. An empty avatar URL means no URL was returned; it does not establish why. The Actor returns the file link without downloading profile photos or analyzing people in them.

# Actor input Schema

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

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

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

Resume an existing task without submitting a new paid task. usernames is not required 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.

## `usernames` (type: `string`):

1000–500000 unique handles. Accepts username, @username or t.me/username; case-insensitive deduplication. No invite links, query strings, CSV headers or extra columns.

## 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-username-profile-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-username-profile-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-username-profile-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tgvalidator/tgvalidator-telegram-username-profile-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/NSlovCjS11Wbw8WQN/builds/031dBOFvdBjz7cE2q/openapi.json
