NewsPartnersAdvertiseAPI

ooeex API

Browse listings, place orders paid from your balance, fetch your keys, manage per-key disputes, and run API actors paid per result — all over a simple REST API.

On this page

AuthenticationOrderingPer-key disputesAffiliate trackingAPI actorsMCP serverSelling API actorsSeller APISeller API: key listingsErrors

Authentication

Create a key under Account → Settings → API Keys. It is shown once. Send it on every request via the x-api-key header (or as Authorization: Bearer hb_live_…). Keys spend only your account balance — top up on the site first.

Each key has scopes, chosen when you create it: buyer (browse, place orders, run actors — spends your balance) and seller (create and manage your own key listings and actors — never spends). Keys created before scopes existed are buyer keys. A request the key's scopes don't cover answers 403 forbidden. You can also give a key a daily spend limit: the most it may spend per UTC day on actor runs (the hold while a run is open, then its final charge) and orders (their full total). A request that would go over it fails with 402 spend_limit_exceeded and tells you what is left. Set one on every key you give to an AI agent.

curl https://ooeex.com/api/v1/balance \
  -H "x-api-key: hb_live_your_key_here"

Rate limit: 120 requests/minute per key. Write requests (POST /orders, POST /disputes, POST /actors/:id/runs) require an Idempotency-Key header so a retry never charges or disputes twice.

Ordering

GET/api/v1/balance
Your current balance.
GET/api/v1/collections
The collections you can filter listings by, with each one's live listing count and available stock.
GET/api/v1/products
Browse active, in-stock listings. Filters: platform, region, q, sellerId (exact) or seller (name), collectionId (exact) or collection (slug or name), page, pageSize. Each listing returns sellerId + sellerName and collectionId + collectionName + collectionSlug.
GET/api/v1/products/:id
Single listing detail, including its collection.
POST/api/v1/orders
Create an order and pay from balance. Requires Idempotency-Key. Optional maxTotal (USD): if the live total is higher the order is refused with 409 and nothing is charged.
GET/api/v1/orders/:id/keys
Delivered keys (deleted 7 days after purchase — fetch promptly).

Collections group listings the way the storefront does. Filter by collectionId for an exact match, or collection with a slug or name. Both match one collection exactly — “Gmail Accounts” will not return “Aged Gmail Accounts”. Listings that belong to no collection come back with collectionId: null and are excluded when you filter.

# discover the collections
curl https://ooeex.com/api/v1/collections -H "x-api-key: $KEY"

# then list everything in one of them
curl "https://ooeex.com/api/v1/products?collection=aged-gmail-accounts&pageSize=50" \
  -H "x-api-key: $KEY"
curl -X POST https://ooeex.com/api/v1/orders \
  -H "x-api-key: $KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{ "items": [ { "productId": "PRODUCT_UUID", "quantity": 5 } ], "maxTotal": 12.50 }'

Per-key disputes

Dispute the exact keys that don't work, with evidence per key, and fetch replacement keys the seller provides. All disputed keys in one dispute must be from the same seller.

POST/api/v1/uploads/presign
Get a presigned URL to upload an evidence image (optional). PUT exactly fileSize bytes with the returned uploadHeaders (Content-Type); other sizes or types are refused. With "purpose": "listing-image" and a seller key it is a key-listing image instead (see Seller API: key listings).
POST/api/v1/disputes
Open a per-key dispute. Requires Idempotency-Key.
GET/api/v1/disputes/:id
Dispute detail incl. per-key statuses and messages.
GET/api/v1/disputes/:id/replacements
Replacement keys delivered so far.
POST/api/v1/disputes/:id/messages
Post a message / extra evidence.
curl -X POST https://ooeex.com/api/v1/disputes \
  -H "x-api-key: $KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{
        "orderId": "ORDER_UUID",
        "reason": "invalid_key",
        "description": "5 of 100 keys already redeemed",
        "disputedKeys": [
          { "orderItemId": "ITEM_UUID", "productKeyId": "KEY_UUID",
            "evidenceText": "shows already used" }
        ]
      }'

Affiliate tracking

Pull the stats, clicks and conversions of the traffic you send with your referral links, and create tracking links. A key only ever sees its owner's own data. Referred users appear as a pseudonym (U-xxxxxx), never their name or email. Dates are UTC days (YYYY-MM-DD), at most 365 days per request; the default is the last 30 days.

