# US Phone Numbers | Short-Term SMS Verification (`cmfapps/findandflip-phone-numbers`) Actor

Get a short-term US phone number for supported services, receive verification SMS, and pay through Apify only when a code is available. No rentals.

- **URL**: https://apify.com/cmfapps/findandflip-phone-numbers.md
- **Developed by:** [Cody F](https://apify.com/cmfapps) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1,000.00 / 1,000 sms receiveds

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

## US Phone Numbers: Short-Term SMS

Get a short-term US number for any service in the full service catalog and receive its verification SMS. Choose a service by name in the input dropdown, or use its numeric service ID. Existing identifiers `ebay`, `poshmark`, `facebook`, `mercari`, `yahoo`, and `vinted` continue to work. Availability varies. Long-term rentals are not offered through this Actor.

### Pricing and account access

Apify charges **$1 once when an SMS is available and you retrieve it through this Actor**. An unused number that expires or is canceled without a code has no purchase event charge. There is no paid start or dataset-item event. Check the run pricing displayed by Apify before starting.

No Find & Flip account, API key, or prepaid balance is required. Your verified Apify account owns the orders, and purchases are billed exclusively through Apify. Free-tier accounts can purchase using available Apify credit; the run spending limit must cover the requested purchase.

Set the run spending limit to at least $1 for `create` and for a `status` run that retrieves an unpaid code. Checking services or an already paid order does not create another purchase charge.

The `services` action returns the live provider catalog. The input dropdown contains the catalog at the last build and also accepts new numeric IDs, which the backend validates against the live list. US stock and the existing $1 maximum upstream purchase price are checked when ordering; a service appearing in the list does not guarantee an available number at that price.

### Create a number

```json
{
  "action": "create",
  "service": "ebay",
  "mode": "short_term",
  "requestId": "ebay-verification-001",
  "waitForCode": false
}
```

The initial OUTPUT record contains the assigned number and order ID. Request a verification SMS through the selected service, then run `status` with that order ID. Keep the same Apify account.

Copy the **`id` returned in OUTPUT** into `orderId`. Your custom `requestId` identifies a creation request; it is different from the generated order ID. Do not use the phone number as the order ID. You can also use `list` to find your order IDs. Supplying `orderId` during `create` does not assign an ID to the new order.

```json
{
  "action": "status",
  "orderId": "11111111-1111-4111-8111-111111111111",
  "waitForCode": true,
  "maxWaitSeconds": 300
}
```

Replace the example UUID with the actual `id` from your order. The Actor verifies payment before returning the SMS code. Codes, numbers, and order history are private: do not publicly share your input, run, or OUTPUT record.

### Actions and limits

| Action | Purpose |
| --- | --- |
| `services` | List all available services and their IDs; stock and price are checked when ordering. |
| `create` | Request one number using a stable `requestId`. |
| `status` | Check an existing number, settle an unpaid SMS event, and retrieve messages. |
| `list` | List orders for this Apify account; use `limit` (1-100) and `offset`. |
| `cancel` | Cancel an unused number. If a code already arrived, the order can be completed and charged instead. |

`requestId` accepts 1-100 letters, numbers, underscores, or hyphens. Reuse the same ID and order details after a timeout or restart, including in a new run. A new ID creates a separate order. `waitForCode` polls every ten seconds for up to `maxWaitSeconds` (10-1200, default 300). Match the Apify run timeout to your requested wait with extra time for cleanup.

Stopping the Actor does not cancel the number. Use `cancel` explicitly if it is unused. A `needs_review` order means the upstream purchase outcome was uncertain; preserve its ID and contact support before requesting another number.

### Payment retries

Duplicate status checks do not charge an already paid order again. If payment confirmation is interrupted, retry the same order. The service checks its saved payment claim and Apify's recorded event count. An uncertain or expired payment claim can require manual review instead of creating a second charge. Do not create a replacement order to resolve a payment error.

### Output and privacy

Results are saved to the run's OUTPUT key-value record. Order responses include `id`, `status`, `phoneNumber`, `expiresAt`, `billing`, and `messages` containing available code/text fields. Unpaid codes are withheld until verified payment. An empty message list means no retrievable code is available yet. Keep the run and storage private in Apify settings.

The service verifies your Apify run identity and retains order, provider, SMS, and payment records to fulfill purchases and prevent duplicate charges. The run token is used transiently to verify Apify receipts and is not persisted by the backend. Treat the number and SMS content as sensitive. Use numbers only for services and accounts you are authorized to operate; delivery and acceptance by a third-party service are not guaranteed.

For support, use the Actor's Issues tab with the run and order IDs. Never include API keys, phone numbers, or verification codes in a public issue. This independent tool is not affiliated with or endorsed by the supported marketplaces or email providers.

# Actor input Schema

## `action` (type: `string`):

List services, create a short-term number, check status, list orders, or cancel an unused number. Apify charges $1 once when an SMS is available.

## `service` (type: `string`):

Choose any supported verification service. New numeric service IDs are also accepted and checked against the live catalog. US short-term availability and the existing $1 price limit are checked when ordering.

## `mode` (type: `string`):

Only short-term US numbers are sold through this Actor. Long-term rentals are not available.

## `requestId` (type: `string`):

Your custom ID for create. Use 1-100 letters, numbers, underscores, or hyphens. Reuse the same ID and input when retrying, including in a new Actor run. New ID means a new purchase. This is different from the generated orderId returned in OUTPUT.

## `orderId` (type: `string`):

For status or cancel, copy the generated id from a create run's OUTPUT or an item returned by list, including all hyphens. Do not enter your requestId, a phone number, or a number you chose here. This field is ignored by create. Only orders owned by your verified Apify account are accessible.

## `waitForCode` (type: `boolean`):

For create or status. OUTPUT is saved with your number before waiting. Stopping this Actor does not cancel or refund the number.

## `maxWaitSeconds` (type: `integer`):

Poll every 10 seconds. Waiting consumes Apify compute time.

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

Maximum number of your phone orders to return for the list action.

## `offset` (type: `integer`):

Number of phone orders to skip for list pagination. Start at 0.

## Actor input object example

```json
{
  "action": "services",
  "service": "ebay",
  "mode": "short_term",
  "waitForCode": false,
  "maxWaitSeconds": 60,
  "limit": 50,
  "offset": 0
}
```

# Actor output Schema

## `result` (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 = {
    "action": "services",
    "waitForCode": false,
    "maxWaitSeconds": 60
};

// Run the Actor and wait for it to finish
const run = await client.actor("cmfapps/findandflip-phone-numbers").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 = {
    "action": "services",
    "waitForCode": False,
    "maxWaitSeconds": 60,
}

# Run the Actor and wait for it to finish
run = client.actor("cmfapps/findandflip-phone-numbers").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 '{
  "action": "services",
  "waitForCode": false,
  "maxWaitSeconds": 60
}' |
apify call cmfapps/findandflip-phone-numbers --silent --output-dataset

```

## MCP server setup

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

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/WeMImkZlw5hshwrxJ/builds/VMbkYcmLyo2p75kG9/openapi.json
