Developers

Show Sourcing API

Show Sourcing has two ways for your own code and AI tools to reach your team's products and vendors:

  1. REST API (v1): plain JSON over HTTPS. Use it from any language, script or no-code tool.
  2. MCP server: for Claude, ChatGPT, Claude Code and other MCP apps. See MCP server below.

Both use the same token. Machine-readable spec: https://showsourcing.app/openapi.json. This page as plain text: https://showsourcing.app/docs/api.md.

Quick start

  1. In the app, open Settings > AI Connection & API and tap Create token. Copy it.
  2. Put it in your terminal:
export SS_TOKEN="ss_xxxxxxxx"

Then ask for your 5 newest products:

curl -H "Authorization: Bearer $SS_TOKEN" \
  "https://api.showsourcing.app/v1/products?limit=5"

You get JSON back, like the example under List products. The examples below show the same in JavaScript, Python and Google Sheets.

REST API (v1)

Base URL: https://api.showsourcing.app. All routes start with /v1, so a full address looks like https://api.showsourcing.app/v1/products.

The older long address https://api.showsourcing.app/functions/v1/api/v1/... also works. Every request and response is JSON.

Auth

The API uses the same token as the AI Connection. One token works for both.

  1. In the app (iPhone, iPad, Mac or Android), open Settings > AI Connection & API.
  2. Tap Create token. To add data, turn on "Can add products and vendors". The app shows the token once.
  3. Send it in a header on every request:
Authorization: Bearer ss_xxxxxxxx

X-API-Key: ss_xxxxxxxx also works.

A token is tied to one team. It can only see that team's data. A token is read-only unless you made it with write access. Revoke a token in the app and it stops working at once.

A token stops working when its owner leaves the team. Make a new one.

Plans

Routes

RouteWhat it does
GET /v1/productsList and search products
GET /v1/products/{id}One product, with photo links
POST /v1/productsAdd a product (write token)
GET /v1/vendorsList and search vendors
GET /v1/vendors/{id}One vendor
POST /v1/vendorsAdd a vendor (write token)

There is no update or delete in v1.

List products

GET /v1/products?q=&limit=&offset=&updated_since=

ParameterMeaning
qSearch text (max 200 characters). Matches vendor, category, notes, venue and the photo description.
limitRows to return. Default 50, maximum 200.
offsetRows to skip. Default 0.
updated_sinceISO 8601 date. Only products changed at or after it. These come oldest change first, so you can page through changes.

Without updated_since, newest products come first.

curl -H "Authorization: Bearer $SS_TOKEN" \
  "https://api.showsourcing.app/v1/products?q=lamp&limit=2"
{
  "data": [
    {
      "id": "6f1c0a52-8d54-4a4b-9a43-0d7a1f3c9e10",
      "vendor": "Shenzhen ABC",
      "vendor_id": "95d5aa80-5433-487f-bbc1-29c3f2434d41",
      "category": "Lamps",
      "fob": 4.2,
      "currency": "USD",
      "price_term": "FOB",
      "moq": 500,
      "container_qty": 4000,
      "package_cbm": null,
      "country_of_origin": ["China"],
      "tariff_override": null,
      "tags": ["led", "desk"],
      "specs": "USB powered, 3 brightness levels",
      "venue": "Canton Fair",
      "status": null,
      "photo_count": 3,
      "photo_description": "a white desk lamp on a table",
      "created_at": "2026-11-01T10:00:00+00:00",
      "updated_at": "2026-11-02T09:30:00+00:00",
      "thumbnail": "https://api.showsourcing.app/storage/v1/object/sign/Media/..."
    }
  ],
  "count": 1,
  "total": 1,
  "limit": 2,
  "offset": 0,
  "has_more": false
}

thumbnail is a link to the first photo. It is set for the first 30 rows of a page. It expires after 7 days. photo_description is written by a machine. It is often wrong. Do not treat it as fact.

Get one product

curl -H "Authorization: Bearer $SS_TOKEN" \
  "https://api.showsourcing.app/v1/products/6f1c0a52-8d54-4a4b-9a43-0d7a1f3c9e10"

It returns the same fields as the list, plus photos: up to 8 photo links (images only, no videos). The links expire after 7 days.

Add a product

POST /v1/products with a write token.

curl -X POST -H "Authorization: Bearer $SS_TOKEN" -H "Content-Type: application/json" \
  -d '{"vendor":"Shenzhen ABC","name":"LED desk lamp","category":"Lamps","fob":4.2,"currency":"USD","moq":500,"notes":"USB powered","tags":["led","desk"]}' \
  "https://api.showsourcing.app/v1/products"

It returns 201 and the new product. The product shows up on the team's phones through normal sync.