GET/api/v1/affiliate/stats
Totals and rows for from/to, grouped by group_by: day, link, sub1–sub5, utm_source, utm_campaign, country, device or channel. Clicks, uniques, signups, depositors, buyers, orders, revenue, commission (pending / approved / reversed), EPC, AOV, refund and dispute rates.
GET/api/v1/affiliate/clicks
Raw clicks, newest first: sub1–sub5, your click id, utm, country, device and flags (bot, duplicate, self_click, flood). Kept 180 days. Paged with cursor and limit (≤ 200).
GET/api/v1/affiliate/conversions
Conversion events (signup, deposit, first_deposit, purchase, first_purchase, refund, commission_approved, dispute_opened) with status, payout and the click they came from. Filter by type. Pass updated_since (ISO-8601) to receive every event created or changed after that time, oldest first, so approvals and reversals sync.
GET/api/v1/affiliate/links
Your default link and named tracking links with their URLs.
POST/api/v1/affiliate/links
Create a named link: { "name", "destination_path"?, "subs"? }. Destinations: /, /products, /products/:id, /collections/:slug, /sellers/:name, /news/:slug.
# stats by sub1 for November
curl "https://ooeex.com/api/v1/affiliate/stats?from=2026-11-01&to=2026-11-30&group_by=sub1" \
  -H "x-api-key: $KEY"

# sync conversions changed since your last run (repeat with next_cursor)
curl "https://ooeex.com/api/v1/affiliate/conversions?updated_since=2026-11-25T00:00:00Z&limit=200" \
  -H "x-api-key: $KEY"

List responses return next_cursor; pass it back as cursor until it is null. For real-time delivery set up a postback under Account → Referrals → Tracking.

API actors

API actors are tools sellers host on their own servers — scrapers, checkers, generators — that you run with an input and that return a list of results. You pay per result from your balance at the actor's price per 1,000 results. When a run starts, its maximum cost (maxResults × price) is held from your balance; when it finishes you are charged only for the results delivered, with a minimum of $0.01 per paid run that succeeds or that you abort (even with 0 results), and the rest is returned. A run that fails or times out before delivering results costs nothing.

