# Lanseq Company Classification & Extraction (`everlasting_circlet/my-actor`) Actor

Classify company descriptions for lead segmentation and extract fields from supplied text. Use your own categories; export JSON/CSV with source evidence, missing values and review flags. Includes a free n8n workflow. No separate model API key required.

- **URL**: https://apify.com/everlasting_circlet/my-actor.md
- **Developed by:** [Lanseq](https://apify.com/everlasting_circlet) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.68 / 1,000 extracted texts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Lanseq Company Classification & Extraction

Classify company descriptions with your own labels and extract fields directly supported by the supplied text. Get structured results with evidence, missing-value flags and JSON/CSV export.

Lanseq is a multi-open-model inference provider.

### What you can do

- Categorize company descriptions by industry or business activity.
- Extract source-backed fields from text you already have.
- Identify records that need review instead of filling missing information with guesses.

No separate model API key is required.

### Quick start

Paste an input like this, set a maximum charge for the run, and select Start:

```json
{
  "items": [
    {"id": "company-1", "text": "ExampleCo manufactures industrial bearings."}
  ],
  "labels": ["manufacturing", "software", "logistics"],
  "fields": ["companyName"]
}
```

Open Output when the run finishes and export JSON or CSV. Use only labels you want returned. Field values are verbatim text spans or null; this Actor does not normalize addresses or infer undisclosed facts.

### Pricing

| Task | Free / Starter | Scale | Business |
|---|---:|---:|---:|
| Classification only, per 1,000 texts | $0.98 | $0.98 | $0.98 |
| Field extraction, with optional classification, per 1,000 texts | $1.88 | $1.78 | $1.68 |

Each successfully stored and structurally validated result triggers one event. Extraction already includes any requested classification, so the two prices are never added together. Platform usage is included. There is no startup fee. Technical failure rows are not charged.

A valid result can contain null values or a review flag and is still billable: the price is for processing and delivering the result, not a guarantee that every requested fact exists. Set a maximum charge per run; the Actor stops before processing an item it cannot charge within that budget.

### Input limits

- 1–20 records per run, each with a unique id and up to 8,000 UTF-8 bytes of text.
- Up to 20 labels and 10 fields; provide at least one label or field.
- Apify Free-plan accounts can process up to 10 model requests per account in total, subject to shared daily availability. This allowance does not reset by creating a new run.
- Paid-plan accounts use available capacity at the listed prices. Busy capacity produces a technical failure without a result fee.
- Model requests are sequential. No automatic model retry occurs.

The free-account allowance is an ongoing cost-control policy, not a time-limited product launch.

### Reading the output

Each row includes the record id, label, source evidence, extracted fields, review flag, usage, latency and a request id. Missing or unsupported values are null. Review flagged records before relying on them.

Structure and source-span validation do not establish semantic correctness. The evidence can confirm what the supplied text says, not whether the underlying company claim is true. This service does not verify purchase intent, contact validity, certifications or financial facts against external databases.

Technical errors stop the run, preserving completed rows. Inspect the Dataset and run summary before submitting unfinished records in a new run. Resurrecting a run with existing output is refused to avoid duplicate processing.

### Data handling

Only submit text you are permitted to process. Input text is sent to Lanseq for inference. Apify stores run input and output under its platform settings. The gateway records request identifiers, pseudonymous account identifiers, timing and token usage; it does not log customer prompts or model response content.

Full input text is omitted from Dataset output unless `includeSourceText` is enabled. Evidence and extracted fields may still contain portions of that text. No zero-retention or independently audited accuracy guarantee is made.

### Support

Contact jc@lanseq.cloud with the run ID and a description of the issue. Do not send passwords, API keys or confidential source material.

# Actor input Schema

## `items` (type: `array`):

1 to 20 records, each with a unique id and text (up to 8000 UTF-8 bytes). Submit only data you are permitted to process.

## `labels` (type: `array`):

Up to 20 distinct labels. Use descriptive labels; unsupported or ambiguous text returns null.

## `fields` (type: `array`):

Up to 10 named fields. Results are verbatim source spans or null. No inferred or normalized values.

## `includeSourceText` (type: `boolean`):

Opt in to storing the complete input text in Dataset output. Input remains part of the Apify run input regardless of this option. Evidence and extracted fields can also contain source text.

## Actor input object example

```json
{
  "items": [
    {
      "id": "example-1",
      "text": "Example company manufactures industrial bearings."
    }
  ],
  "labels": [
    "manufacturing",
    "software"
  ],
  "fields": [],
  "includeSourceText": false
}
```

# Actor output Schema

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

No description

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

No description

## `billingLedger` (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 = {
    "items": [
        {
            "id": "example-1",
            "text": "Example company manufactures industrial bearings."
        }
    ],
    "labels": [
        "manufacturing",
        "software"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("everlasting_circlet/my-actor").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 = {
    "items": [{
            "id": "example-1",
            "text": "Example company manufactures industrial bearings.",
        }],
    "labels": [
        "manufacturing",
        "software",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("everlasting_circlet/my-actor").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 '{
  "items": [
    {
      "id": "example-1",
      "text": "Example company manufactures industrial bearings."
    }
  ],
  "labels": [
    "manufacturing",
    "software"
  ]
}' |
apify call everlasting_circlet/my-actor --silent --output-dataset

```

## MCP server setup

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

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/naa8BJzWLGzmD1dQP/builds/nmgfRcTRp4Z6e3E6f/openapi.json