FieldTypeNotes
vendorstring, max 200Vendor name. If the team has a vendor with this name (case ignored), the product links to it. If not, a new vendor with this name is created.
vendor_idUUIDLink to an existing vendor. Use this or vendor.
namestring, max 200Product name. The app has no name field, so it is saved as the first line of the notes.
categorystring, max 100
fobnumber, 0 to 1,000,000,000FOB price per unit.
currencystring3-letter code. Default USD.
price_termstringFOB, CIF, EXW or DDP.
moqwhole numberMinimum order quantity.
container_qtywhole numberUnits per container.
specs or notesstring, max 5000Notes (the app calls this field Notes). If you send both, they are joined.
tagsarray of strings, or one comma listMax 30 tags, 50 characters each.
country_of_originarray of strings, or one comma listMax 10.
venuestring, max 200Show or place.

Send at least one of vendor, vendor_id, name, category, fob, specs, notes. Other fields return 400 unknown_field. Photos are not part of v1. Add photos in the app.

List vendors

GET /v1/vendors?q=&limit=&offset=

q matches the vendor name. Rows come sorted by name. limit and offset work as for products.

curl -H "Authorization: Bearer $SS_TOKEN" \
  "https://api.showsourcing.app/v1/vendors?q=shenzhen"
{
  "data": [
    {
      "id": "95d5aa80-5433-487f-bbc1-29c3f2434d41",
      "name": "Shenzhen ABC",
      "contacts": [{ "name": "Cindy Liu", "title": "Sales" }],
      "emails": ["[email protected]"],
      "phones": [{ "type": "office", "number": "+86 755 0000 0000" }],
      "websites": ["https://abc.example"],
      "wechats": [],
      "addresses": ["12 Example Road, Shenzhen, Guangdong, China"],
      "notes": null,
      "product_count": 4,
      "created_at": "2026-10-20T08:00:00+00:00",
      "updated_at": "2026-10-20T08:00:00+00:00"
    }
  ],
  "count": 1, "total": 1, "limit": 50, "offset": 0, "has_more": false
}

Get one vendor

GET /v1/vendors/{id} returns the same fields, plus photos: up to 4 photo links (business card photos).

Add a vendor

POST /v1/vendors with a write token.

curl -X POST -H "Authorization: Bearer $SS_TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"Shenzhen ABC","contact":"Cindy Liu","email":"[email protected]","phone":"+86 755 0000 0000","website":"https://abc.example","address":{"street":"12 Example Road","city":"Shenzhen","country":"China"}}' \
  "https://api.showsourcing.app/v1/vendors"

It returns 201 and the new vendor.

FieldTypeNotes
namestring, max 200Required.
contact / contactsname string, or {name, title}; or an array of themMax 20.
email / emailsstring, or array of stringsMust look like an email address. Max 20.
phone / phonesnumber string, or {number, type}; or an arraytype is mobile, office, fax or other. A plain string gets office. Max 20.
website / websitesstring, or array of stringsMax 10.
wechat / wechatsstring, or array of stringsWeChat IDs. Max 10.
address / addressesstring, or {street, city, state, postal_code, country}; or an arraySaved as one line. Max 10.
notesstring, max 5000

If the team already has a vendor with the same name (case ignored), the API returns 409 already_exists with the existing id. Other fields return 400 unknown_field.

Errors

Every error has this shape:

{ "error": { "code": "invalid_token", "message": "This token is not valid. It may be revoked." } }
StatusCodeWhen
400invalid_request, invalid_json, invalid_id, unknown_field, vendor_not_found, vendor_not_linkedBad input. The message says which field.
401missing_token, invalid_tokenNo token, an unknown token, or a revoked token.
402plan_requiredPOST with no plan and no trial.
403read_only_tokenPOST with a token that has no write access.
403no_team, team_changedThe token has no team, or its owner left the team.
404not_foundNo such route, or no such row in your team.
405method_not_allowedFor example DELETE. The Allow header lists what works.
409already_existsA vendor with this name exists.
429rate_limitedToo many requests. The Retry-After header gives seconds.
500internal_errorOur side. Try again.

Limits

Examples

Every example uses the token in SS_TOKEN and addresses that start with https://api.showsourcing.app/v1.

JavaScript (Node 18+ or a browser)

Search products and print vendor, price and MOQ:

const BASE = "https://api.showsourcing.app/v1";
const headers = { Authorization: `Bearer ${process.env.SS_TOKEN}` };

const res = await fetch(`${BASE}/products?q=speaker&limit=20`, { headers });
if (!res.ok) throw new Error((await res.json()).error.message);
const { data, total } = await res.json();

console.log(`${total} products match`);
for (const p of data) {
  console.log(`${p.vendor ?? "-"}  ${p.currency} ${p.fob ?? "?"}  MOQ ${p.moq ?? "?"}`);
}

Python: export every product to a CSV file

Pages through all products (200 at a time) and writes products.csv. Uses only the standard library.

import csv, json, os, urllib.request

BASE = "https://api.showsourcing.app/v1"
TOKEN = os.environ["SS_TOKEN"]
UA = "my-sourcing-script/1.0"  # any name; Python's default one is blocked

def get(path):
    req = urllib.request.Request(BASE + path, headers={"Authorization": f"Bearer {TOKEN}", "User-Agent": UA})
    with urllib.request.urlopen(req) as r:
        return json.load(r)