GET/api/v1/actors
Browse live actors. Filters: q, platform, sellerId, page, pageSize. Each returns its price per 1,000 results, default and maximum results, timeout and run stats.
GET/api/v1/actors/:id
Actor detail: README, input schema, example input and the Overview output columns.
POST/api/v1/actors/:id/runs
Start a run. Body { "input": {...}, "maxResults"?: n, "maxTotalChargeUsd": usd }. Requires Idempotency-Key. Optional ?wait=0..60 seconds to wait for it to finish. maxTotalChargeUsd is required for paid actors and must be at least $0.01 (without it, or below $0.01: 400 validation_error, details.reason max_total_charge_required / max_total_charge_below_minimum). It is a hard ceiling: maxResults (given or the actor's default) is lowered so the hold never exceeds it (400 if it does not cover one result). A maxResults above the actor's maxResultsCap is refused with 400, not lowered. If the seller changes the price while the run starts it is refused with 409 conflict and nothing is held.
GET/api/v1/runs
Your runs, newest first. Filters: actorId, page, pageSize.
GET/api/v1/runs/:id
Status, status message, result count, cost and storage truncation (storageLimit, resultsDropped, storageNote). Optional ?wait=0..60.
POST/api/v1/runs/:id/abort
Stop an open run. Results already delivered are charged.
GET/api/v1/runs/:id/items
Results in delivery order. format=json|csv, offset, limit (≤ 1,000), and for CSV view=all|overview. Pages are also capped at ~5 MB, so a page can hold fewer than limit items: keep reading from pagination.nextOffset (JSON) or the X-Next-Offset header (CSV) until it is null / absent. Results of test runs are deleted after a retention period: the response then has resultsExpired: true and no items (CSV: an X-Results-Expired: true header and only the header row); GET /runs/:id carries the same flag. With view=all (or an actor without Overview columns) the CSV columns are the keys found on that page, sorted — another page can have other columns, so for multi-page CSV prefer view=overview on actors that define Overview columns.
GET/api/v1/runs/:id/log
The run log (up to 200 KB).

Run status is one of READY, RUNNING, SUCCEEDED, FAILED, TIMED_OUT or ABORTED; finished: true means the run is settled and cost is final. Input fields are validated against the actor's input schema (errors come back in error.details.fields) and defaults are applied to fields you leave out. Runs of other accounts answer 404. At most 10 of your runs can be open at once.

Run storage limits

  • Each result is at most 100 KB of JSON (a push with a bigger one is refused with 400); a paid run's input is at most 64 KB.
  • Per paid run: at most 2 MB of results per charged cent, and never more than 8 MB per run.
  • Per buyer: 100 MB of results plus your own inputs across your paid runs in any 24 hours. A paid start is refused with rate_limited (nothing held) when less than room for its input and one 100 KB result is left.
  • Per actor seller: 1 GB of results across all buyers' paid runs in any 24 hours. It never refuses a start; each paid run may still store 512 KB after it is used up.
  • Test runs: 5 MB per run and 50 MB per seller in any 24 hours (results, logs and inputs).
  • Retention: paid-run results are kept 30 days after the run finishes and test-run results 7 days (the run, its cost and resultsCount stay; resultsExpired: true afterwards).

Results past a limit are not stored and not charged. The run then says so in structured fields, written by the platform, never by the seller: storageLimit (run_limit, buyer_daily_limit, seller_daily_limit, test_run_limit or test_daily_limit; null when nothing was cut off), resultsDropped (pushed results that were not stored, at most maxResults - resultsCount) and storageNote (a readable note). A truncated run's final statusMessage is that same note; any other statusMessage comes from the seller. Over MCP the note is shown as a platform note, outside seller_content.

# start a run and wait up to 60 s for it to finish
curl -X POST "https://ooeex.com/api/v1/actors/ACTOR_ID/runs?wait=60" \
  -H "x-api-key: $KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{ "input": { "queries": ["example"] }, "maxResults": 500, "maxTotalChargeUsd": 1 }'

# still RUNNING? poll it (each call waits up to 60 s)
curl "https://ooeex.com/api/v1/runs/RUN_ID?wait=60" -H "x-api-key: $KEY"

# then fetch the results: one page per request (≤ 1,000 items, ~5 MB);
# continue from data.pagination.nextOffset until it is null
curl "https://ooeex.com/api/v1/runs/RUN_ID/items?offset=0&limit=1000" -H "x-api-key: $KEY"

# CSV: each request is one page too; follow X-Next-Offset until it is absent
# (every page repeats the header row, so keep it from the first page only;
# use view=overview for fixed columns: with view=all each page has its own).
# -f makes curl fail on an HTTP error (rate limit, 404, ...) instead of
# appending the JSON error body to the file as if it were CSV rows.
offset=0; : > results.csv
while [ -n "$offset" ]; do
  curl -sf -D headers.txt "https://ooeex.com/api/v1/runs/RUN_ID/items?format=csv&view=overview&offset=$offset" \
    -H "x-api-key: $KEY" > page.csv || { echo "request failed" >&2; break; }
  grep -qi '^x-results-expired: true' headers.txt && { echo "results expired" >&2; break; }
  { [ "$offset" = 0 ] && cat page.csv || tail -n +2 page.csv; } >> results.csv
  offset=$(grep -i '^x-next-offset:' headers.txt | tr -dc '0-9')
done
// Node 18+
const api = (path, init = {}) =>
  fetch(`https://ooeex.com/api/v1${path}`, {
    ...init,
    headers: { "x-api-key": process.env.OOEEX_KEY, "content-type": "application/json", ...init.headers },
  }).then((r) => r.json());

let { data: run } = await api(`/actors/${actorId}/runs?wait=60`, {
  method: "POST",
  headers: { "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify({ input: { queries: ["example"] }, maxResults: 500, maxTotalChargeUsd: 1 }),
});
while (!run.finished) ({ data: run } = await api(`/runs/${run.id}?wait=60`));

// Pages are capped at 1,000 items and ~5 MB: follow nextOffset, not offset += 1000.
const items = [];
let offset = 0;
while (offset !== null) {
  const { data } = await api(`/runs/${run.id}/items?offset=${offset}&limit=1000`);
  // Test-run results are deleted after a retention period: no items, ever.
  if (data.resultsExpired) throw new Error("this run's results have expired");
  items.push(...data.items);
  offset = data.pagination.nextOffset; // null once everything is read
}
console.log(run.status, run.cost, items.length);

MCP server

AI agents (Claude, Cursor and other MCP clients) can use ooeex directly through its MCP server. It offers the same things as the REST API — search and run actors, buy key listings, and manage your own key listings and actors — with tool names that match Apify's MCP server where there is an equivalent (for example search-actors, call-actor, get-dataset-items).

https://ooeex.com/api/mcp

Streamable HTTP, stateless (POST only). Authenticate with your API key as Authorization: Bearer hb_live_… (or x-api-key). OAuth is not supported yet, so connectors that only accept a URL and sign in with OAuth cannot connect; use the configs below. The key's scopes decide which tools appear: buyer tools for a buyer key, seller tools for a seller key, both for a key with both. Every MCP request counts toward the key's 120 requests/minute, and paid tools respect its daily spend limit — give an agent its own key with a limit. Send one JSON-RPC message per request: batches (a JSON array body) are refused with HTTP 400 and JSON-RPC error -32600 (batching was removed in MCP 2025-06-18; protocol versions 2025-11-25 down to 2024-11-05 are negotiated). create-order, create-actor, create-listing and add-listing-keys require an idempotencyKey, like the REST Idempotency-Key header: a call without one is refused, and a retry with the same key returns the first result.

Seller-written text — actor and listing titles, descriptions, READMEs, input field texts, categories, seller names, run status messages, run logs and input-validation messages — reaches the agent inside <seller_content untrusted="true">…</seller_content> blocks, and run results inside <run_results untrusted="true">…</run_results>; the server's instructions tell it that this is data, never instructions. Inside these blocks every angle bracket (and lookalike, such as ‹ › « » ⟨ ⟩) is shown as ( ), zero-width, bidi and Unicode tag characters are removed, and the block names are shown as untrusted-text, so no block can be closed early; error messages are defused the same way. Delivered keys arrive inside <delivered_keys untrusted="true">…</delivered_keys> as a JSON array of JSON-encoded strings (< > & escaped as \u003c \u003e \u0026): decode a key to get it byte for byte. A paid run is priced as the agent last saw it: if the seller changes the price meanwhile, call-actor is refused with conflict and nothing is held.

Claude Code

Add it from a terminal (the shell fills in $OOEEX_KEY):

claude mcp add --transport http ooeex "https://ooeex.com/api/mcp" \
  --header "Authorization: Bearer $OOEEX_KEY"

Or share it with a project in .mcp.json; Claude Code reads ${OOEEX_KEY} from each user's environment, so the key stays out of the repository:

{
  "mcpServers": {
    "ooeex": {
      "type": "http",
      "url": "https://ooeex.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${OOEEX_KEY}"
      }
    }
  }
}

Claude Desktop

Claude Desktop's custom connectors sign in with OAuth, so connect through the mcp-remote bridge (needs Node.js 18+). Open Settings → Developer → Edit Config and add this to claude_desktop_config.json, then restart Claude Desktop:

{
  "mcpServers": {
    "ooeex": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://ooeex.com/api/mcp",
        "--header",
        "Authorization:${OOEEX_AUTH}"
      ],
      "env": {
        "OOEEX_AUTH": "Bearer hb_live_your_key_here"
      }
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "ooeex": {
      "url": "https://ooeex.com/api/mcp",
      "headers": {
        "Authorization": "Bearer hb_live_your_key_here"
      }
    }
  }
}

