> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alura.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimize a listing

> Use your listing's content, sales and search evidence to make a focused change, then check the results

Your instructions decide what changes. Tell your assistant the listing, the fields to improve, the language and any wording to keep. The listing score rates content against Alura's checks. A higher score does not promise more traffic or sales.

These steps work in an AI assistant connected to Alura's [MCP server](https://docs.alura.io/connect-ai.md), and each one names the tools it uses. Scripts can follow the same steps through the REST API, since every tool on the [MCP tool pages](https://docs.alura.io/mcp/tools.md) links its endpoint.

**1. Choose the listing**

Use `search_my_listings` to compare your active listings and their synced sales over a period. If you already have the listing ID, start with `get_my_listing`. Unknown sales are not zero sales.

**2. Check what needs work**

Ask `get_my_listing` for `include: ["score_breakdown"]`. Each check gives its advice, the field that fixes it and `total_if_fixed`, the score the listing would reach with that one check fixed. That number rates content. It is not a sales forecast.

A script reads the same breakdown with `GET /v1/workspace/listings/{id}?expand=score_breakdown`. This one lists the failed and partial checks, the one that lifts the score most first:

```bash cURL theme={null}
curl --fail-with-body -sS -G https://api.alura.io/v1/workspace/listings/1834720561 \
  -H "Authorization: Bearer $ALURA_API_KEY" \
  --data-urlencode "expand=score_breakdown"
```

```typescript TypeScript theme={null}
interface Check {
  id: string;
  label: string;
  status: 'pass' | 'partial' | 'fail' | 'na';
  total_if_fixed: number;
  field: string;
  advice: string;
}
interface Listing {
  title: string;
  score_breakdown: { total: number; sections: { id: string; checks: Check[] }[] } | null;
}

const res = await fetch('https://api.alura.io/v1/workspace/listings/1834720561?expand=score_breakdown', {
  headers: { Authorization: `Bearer ${process.env.ALURA_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const listing = (await res.json()) as Listing;
const breakdown = listing.score_breakdown;
if (!breakdown) throw new Error('no score breakdown for this listing');

// The failed and partial checks (na: the check does not apply), biggest gain first. total_if_fixed rates content, not sales.
const open = breakdown.sections.flatMap((s) => s.checks.map((c) => ({ ...c, section: s.id }))).filter((c) => c.status === 'fail' || c.status === 'partial');
open.sort((a, b) => b.total_if_fixed - a.total_if_fixed);
console.log(`${listing.title}: ${breakdown.total}`);
for (const c of open) console.log(`${c.section}/${c.id} (${c.field}): ${c.total_if_fixed} once fixed. ${c.advice}`);
```

```python Python theme={null}
import json
import os
import urllib.request

request = urllib.request.Request(
    "https://api.alura.io/v1/workspace/listings/1834720561?expand=score_breakdown",
    headers={"Authorization": f"Bearer {os.environ['ALURA_API_KEY']}"},
)
with urllib.request.urlopen(request) as response:
    listing = json.load(response)

breakdown = listing["score_breakdown"]
if breakdown is None:
    raise SystemExit("no score breakdown for this listing")

# The failed and partial checks (na: the check does not apply), biggest gain first. total_if_fixed rates content, not sales.
checks = [dict(c, section=s["id"]) for s in breakdown["sections"] for c in s["checks"] if c["status"] in ("fail", "partial")]
checks.sort(key=lambda c: -c["total_if_fixed"])
print(f"{listing['title']}: {breakdown['total']}")
for c in checks:
    print(f"{c['section']}/{c['id']} ({c['field']}): {c['total_if_fixed']} once fixed. {c['advice']}")
```

Check that the photos and product details support any wording you add. Before you replace a long description, read it whole with `include: ["description"]`.

**3. See how shoppers find it**

Check `get_my_shop_live` first to see whether live data is available for the shop. It is free. With Chrome open, the Alura extension installed and logged in to Etsy for the shop, `get_my_traffic` shows where the listing's visits came from, and `get_my_search_terms` shows the searches that brought them. Keep Etsy search visits apart from Google, ads and social traffic. Organic search terms report visits, not impressions or clicks.

Without the extension, skip this step. Work from the listing's content, its synced sales and keyword research, and say that traffic and search terms were not available.

**4. Check ad searches**

If the listing is advertised, `get_my_ad_search_terms` shows the recent searches that showed its ad, with clicks and orders. Relevant terms with orders or clicks can guide the wording. Impressions alone do not show a sale. The report covers about the last 30 days and can be sparse, so it is not a record of every search or sale.

This step also needs the extension. Without it, or when the listing has no ads, skip it and say so.

**5. Compare keyword ideas**

Use `get_keyword_metrics` to compare a few relevant phrases in the listing's language. Start with the searches you found, the current tags and some alternatives that describe the product. Etsy search volume and competition help you compare ideas, but they do not predict your listing's traffic. A missing number is unknown, not zero.

Give your assistant a research budget. Without one, it keeps to about twenty API credits per listing.

**6. Review the proposal**

Ask for a readable title and distinct, relevant tags within Etsy's current rules from `get_listing_rules`. Keep supported product details and wording that already brings visits, unless you want a new direction. Preview only the fields you chose with `update_my_listing` and `dry_run: true`. A preview is free and writes nothing. Before you confirm, note the listing's current visits, search terms and sales.

**7. Confirm and verify**

The write waits for your confirmation. Afterwards, check the returned change and the listing. If the change is still applying or its outcome is unknown, check it with `list_my_changes` until it is final, and don't send the write again. A partial change lists its failed fields in `failed_fields`. A field with `not_applied` did not land, and one with `outcome_unknown` may have, so read the listing again before you send another write. Keep the original text and the change ID.

**8. Check the results**

Compare the same measures for equal periods before and after the edit, about 30 days each. A 14-day check gives an early direction, and a listing with little traffic may need 60 days. Leave out the day of the edit. Account for promotions, ad changes and other edits in the same period.

Without the extension, compare synced sales and say that traffic data was missing. Small numbers may not show whether the edit helped.

## Ask your assistant

Fill in the brackets and send this prompt:

```text theme={null}
Optimize listing [listing ID] for [goal], changing only [title, tags, description].
Follow my rules: [wording to keep, language, tone].
Read the listing, its sales and its score breakdown. If available, read its traffic,
organic searches and ad searches, and tell me what evidence is missing.
Compare a few relevant keyword ideas within [20] API credits.
Keep truthful wording that already works.
Show me the exact change as a preview, wait for my confirmation, check the result
and tell me what to compare in [30] days. A higher score is not proof of more sales.
```

## Good to know

* **Live Etsy data needs the extension.** Traffic, organic search terms and ad search terms need Chrome open with the Alura extension, logged in to Etsy for the shop. Listing reads, keyword research and listing updates do not. When a shop can't provide live data, the answer says what to do. See [Using the Chrome extension](https://docs.alura.io/api-reference/chrome-extension.md).
* **Reads and research use API credits.** Each tool's description ends with its cost. A dry-run preview is free.
* **Nothing runs on its own.** The assistant changes a listing only when you ask, and only after you confirm. A results check is a step you plan. Alura does not send a reminder.

## Next steps

> [card] [Listing score](https://docs.alura.io/methodology/listing-score.md)
>
> What each content check means.

> [card] [Keyword research](https://docs.alura.io/guides/keyword-research.md)
>
> Compare demand and competition.

> [card] [Live shop data](https://docs.alura.io/mcp/tools/live-data.md)
>
> Traffic and search terms for your listings.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.