rows, offset = [], 0
while True:
    page = get(f"/products?limit=200&offset={offset}")
    rows += page["data"]
    if not page["has_more"]:
        break
    offset += page["count"]

fields = ["vendor", "category", "fob", "currency", "price_term", "moq", "container_qty", "venue", "tags", "updated_at"]
with open("products.csv", "w", newline="") as f:
    w = csv.writer(f)
    w.writerow(fields)
    for p in rows:
        w.writerow([", ".join(p[k]) if isinstance(p[k], list) else p[k] for k in fields])

print(f"Wrote {len(rows)} products to products.csv")

Python: get only what changed since the last run

Keep your own copy up to date. updated_since returns changes oldest first, so you can save the last updated_at and start there next time. It includes products changed at that exact time, so the last one comes back once more: match rows by id.

import json, os, pathlib, urllib.parse, urllib.request

BASE = "https://api.showsourcing.app/v1"
TOKEN = os.environ["SS_TOKEN"]
UA = "my-sourcing-script/1.0"  # any name; Python's default one is blocked
state = pathlib.Path("last_sync.txt")
since = state.read_text().strip() if state.exists() else "2000-01-01T00:00:00Z"

offset, changed = 0, []
while True:
    q = urllib.parse.urlencode({"updated_since": since, "limit": 200, "offset": offset})
    req = urllib.request.Request(f"{BASE}/products?{q}", headers={"Authorization": f"Bearer {TOKEN}", "User-Agent": UA})
    page = json.load(urllib.request.urlopen(req))
    changed += page["data"]
    if not page["has_more"]:
        break
    offset += page["count"]

print(f"{len(changed)} products changed since {since}")
if changed:
    state.write_text(changed[-1]["updated_at"])

Python: add products from a spreadsheet

Reads new_products.csv (columns vendor,category,fob,moq,notes) and adds each row. Needs a write token and a paid plan or free trial. Waits and tries again when the API says to slow down (429).

import csv, json, os, time, urllib.error, urllib.request

URL = "https://api.showsourcing.app/v1/products"
TOKEN = os.environ["SS_TOKEN"]
UA = "my-sourcing-script/1.0"  # any name; Python's default one is blocked

def add(product):
    body = json.dumps(product).encode()
    req = urllib.request.Request(URL, data=body, method="POST", headers={
        "Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json", "User-Agent": UA})
    for _ in range(3):
        try:
            return json.load(urllib.request.urlopen(req))
        except urllib.error.HTTPError as e:
            if e.code == 429:
                time.sleep(int(e.headers.get("Retry-After", "5")))
                continue
            raise RuntimeError(json.load(e)["error"]["message"])

with open("new_products.csv") as f:
    for row in csv.DictReader(f):
        p = {"vendor": row["vendor"], "category": row["category"], "notes": row["notes"]}
        if row["fob"]: p["fob"] = float(row["fob"])
        if row["moq"]: p["moq"] = int(row["moq"])
        print("Added", add(p)["id"])

Google Sheets: pull your products into a sheet

In Google Sheets: Extensions > Apps Script, paste this, put your token in place of ss_xxxxxxxx, and run loadProducts. It fills the active sheet.

function loadProducts() {
  const TOKEN = "ss_xxxxxxxx";
  const BASE = "https://api.showsourcing.app/v1";
  const rows = [["Vendor", "Category", "FOB", "Currency", "MOQ", "Venue", "Updated"]];
  let offset = 0, more = true;
  while (more) {
    const res = UrlFetchApp.fetch(`${BASE}/products?limit=200&offset=${offset}`,
      { headers: { Authorization: `Bearer ${TOKEN}` } });
    const page = JSON.parse(res.getContentText());
    page.data.forEach(p => rows.push([p.vendor, p.category, p.fob, p.currency, p.moq, p.venue, p.updated_at]));
    more = page.has_more;
    offset += page.count;
  }
  const sheet = SpreadsheetApp.getActiveSheet();
  sheet.clearContents();
  sheet.getRange(1, 1, rows.length, rows[0].length).setValues(rows);
}

Keep the token private: anyone with the sheet's script can read it. Use a read-only token here.

MCP server

The MCP server lets an AI app search your catalog in plain words ("which vendors had LED desk lamps under $5?"). You use your own AI account. We never see your AI key.

Tools

ToolWhat it does
search_productsSearch the team's products by vendor, category, specs, tags or photo description. Returns id, vendor, category, FOB price, MOQ and photo count.
get_productThe full record of one product, including LDP (landed duty paid, USD) and photos.
show_productsShows up to 12 products as one photo grid (photo, vendor, price, MOQ).
vendor_for_emailFinds the vendor an email address belongs to (exact address first, then the company domain) and lists its products.
list_vendorsThe team's vendors, with how many products each has. Optional name filter.

Connect

claude mcp add --transport http show-sourcing https://api.showsourcing.app/mcp --header "Authorization: Bearer $SS_TOKEN"

The app shows these steps with your real token filled in, under Settings > AI Connection & API.

Help

Questions or a missing endpoint: [email protected].