Dedicated actor tools

Add ?actors=developer/slug,developer/slug (up to 10) to the URL and each live actor becomes its own tool, named developer--slug, whose parameters are the actor's input fields plus callOptions (maxItems, maxTotalChargeUsd, as in call-actor) and waitSecs. The run controls never collide with the actor's own fields: new actors cannot name an input field callOptions, waitSecs, maxItems or maxTotalChargeUsd (in any spelling: case, _, - and spaces are ignored) or a spending-cap lookalike such as maxSpend, and an older actor that uses one gets its fields nested under input. Calling it is the same as call-actor. The only spending cap is callOptions.maxTotalChargeUsd: a top-level maxItems, maxResults, maxTotalChargeUsd or timeout that is not one of the actor's own input fields is refused with validation_error rather than ignored. Arguments are strict on call-actor and every dedicated tool: any argument the tool does not define, and any callOptions key other than maxItems, maxTotalChargeUsd and timeout (ignored), is refused with validation_error listing the allowed names, and nothing is started. The tool's title is developer/slug — ooeex actor; the seller's title and field texts appear only inside seller_content blocks, and each field's JSON Schema title is its key. The same actor listed twice (by slug and id) is one tool. Every actor's API tab shows its config. Actors that are not live (or whose tool name cannot be made unique) are left out and named in the server's instructions; buyer scope is required.

https://ooeex.com/api/mcp?actors=example-dev/business-leads-finder,example-dev/proxy-health-checker

Tools

Buyer scope:

search-actorsFind live actors by keywords or category: price, stats and input fields.
fetch-actor-detailsREADME, input schema, pricing and output columns of one actor.
call-actorStart a paid run (callOptions.maxTotalChargeUsd is required, at least $0.01; maxItems sets the results) and wait up to 45 s. Minimum $0.01 per paid run.
get-actor-runStatus, summary and cost of a run; waits up to 45 s.
get-dataset-itemsA run's results, paged (offset, limit, fields / omit as "a,b" or ["a","b"], clean, desc).
get-actor-logThe run log.
abort-actor-runStop an open run; delivered results are charged (a paid run at least $0.01).
list-actor-runsYour runs, filtered by actor or status.
get-balanceBalance, plus the key's daily spend limit and what it has spent today.
search-productsFind in-stock key listings.
get-productOne listing: price and stock.
create-orderBuy listings and pay from balance. idempotencyKey is required (reuse it when retrying).
get-orderOne order.
get-order-keysDelivered keys of an order (like GET /orders/:id/keys).
list-ordersYour orders.

Seller scope (the run tools get-actor-run, get-dataset-items, get-actor-log and abort-actor-run also work with a seller key, but a key without the buyer scope sees only your own test runs — your paid runs answer not_found, as over REST):

list-my-actorsYour actors with status, stats and revenue.
get-my-actorFull config of one of your actors.
validate-actor-configDry-run validation; nothing is saved.
create-actorCreate a draft; returns the signing secret once. idempotencyKey is required.
update-actorChange only the fields given (title, endpoint, description, README or input schema on a live actor → back to review; price changes apply at once).
submit-actorSend a draft or rejected actor to review.
pause-actor / resume-actorHide a live actor from the store, or list it again.
regenerate-actor-secretNew signing secret; the old one stops working.
start-test-runFree test run of your actor.
list-my-actor-runsPaid and test runs of your actor.

