# eBay AI Listing Optimizer & Description Generator (`magic-scraper/ebay-listing-optimizer`) Actor

Optimize one eBay listing with AI: ten 78-80 character titles, official Item Specifics and an HTML description modeled on top-selling competitors and your photos.

- **URL**: https://apify.com/magic-scraper/ebay-listing-optimizer.md
- **Developed by:** [Magic](https://apify.com/magic-scraper) (community)
- **Categories:** E-commerce, AI, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 results

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

## 🏷️ eBay AI Listing Optimizer: SEO Titles, Item Specifics & HTML Descriptions

[![eBay AI Listing Optimizer](https://apify.com/actor-badge?actor=magic-scraper/ebay-listing-optimizer)](https://apify.com/magic-scraper/ebay-listing-optimizer)
![Free Tier](https://img.shields.io/badge/Free%20Tier-%245%20%3D%20100%20listings-success?style=flat-square)
![No Cookies Required](https://img.shields.io/badge/Cookies-Not%20Required-success?style=flat-square)
![Pay-Per-Result](https://img.shields.io/badge/Pricing-$0.05%20per%20listing-blue?style=flat-square)
![Parallel](https://img.shields.io/badge/Batch-1--10%20listings%20in%20parallel-blue?style=flat-square)
![Speed](https://img.shields.io/badge/Speed-1--2%20min%20per%20batch-blue?style=flat-square)
![Export](https://img.shields.io/badge/Export-JSON%20|%20CSV%20|%20Excel%20|%20HTML-orange?style=flat-square)

Paste 1 to 10 eBay listing IDs and get ready-to-review rewrites in parallel: **ten keyword titles of 78–80 characters**, **Item Specifics mapped to eBay's official category aspects**, a **new HTML description in one of four templates** and an audit that cites where every fact came from.

The actor studies competitor titles in the same category and product niche via official eBay APIs, reads your listing's own text and up to five of its photos via Vision AI, and lets an AI model rebuild the listing from those facts. The AI model is included in the price; no API key or proxy is needed.

> 🚀 **Try it now:** open the Input tab, keep the prefilled listing IDs or paste your own, and press **Start**. All listings are processed simultaneously.

***

### 👥 Who is this for?

- **eBay sellers** who want listings that match how buyers search and how top sellers fill the category.
- **Listing agencies and VAs** who rewrite batches of listings by hand and need sourced first drafts.
- **Resellers and dropshippers** moving stock into unfamiliar categories with many required aspects.
- **E-commerce tool builders** who need an API that turns eBay listings into structured optimization packages.

***

### ⚖️ How it compares

| | **This actor** | Typical eBay scraper actors | Generic AI copywriter |
| :--- | :--- | :--- | :--- |
| Rewrites title, specifics and description | ✅ | ❌ returns raw data only | ✅ |
| Uses eBay's official category aspects and allowed values | ✅ all of them | ❌ | ❌ |
| Learns from top competitors in the niche | ✅ up to 10 leaders | ❌ | ❌ |
| Reads the listing's own photos | ✅ up to 5 via Vision AI | ❌ | ⚠️ manual upload |
| Cites the source of every added fact | ✅ | ❌ | ❌ |
| Batch parallel processing (1–10 items) | ✅ parallel | ❌ | ❌ |
| Browser / cookies / proxies required | ❌ none | varies | ❌ |
| Price | $0.05 per listing, AI included | per item scraped | per subscription |

***

### 📖 How to optimize eBay listings (3 steps)

1. **Enter the listings:** paste 1 to 10 complete 10–14 digit eBay item IDs or `ebay.com/itm/` URLs into 🔍 **eBay listing IDs or URLs**.
2. **Pick a design:** choose a 🎨 **Description template** (`clean`, `technical`, `catalog` or `premium`). Everything else has working defaults.
3. **Run and copy:** open the dataset for titles and specifics, or the key-value store for ready `DESCRIPTION_{itemId}.html` files and `AUDIT_{itemId}.md` reports.

***

### 💳 Pricing & free tier

| Event | Price |
| :--- | :--- |
| Optimized listing (dataset result) | **$0.05** |
| Actor start | $0.00005 per GB of run memory |

The AI model and official eBay API integrations are included. You are charged only when an optimized listing is saved: unavailable listings, 404s, and failed AI responses produce no charge and are skipped cleanly.

Apify's **$5 free monthly credit covers 100 optimized listings** ($5 / $0.05).

***

### 📥 Input parameters

| Parameter | Default | Description |
| :--- | :--- | :--- |
| 🔍 `itemIds` | prefilled examples | Array of 1 to 10 eBay listing IDs or `/itm/` URLs to process in parallel. |
| 🎨 `descriptionTemplate` | `clean` | HTML design: `clean`, `technical`, `catalog`, `premium`. |
| 📷 `analyzeImages` | `true` | Describe up to five listing photos via Vision AI before writing. |
| 🏆 `maxCompetitors` | 8 | Top competitor reference titles given to the AI (3–10). |
| ⏱️ `itemTimeoutSecs` | 300 | Time budget for collection and generation per listing (10–300 s). |
| 💾 `saveHtmlToKvs` | `true` | Save `DESCRIPTION_{itemId}.html` and `AUDIT_{itemId}.md`. |
| 🔑 `llmApiKey` | empty | Optional: your own OpenAI-compatible key to use another model. |
| 🌐 `llmBaseUrl` / 🤖 `llmModel` / 👁️ `llmVisionModel` | empty | Used only with your own key; defaults to OpenRouter `google/gemini-2.5-flash`. |
| 🔐 `ebayAccessToken` / `ebayClientId` / `ebayClientSecret` | empty | Optional: your own eBay application credentials. |

```json
{
  "itemIds": [
    "168820368378",
    "227470769942"
  ],
  "descriptionTemplate": "clean",
  "analyzeImages": true,
  "maxCompetitors": 8,
  "itemTimeoutSecs": 300
}
```

***

### 📤 Sample output (JSON)

A real record from a cloud run on a vinyl record listing, shortened: competitor details, the full taxonomy, image notes and HTML are cut.

```json
{
  "item_id": "168820368378",
  "url": "https://www.ebay.com/itm/168820368378",
  "category": {"id": "176985", "name": "Vinyl Records"},
  "original_listing": {
    "title": "R.E.M. - The Best Of REM In Time 1988-2003, 2-LP 180-gram Vinyl, NEW",
    "title_length": 68,
    "price": 30,
    "quantity_sold": 3,
    "condition": "New",
    "specifics": {"Artist": "R.E.M.", "Type": "LP", "Features": "180 Gram, 180-220 gram, Sealed", "UPC": "Does not apply"}
  },
  "competitor_benchmark": {
    "competitors_analyzed_count": 8,
    "velocity_monthly_p90": 61.5,
    "top_leaders": [
      {"item_id": "307258026370", "title": "My Chemical Romance The Black Parade Vinyl LP Death To All Who Oppose Picture", "quantity_sold": 3, "sales_velocity_monthly": 90, "price": 52.95}
    ]
  },
  "optimized_listing": {
    "optimized_title": "R.E.M. The Best Of R.E.M. In Time 1988-2003 2-LP 180 Gram Vinyl Record Album New",
    "title_length": 80,
    "selected_title_index": 0,
    "title_candidates": [
      "R.E.M. The Best Of R.E.M. In Time 1988-2003 2-LP 180 Gram Vinyl Record Album New",
      "R.E.M. - The Best Of R.E.M. In Time 1988-2003 2 LP 180g Vinyl Record New Sealed",
      "R.E.M. In Time: The Best of R.E.M. 1988-2003 2-LP Vinyl Record 180g New Sealed",
      "R.E.M. - In Time: The Best of R.E.M. 1988-2003 2 LP 180g Vinyl Record New Sealed",
      "R.E.M. The Best Of R.E.M. In Time 1988-2003 2 LP 180-Gram Vinyl Album New Sealed",
      "The Best Of R.E.M. In Time 1988-2003 2 LP 180-Gram Vinyl Record Album New Sealed",
      "R.E.M. The Best Of REM In Time 1988-2003 2-LP 180-Gram Vinyl Record Album Sealed",
      "R.E.M. In Time The Best Of R.E.M. 1988-2003 2 LP 180g Vinyl Record Album Sealed",
      "R.E.M. - The Best Of R.E.M. In Time 1988-2003 2LP 180g Vinyl Record Album Sealed",
      "R.E.M. The Best Of R.E.M. In Time 1988-2003 2-LP Vinyl Record 180g Greatest Hits"
    ],
    "item_specifics": {
      "Artist": ["R.E.M."],
      "Type": ["Double LP"],
      "Record Label": ["Craft Recordings"],
      "Catalog Number": ["CR00188"],
      "Features": ["180-220 gram", "Sealed"],
      "Speed": ["33 RPM"],
      "Record Size": ["12\""]
    },
    "llm_qa": {
      "ready_to_publish": true,
      "conflicts": [],
      "changed_or_omitted_original_specifics": [
        {"aspect": "Type", "original_value": "LP", "new_value": "Double LP", "reason": "Specified as Double LP based on hype sticker '2 LPs' and description '2-LP'."},
        {"aspect": "Release Year", "original_value": "1988", "new_value": "2003", "reason": "Updated to compilation copyright date 2003 visible on back cover credit line (1988 was the starting year of the retrospective era)."}
      ]
    },
    "recommendations": ["Retain the UPC barcode and catalog number CR00188 in item specifics to optimize catalogue matching and collector discovery."],
    "description_template": "clean",
    "html_description": "<div style=\"max-width:850px;margin:0 auto;...\">...</div>"
  },
  "ebay_api_usage": {"total_calls": 6, "call_limit": 10},
  "processing_seconds": 142.8
}
```

This run took 150 s and 105 MB in the cloud; 39 competitor cards were inspected and 8 leaders were used. All ten titles measure 78–80 characters.

***

### ⚙️ How it works

1. **Source listing:** the listing page is read for its title, all Item Specifics, condition, variations, description and photo gallery.
2. **Official category schema:** eBay's Taxonomy API returns every aspect of the leaf category with its allowed values, required/recommended status and limits, including the separate eBay Motors tree.
3. **Competitor benchmark:** official eBay search queries find competing listings in the same category and product niche to extract title keyword distributions and proven selling patterns.
4. **Photos:** up to five of the listing's own full-size photos are analyzed via Vision AI: readable labels, barcodes, MPN codes, visible features and condition notes.
5. **Generation:** the AI model receives the source listing facts, photo vision notes, every official category aspect and competitor title patterns, and returns ten titles, specifics with source citations, description copy and a QA report.
6. **Title choice and rendering:** the first title measuring 78–80 characters is selected (otherwise the longest one up to 80, with a note); titles are never cut or rewritten. The copy is escaped and placed into the chosen HTML template.

Competitor listings show how to present the item; they never prove facts about your item. Facts come from your listing text and photos, and unknown required values stay empty with a note in `llm_qa.missing_required`.

| 🎨 Template | Design |
| :--- | :--- |
| `clean` | Clear overview, highlighted header and product sections. |
| `technical` | Technical header and bordered specifications. |
| `catalog` | Neutral catalog cards with a light background. |
| `premium` | Dark header, spacious layout and rounded detail blocks. |

All templates use inline CSS, a fluid width up to 850 px, your main product photo and a specifications table. Scripts and active content from source or competitor HTML are removed.

***

### ❓ FAQ

**Do I need an OpenAI or other AI key?**
No. The AI model is included in the $0.10 price. Supply `llmApiKey` only if you want to use your own provider and model; that provider then bills you for its usage.

**Do I need eBay developer credentials?**
No. The actor uses its own eBay application. You may pass your own `ebayClientId`/`ebayClientSecret` or `ebayAccessToken`.

**Does the actor change my live listing?**
No. It only reads public pages and returns a draft. You review it and copy what you want into eBay.

**Can I trust every fact in the output?**
Treat it as a sourced draft. Each added specific has a citation and the model reports conflicts, missing facts and assumptions in `llm_qa`. Review those fields before publishing; `ready_to_publish=false` means the model found something to check.

**How long does one listing take?**
Measured cloud runs take 60–140 seconds: competitor discovery (1–2 s), photo analysis (~20–25 s) and generation of ten titles with specifics and copy (the rest).

**Which eBay sites are supported?**
Listings reachable on `ebay.com` in any category, including eBay Motors parts.

**Is it legal?**
The actor reads publicly visible listing pages and official eBay APIs. You are responsible for how you use the generated content and for following eBay's listing policies.

***

### ⛔ What this Actor does not do

- It processes **one listing per run**; batch several listings by starting several runs or tasks.
- It does not log in to eBay, edit or publish listings.
- It does not use eBay sold-history (completed listings are login-protected); velocity is units sold divided by listing age.
- It does not search for identical twin listings or copy competitor facts into your listing.
- It does not verify product facts with code: AI output is a draft for your review.
- During eBay bot-protection waves listing pages can be refused for every proxy type; the run then reports the source as unavailable and charges nothing for a result.

***

### ⚠️ Disclaimer

This actor reads only publicly available listing data. It does not collect personal data about buyers. Generated text and specifics are suggestions; you remain responsible for their accuracy and for compliance with eBay policies and applicable law.

***

### 🔗 Related E-Commerce Actors

- 📇 [eBay Seller Contact Scraper](https://apify.com/magic-scraper/ebay-seller-contact-scraper) — Business name, address, phone and email of eBay sellers from item IDs.
- 🏷️ [Etsy Bestsellers & Tags Scraper](https://apify.com/magic-scraper/etsy-bestsellers-tags-scraper) — Etsy best sellers with their SEO tags, prices and shop data.
- 🔍 [TikTok Shop Search Scraper](https://apify.com/magic-scraper/tiktok-shop-search-scraper) — TikTok Shop products by keyword with live prices, units sold and estimated revenue.

***

### SEO Keywords

eBay listing optimizer, eBay title generator, eBay SEO title optimizer, eBay item specifics generator, eBay description generator, eBay HTML description template, AI eBay listing writer, eBay competitor analysis, eBay best sellers research, eBay category aspects, eBay listing audit, eBay Cassini SEO, eBay listing improvement tool, optimize eBay listings with AI.

# Actor input Schema

## `itemIds` (type: `array`):

Enter 1 to 10 complete 10–14 digit eBay listing IDs or /itm/ URLs to optimize in parallel.

## `llmApiKey` (type: `string`):

Leave empty to use the built-in model included in the price. Provide your own OpenAI-compatible key only to choose another provider/model; its usage is then billed by that provider.

## `llmBaseUrl` (type: `string`):

Used only with your own key. Defaults to https://openrouter.ai/api/v1. A bare server address gets /v1; custom API paths such as /v1beta/openai are preserved.

## `llmModel` (type: `string`):

Used only with your own key. Defaults to google/gemini-2.5-flash. Needs Chat Completions, JSON output and image input.

## `maxCompetitors` (type: `integer`):

Top velocity examples from the inspected category/Type sample, included in the LLM context (3–10).

## `itemTimeoutSecs` (type: `integer`):

Time budget for source collection, competitor sampling and LLM generation. Larger budgets allow longer LLM requests within the remaining time. Timed-out or unreadable responses are skipped.

## `analyzeImages` (type: `boolean`):

Use a separate vision request to describe up to three source images before final generation. Uncertain observations are marked; requires a vision-capable model.

## `llmVisionModel` (type: `string`):

Used only with your own key: an image-capable model on the same provider. When omitted, uses llmModel.

## `descriptionTemplate` (type: `string`):

The complete selected HTML template is supplied to the LLM and filled with its product copy and specifics.

## `saveHtmlToKvs` (type: `boolean`):

Save DESCRIPTION\_{itemId}.html and AUDIT\_{itemId}.md after the dataset result is accepted. Full copies are always in the dataset.

## `ebayAccessToken` (type: `string`):

Optional OAuth token for Browse search and official category Taxonomy. All listing cards are read from the website; no API detail calls.

## `ebayClientId` (type: `string`):

Production App ID. Pair with Client Secret for search and category Taxonomy. Official category aspects are required for generation. Listing details come from the website.

## `ebayClientSecret` (type: `string`):

Production Cert ID from eBay Developers Program. Must be paired with Client ID. Credentials can also be configured as actor environment variables.

## Actor input object example

```json
{
  "itemIds": [
    "168820368378",
    "227470769942"
  ],
  "maxCompetitors": 8,
  "itemTimeoutSecs": 300,
  "analyzeImages": true,
  "descriptionTemplate": "clean",
  "saveHtmlToKvs": true
}
```

# Actor output Schema

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

Full packages and source provenance in the default dataset.

## `files` (type: `string`):

List DESCRIPTION\_{itemId}.html and AUDIT\_{itemId}.md records when KVS exports are enabled.

# 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 = {
    "itemIds": [
        "168820368378",
        "227470769942"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("magic-scraper/ebay-listing-optimizer").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 = { "itemIds": [
        "168820368378",
        "227470769942",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("magic-scraper/ebay-listing-optimizer").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 '{
  "itemIds": [
    "168820368378",
    "227470769942"
  ]
}' |
apify call magic-scraper/ebay-listing-optimizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,magic-scraper/ebay-listing-optimizer"
        }
    }
}
```

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/u3LaCry1WUN2KhZiD/builds/E7BKcNBOKySHbtuqF/openapi.json