Seller scope, key listings (the same code and rules as the seller dashboard and Seller API: key listings; keys only ever appear as masked previews):

get-listing-optionsCategories, regions, types, guarantee bounds, limits and active collections for a valid create.
list-my-listingsYour key listings with status, price, stock counts and sales.
get-my-listingOne of your key listings.
validate-listingDry run of create-listing (same screening); nothing is saved.
create-listingCreate a key listing with its keys (pending review). idempotencyKey is required.
update-listingChange title, description, price, guarantee, key format or collection (a new title on a live listing → back to review).
pause-listing / resume-listingTake a live listing off the shelf, or put it back on sale.
resubmit-listingSend a rejected listing back to review.
delete-listingDelete a listing, as the dashboard does.
add-listing-keysRestock (≤ 5,000 keys per call) with per-line refusal reasons. idempotencyKey is required.
list-listing-keysA listing's keys, masked only — key text is never returned over MCP.
remove-listing-keyRemove an available key.
list-my-salesYour sold items: order, listing, price, net earning, delivery status, hold-until.
get-seller-balanceAvailable and held seller earnings.

Any key: search-ooeex-docs and fetch-ooeex-docs search and read this page.

Check the connection

The server answers plain JSON-RPC, so curl shows which tools your key gets:

curl -s https://ooeex.com/api/mcp \
  -H "Authorization: Bearer $KEY" \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }'

Selling API actors

An actor is an HTTPS endpoint you host. ooeex never runs your code: when a buyer starts a run, ooeex sends your endpoint a signed request, and you return results — either in the response or by pushing them while you work. Create one under Seller dashboard → API actors, set the endpoint, input schema and price per 1,000 results, and submit it for review. The signing secret (ooxs_…) is shown once; regenerate it there if it leaks. Test runs from the dashboard are free and carry test: true; they are limited to 100 results and 5 MB each, 20 per hour and 100 per 24 hours, and 50 MB of results per 24 hours across your actors, and their results are deleted 7 days after they finish.

Pick the category from the store's list. Once the actor is live, changing its title, slug, endpoint, short description, README, input schema or price, or raising its default or maximum results per run, sends it back to review; lowering a result limit, the category, icon, output columns, example input and timeout save in place. Input field names callOptions, waitSecs, maxItems and maxTotalChargeUsd are reserved for run controls. Your statusMessage, log and results reach AI agents as quoted, untrusted data.

1. The start request

ooeex POSTs JSON to your endpoint with two headers: X-Ooeex-Timestamp (unix seconds) and X-Ooeex-Signature, the hex HMAC-SHA256 of timestamp + "." + rawBody keyed with your signing secret. Verify it over the raw body bytes and reject timestamps more than 5 minutes old. The input is already validated against your schema with defaults applied. Redirects are not followed and your response is capped at 10 MB.

POST https://your-server.example/run
X-Ooeex-Timestamp: 1764072000
X-Ooeex-Signature: 5f1c…e9
Content-Type: application/json

{
  "runId": "RUN_UUID",
  "actorId": "ACTOR_UUID",
  "input": { "queries": ["example"], "mode": "fast" },
  "maxResults": 500,
  "timeoutSecs": 300,
  "test": false,
  "pushUrl": "https://ooeex.com/api/actor-runs/RUN_UUID",
  "pushToken": "ooxr_…"
}

2a. Sync: answer with the results

Respond 200 within the timeout with { "items": [...], "log"?: "...", "statusMessage"?: "..." } (or a bare JSON array). The run finishes right away. Set "status": "FAILED" to mark it failed. Any other status code fails the run.

To try test runs before you host anything, point a draft actor's endpoint at the sample endpoint https://ooeex.com/api/actor-sample. It answers this sync format with up to two fixed sample results (never more than maxResults); an input with "mode": "fail" simulates a failed run instead (the draft actor's input schema must allow a mode field for that input to pass validation).

2b. Async: accept, push, finish

Respond 202 immediately, then call the push API with Authorization: Bearer <pushToken>. The token works only for that run and stops working once it finishes.

POST{pushUrl}/items
{ "items": [...] } — up to 1,000 JSON objects per call, each ≤ 100 KB. Items beyond the run's maxResults or a storage limit (see Run storage limits above: per-run cap, buyer and seller 24-hour budgets, test-run caps) are ignored and not paid; the answer then has storageFull: true, storageLimit and remaining: 0.
POST{pushUrl}/log
{ "lines": ["..."] } — shown to the buyer; capped at 200 KB per run.
POST{pushUrl}/finish
{ "status": "SUCCEEDED" | "FAILED", "statusMessage"?: "..." } — settles the run.

A run you do not finish is closed as TIMED_OUT shortly after timeoutSecs; the buyer can also abort it. In every case the buyer pays for the results you delivered before it closed, and nothing more is accepted after. Each paid run becomes one earning for you (price × results, minus the platform fee), held for the usual guarantee period before it can be withdrawn, like listing sales.

// Node 18+ — a minimal actor endpoint (sync for small runs, async for big ones)
import http from "node:http";
import crypto from "node:crypto";

const SECRET = process.env.OOEEX_ACTOR_SECRET; // ooxs_…

function verify(req, rawBody) {
  const ts = String(req.headers["x-ooeex-timestamp"] ?? "");
  const sig = String(req.headers["x-ooeex-signature"] ?? "");
  if (!/^\d+$/.test(ts) || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const expected = crypto.createHmac("sha256", SECRET).update(`${ts}.${rawBody}`).digest();
  const given = Buffer.from(sig, "hex");
  return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}

http.createServer((req, res) => {
  const chunks = [];
  req.on("data", (c) => chunks.push(c));
  req.on("end", async () => {
    const raw = Buffer.concat(chunks).toString("utf8");
    if (req.method !== "POST" || !verify(req, raw)) {
      res.writeHead(401);
      return res.end();
    }
    const run = JSON.parse(raw);

    if (run.maxResults <= 100) {
      // Sync: answer with the results.
      const items = await scrape(run.input, run.maxResults);
      res.writeHead(200, { "content-type": "application/json" });
      return res.end(JSON.stringify({ items, statusMessage: `Found ${items.length} results` }));
    }

    // Async: accept now, push results as they come, then finish.
    res.writeHead(202);
    res.end();
    const push = (path, body) =>
      fetch(`${run.pushUrl}/${path}`, {
        method: "POST",
        headers: { authorization: `Bearer ${run.pushToken}`, "content-type": "application/json" },
        body: JSON.stringify(body),
      });
    try {
      for await (const batch of scrapeInBatches(run.input, run.maxResults)) {
        await push("items", { items: batch });
        await push("log", { lines: [`Pushed ${batch.length} results`] });
      }
      await push("finish", { status: "SUCCEEDED" });
    } catch (err) {
      await push("finish", { status: "FAILED", statusMessage: String(err.message).slice(0, 200) });
    }
  });
}).listen(8080);

Seller API

Everything the seller dashboard does with actors, over REST — like Apify's /v2/acts. It needs a key with the seller scope and runs the same validation and review rules as the dashboard. Other sellers' actors answer 404.

GET/api/v1/seller/actors
Your actors, any status, with stats and revenue.
POST/api/v1/seller/actors
Create a draft. Requires Idempotency-Key. Returns actor and signingSecret — shown once.
POST/api/v1/seller/actors/validate
Dry run: { valid, errors, sections }, nothing saved. Add ?actorId= to check a partial update. Slug uniqueness and the 50-actor limit are only checked on create.
GET/api/v1/seller/actors/:id
Full config, status, stats and revenue.
PATCH/api/v1/seller/actors/:id
Change only the fields you send. On a live or paused actor, a new title, slug, endpointUrl, description, readme, inputSchema or price (pricePer1000), or a higher defaultMaxResults or maxResultsCap, sends it back to review (backToReview: true, reviewFields lists what changed; a paused actor comes back paused). Category, image, output view, example input, lowering a result limit and timeout change in place.
POST/api/v1/seller/actors/:id/submit
Draft or rejected → pending review.
POST/api/v1/seller/actors/:id/pause
Hide a live actor from the store (/resume lists it again).
POST/api/v1/seller/actors/:id/secret
New signing secret, shown once; the old one stops working at once.
POST/api/v1/seller/actors/:id/test-runs
Free test run, any status. Body { "input": {...}, "maxResults"?: n }, optional ?wait=0..60. Same limits as dashboard test runs.
GET/api/v1/seller/actors/:id/runs
Paid and test runs of your actor, newest first (page, pageSize). No buyer identity.
GET/api/v1/seller/actors/:id/runs/:runId
One of your test runs (same body as GET /runs/:id, optional ?wait=0..60). Paid runs answer 404.
GET/api/v1/seller/actors/:id/runs/:runId/items
A test run's results (same parameters as GET /runs/:id/items).
GET/api/v1/seller/actors/:id/runs/:runId/log
A test run's log.

Fields (create, PATCH and validate): title (3–80), slug (3–50 of a–z, 0–9 and dashes; defaults to the title, unique per seller), category (or platform; one of the store categories in the seller editor's Category list, matched case-insensitively — a stored category that is no longer listed may be kept), description (≤ 300), readme (Markdown), endpointUrl (public HTTPS), inputSchema (object, see Selling API actors), outputView ([{ field, label, format }]), pricePer1000 (USD, e.g. "2.50"), defaultMaxResults (default 100), maxResultsCap (default 1000), timeoutSecs (30–900, default 300), exampleInput, imageUrl. Unknown fields are refused; field errors come back in error.details.fields. Input field names callOptions, waitSecs, maxItems and maxTotalChargeUsd are reserved in any spelling (case, _, - and spaces ignored), as is any name combining charge/spend/budget/cost with max/cap/limit; maxResults and timeout are allowed (an actor that already has a reserved one may keep it). Money in responses is in USD (pricePer1000Results, revenue, netRevenue).

Retrying a create with the same Idempotency-Key returns the same actor without making another, but with signingSecret: null: the secret goes only to the first response. If you lost it, call /secret for a new one.

curl -X POST https://ooeex.com/api/v1/seller/actors \
  -H "x-api-key: $KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{
        "title": "Places Search",
        "slug": "places-search",
        "category": "Google",
        "description": "Find businesses by search term and city.",
        "endpointUrl": "https://your-server.example/run",
        "pricePer1000": "2.50",
        "maxResultsCap": 5000,
        "inputSchema": {
          "title": "Places Search input",
          "type": "object",
          "schemaVersion": 1,
          "properties": {
            "query": { "title": "Search term", "type": "string", "editor": "textfield" },
            "city": { "title": "City", "type": "string", "editor": "textfield" }
          },
          "required": ["query"]
        },
        "exampleInput": { "query": "coffee", "city": "Berlin" }
      }'
// Node 18+ — validate, create, test and submit an actor
const BASE = "https://ooeex.com/api/v1/seller";
const api = async (path, init = {}) => {
  const res = await fetch(BASE + path, {
    ...init,
    headers: { "x-api-key": process.env.OOEEX_KEY, "content-type": "application/json", ...init.headers },
  });
  const body = await res.json();
  if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message} ${JSON.stringify(body.error.details ?? {})}`);
  return body.data;
};

const config = {
  title: "Places Search",
  slug: "places-search",
  category: "Google",
  endpointUrl: "https://your-server.example/run",
  pricePer1000: "2.50",
  inputSchema: {
    title: "Places Search input",
    type: "object",
    schemaVersion: 1,
    properties: { query: { title: "Search term", type: "string", editor: "textfield" } },
    required: ["query"],
  },
  exampleInput: { query: "coffee" },
};

// 1. Dry run: nothing is saved.
const check = await api("/actors/validate", { method: "POST", body: JSON.stringify(config) });
if (!check.valid) throw new Error(JSON.stringify(check.errors));

// 2. Create. Reuse the same Idempotency-Key if you retry this request.
const { actor, signingSecret } = await api("/actors", {
  method: "POST",
  headers: { "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify(config),
});
// Store signingSecret on your server now (OOEEX_ACTOR_SECRET): it is not shown again.

// 3. Free test run, waiting up to 60 s for it to finish.
const run = await api(`/actors/${actor.id}/test-runs?wait=60`, {
  method: "POST",
  body: JSON.stringify({ input: config.exampleInput, maxResults: 10 }),
});
console.log(run.status, run.resultsCount);

// 4. Send it to review; an admin approves it and it goes live.
const { actor: submitted } = await api(`/actors/${actor.id}/submit`, { method: "POST" });
console.log(submitted.status); // "pending"

Seller API: key listings

Everything the seller dashboard does with regular key listings, over REST. It needs a key with the seller scope and runs the dashboard's own code: the same duplicate and resale screening, review rules, guarantee bounds and limits. Other sellers' listings and keys, API actors and deleted listings answer 404. Money is USD strings. The same operations are MCP tools for a seller key (create-listing, add-listing-keys, list-listing-keys, … — see MCP server), except ?reveal=1: MCP never returns key text.

GET/api/v1/seller/categories
Categories, regions, types, guarantee bounds, limits and active collections — everything a valid create body needs.
GET/api/v1/seller/listings
Your listings with stock counts (available, reserved, sold, invalid), sales and rejection reason. ?status= (all, active, pending, paused, sold_out, rejected, …), page, pageSize (≤ 100).
POST/api/v1/seller/listings
Create a listing; it is pending until an admin approves it. Requires Idempotency-Key. Returns listing and intake: "N of M keys accepted" and one entry per refused line (line, masked preview, reason).
POST/api/v1/seller/listings/validate
Dry run of create: same body, same errors, same key screening. Nothing is saved.
GET/api/v1/seller/listings/:id
One listing.
PATCH/api/v1/seller/listings/:id
Change title, description, price, originalPrice, guaranteeDays, keyFormat or collectionId. A new title on an active, paused or sold-out listing sends it back to review (backToReview: true); a new collection needs that collection's approval again. Category, region, type and image can't be changed.
POST/api/v1/seller/listings/:id/pause
Take a live listing off the shelf (/resume puts it back; needs stock). Pending, rejected and admin-restricted listings answer 409.
POST/api/v1/seller/listings/:id/resubmit
Rejected → pending. The keys are screened again first; ones another seller now lists or has sold are dropped.
DELETE/api/v1/seller/listings/:id
Delete the listing (as the dashboard: it leaves the store and your list).
POST/api/v1/seller/listings/:id/keys
Add keys: { "keys": [..] } or one per line, ≤ 5,000 per request. Requires Idempotency-Key. Suspended, archived and invalid listings take no keys (409). Returns added, skipped, stock and intake.
GET/api/v1/seller/listings/:id/keys
Your keys, masked (preview shows the first and last characters). ?status=, page, pageSize (≤ 500). ?reveal=1 returns the full text of your own available keys, at most 100 per call; every reveal is logged. Never available through MCP.
DELETE/api/v1/seller/listings/:id/keys/:keyId
Remove an available key. Reserved (in an order right now) and sold keys answer 409.
GET/api/v1/seller/sales
Your sold items, newest first: order, listing, quantity, price, net earning, delivery status, hold-until and open dispute. Same data as the dashboard's Orders. ?status=, search, limit (≤ 200).
GET/api/v1/seller/balance
available, held (pending + disputed) and nextReleaseAt, as in the dashboard.

Create fields: title (3–200), price (USD, up to 4 decimals, ≤ 99,999), category (or platform; name or slug from /seller/categories), region (Global, EU, US, UK, Asia, Other), keys (array, or text with one key per line; blank lines ignored; ≤ 10,000), and optional description (≤ 5,000), type (Key, GiftCard, Account; default Key), keyFormat (default "standard"), guaranteeDays (2–30, default 2), collectionId, originalPrice and imageUrl. An image must be your own upload: POST /api/v1/uploads/presign with { "purpose": "listing-image", "contentType", "fileSize" }, PUT the file to uploadUrl within 5 minutes, then pass publicUrl. Unknown fields are refused; field errors come back in error.details.fields. A create or add whose keys are all refused fails with 400 and the intake in error.details.intake. Lines refused for your own input or stock are listed one by one in intake.rejections (duplicate_in_batch, already_in_this_listing, already_in_your_stock); keys refused because of other sellers' stock or sales are counts only in intake.screenedOut (listedByAnotherSeller, soldToAnotherBuyer, takenWhileListing, other), never per line. Every screening is logged, dry runs included; /seller/listings/validate screens at most 20,000 keys per 24 hours (429 after that). A listing holds at most 10,000 unsold keys. Responses never echo key text except ?reveal=1.

Retrying a create or add-keys with the same Idempotency-Key returns the first response (header idempotent-replay: true) without creating another listing or adding keys twice; the same key with a different body answers 409. Failed requests are not remembered, so you can fix the cause and retry with the same key.

curl -X POST https://ooeex.com/api/v1/seller/listings \
  -H "x-api-key: $KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{
    "title": "Steam account | full access",
    "price": "4.99",
    "category": "Steam",
    "region": "Global",
    "keyFormat": "email:password",
    "guaranteeDays": 7,
    "keys": ["user1@example.com:pass1", "user2@example.com:pass2"]
  }'
// Node 18+ — check, create, restock and watch a key listing
import { readFileSync } from "node:fs";

const BASE = "https://ooeex.com/api/v1/seller";
const api = async (path, init = {}) => {
  const res = await fetch(BASE + path, {
    ...init,
    headers: { "x-api-key": process.env.OOEEX_KEY, "content-type": "application/json", ...init.headers },
  });
  const body = await res.json();
  if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message} ${JSON.stringify(body.error.details ?? {})}`);
  return body.data;
};

const keys = readFileSync("accounts.txt", "utf8"); // one key per line
const listing = {
  title: "Steam account | full access",
  price: "4.99",
  category: "Steam",
  region: "Global",
  keyFormat: "email:password",
  guaranteeDays: 7,
  keys,
};

// 1. Dry run: which lines would be refused, and why (masked previews only).
const check = await api("/listings/validate", { method: "POST", body: JSON.stringify(listing) });
console.log(check.intake.summary, check.intake.rejections, check.intake.screenedOut);

// 2. Create. Reuse the same Idempotency-Key if you retry this request.
const created = await api("/listings", {
  method: "POST",
  headers: { "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify(listing),
});
console.log(created.listing.id, created.listing.status, created.intake.summary); // "pending"

// 3. Later: add more stock (≤ 5,000 keys per request).
const added = await api(`/listings/${created.listing.id}/keys`, {
  method: "POST",
  headers: { "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify({ keys: readFileSync("more.txt", "utf8") }),
});
console.log(added.added, added.stock);

// 4. Sales and balance.
const { sales } = await api("/sales?limit=20");
const balance = await api("/balance");
console.log(sales.length, balance.available, balance.held);

Errors

Errors return { "error": { "code", "message", "details?" } } with a matching HTTP status — e.g. 402 insufficient_balance, 402 spend_limit_exceeded (the key's daily limit), 401 unauthorized, 403 forbidden (e.g. a missing scope), 404 not_found, 400 validation_error (field errors in details.fields), 429 rate_limited, 409 idempotency_conflict, 409 conflict (e.g. the order total is above your maxTotal, or an actor's price changed while a run with maxTotalChargeUsd was starting — re-check and retry). Over MCP an error is a tool result with isError: true whose text explains what to change.

© 2025 ooeex. All rights reserved.