AI and API

Use NinjaBuy in ChatGPT and Claude

Connect NinjaBuy to your AI assistant to shop through your account, follow your orders, make NinjaBuy links and tell us what you need.

NinjaBuy has a connector for AI assistants. Once it's connected, your assistant works with your NinjaBuy account, only when you ask it to: it can shop for you, follow your orders, and share your finds as NinjaBuy links that are yours. This page lists exactly what the connector can do right now; when we switch more on, it shows here.

Shopping. It can:

  • Find and compare products. Search Taobao and 1688, page through what creators' finds sheets list most, find the same item from other sellers, and read any listing's options, prices and stock.
  • Follow your orders. Your orders, each item's status, what has reached our warehouse, your parcels and their tracking numbers.
  • See what you've saved. Your cart, your lists, the products you're waiting on, your cancellation and return requests, your notifications and your support chat.
  • Answer from our rules. It reads our help pages (fees, shipping, returns, what we won't buy or ship) instead of guessing.

See Track your parcels below.

Paying by card, shipping and cancelling stay with you. For those, your assistant sends you to the NinjaBuy page to do it: it can tell you what paying or shipping would cost and what's in your wallet, but no card is charged and nothing is shipped or cancelled until you do it there yourself.

Changes you ask for. It can also change your account for you: add to your cart (including an item we have no listing for, or a gift card), change cart lines or save them for later, keep your lists, ask us to tell you when a product is back, follow sellers, apply a promotion code or claim a first-shipment deal, retire a checkout link you shared, withdraw a cancellation or return request, message our support team or edit and take back your own messages, mark notifications read, make share links, convert a finds sheet, and change the currency prices show in and your language. Each change happens as soon as you ask, and your assistant checks with you before anything that removes something.

Spending your balance. When you ask, it can also spend your NinjaBuy balance (on a NinjaBuy Business team, the team owner's) through the tools listed below, the same way their buttons on NinjaBuy do. It never charges a card, tops up your balance or refunds anything: adding money stays with you on NinjaBuy.

Links. It can:

  • Make links. Give it Taobao, Tmall, Weidian or 1688 product links, product links from other shopping agents, their short links, a Weidian or Taobao shop (its own link, or another agent's page for it), or any NinjaBuy page (a product, a seller, a finds sheet, a search). It hands back a NinjaBuy link for each, up to 100 per request. A link it can't read comes back with a note saying why.
  • Name them. Add a campaign (for example spring-haul) to group a batch, and a label (for example "bio link") to tell one link from another. The same page under a different campaign or label gets its own link; asking again with the same ones gives you the same link.
  • Make a lot at once. More than 100 links (up to 2,000) run as a job in the background: your assistant gets a job id, checks back until it's done, then reads the same links it would have got one request at a time.
  • Show how they're doing. Your links, newest first, with clicks, sign-ups and orders: the same figures as your links page on NinjaBuy. It can also list your jobs (batches of links, sheets you pasted on NinjaBuy) and how far each has got.
  • Learn how NinjaBuy works. It can read our guides on how links are counted, which links we read, and how to turn finds into posts.
  • Pass on feedback. Questions, problems and feature requests go straight to the NinjaBuy team.

The connector is in beta. If it can't do something you need, ask your assistant to send us feedback: that is how we decide what to add next.

Connect it

You sign in with your normal NinjaBuy phone number. The connector address is:

https://www.ninjabuy.com/mcp

Claude

  1. Open Settings › Connectors and choose Add custom connector.
  2. Paste the address above and add it.
  3. Sign in with your NinjaBuy phone number when prompted, then choose Allow access on the NinjaBuy approval screen.

ChatGPT

  1. Turn on developer mode in Settings, then add a custom MCP server (under plugins or connectors, depending on your plan).
  2. Paste the address above and choose OAuth as the sign-in method.
  3. Sign in with your NinjaBuy phone number when prompted, then choose Allow access on the NinjaBuy approval screen.

Menu names change as the assistants update; look for "custom connector" or "custom MCP server".

Claude Code and other command-line assistants

Bash
claude mcp add --transport http ninjabuy https://www.ninjabuy.com/mcp

The first call opens the NinjaBuy sign-in in your browser, then an approval screen. A sign-in lasts a while and then asks again; that is normal.

The approval screen shows the app's name and the address it will send you back to. Only allow an app you just asked to connect; choose Don't allow otherwise. You approve each app once.

Using NinjaBuy through an assistant costs you nothing extra: search, links, stats and docs are free, the same as on the site.

Available tools

This list comes from the connector itself, so it shows exactly the tools it has right now. Each tool is named as your assistant names it, with the title your assistant shows for it (in English).

Links and guides, whenever the connector is on:

  • get_account: Show my NinjaBuy account
  • read_guide: Read a NinjaBuy guide
  • create_links: Create NinjaBuy links
  • list_jobs: List my NinjaBuy jobs
  • get_job: Show one NinjaBuy job
  • list_links: List my NinjaBuy links
  • get_link: Show one NinjaBuy link
  • send_feedback: Send feedback to NinjaBuy

list_links and list_jobs accept a cursor and a limit of 1 to 25 (default 25). Follow returned cursors while has_more is true. Tool replies include warnings; a large reply may have truncated: true. For a running batch, retain its result cursor and respect poll_after_seconds even if has_more is false.

create_links shares the 30-calls-per-minute quota with REST. For application integrations and full REST result pages, use the REST quickstart with the same OAuth token.

Reading products, NinjaBuy's rules and your own account. These change nothing:

  • search_products: Search Taobao and 1688
  • search_sheet_finds: Page through finds-sheet products
  • related_finds: What finds sheets list with a product, shop or sheet
  • get_product: Read a product, or find it from other sellers (details, similar)
  • get_orders: My NinjaBuy orders and requests (list, one, requests)
  • get_warehouse: My NinjaBuy warehouse
  • get_cart: My NinjaBuy cart
  • get_lists: My NinjaBuy lists and watched products (all, one, watches)
  • get_inbox: My notifications and support chat (notifications, support)
  • read_help: Read NinjaBuy's help pages
  • recent_activity: Recent activity
  • my_teams: My NinjaBuy Business teams
  • team_members: A Business team's members
  • invite_teammate: Invite someone to a Business team
  • change_teammate_role: Change a teammate's role
  • remove_teammate: Remove someone from a Business team
  • my_channels: My connected stores
  • store_listings: My synced listings
  • sync_rules: My sync rules
  • store_orders: My store orders
  • auto_buy_settings: My auto-buy switch
  • payment_request: Check a payment request

Sending you to the NinjaBuy page. These never pay, charge, ship or cancel anything: each tells you what it would take and gives you the NinjaBuy page where you do it yourself.

  • quote_shipping: Price shipping my warehouse items
  • checkout_cart: Cart total and checkout page
  • get_ninjabuy_page: NinjaBuy page to pay or confirm (order_bill, top_up, add_card, cancel_shipment, decline_adjustment, cancel_or_return)

Changing your account when you ask. Your assistant asks you before one that removes something (a list, something on a list, a support message).

  • add_to_cart: Add to my NinjaBuy cart (product, custom_item)
  • change_cart: Change or remove lines in my cart (set_quantity, update_lines, edit_custom_item, save_for_later, apply_promo, remove_promo, retire_checkout)
  • add_to_lists: Save to my lists, watch a product or follow a seller (create_list, save_product, save_sheet, watch_product, follow_seller)
  • change_lists: Change or remove my lists, watches and follows (update_list, remove_product, set_note, remove_sheet, delete_list, move_to_cart, unwatch_product, unfollow_seller)
  • message_support: Message NinjaBuy support
  • change_account: Change my settings, notifications and requests (set_currency, set_language, mark_read, dismiss_notification, withdraw_request, claim_deal)
  • share_finds: Make a share link or convert a finds sheet (share_link, convert_sheet)
  • check_listings_now: Check listings now
  • resume_listing: Resume a paused listing
  • set_sync_rules: Change my sync rules
  • reset_sync_rules: Go back to the default sync rules
  • turn_on_auto_buy: Turn auto-buy on
  • turn_off_auto_buy: Turn auto-buy off
  • buy_anyway: Buy a held store order anyway
  • dont_buy: Don't buy a store order
  • try_again: Try a stopped store order again
  • price_for_marketplace: Price a product for a marketplace
  • import_product: Import a product into the store (preview)
  • push_to_shopify: Push to Shopify

Spending your balance, when you ask. Each of these spends your NinjaBuy balance as its button on NinjaBuy does:

  • turn_on_auto_buy: Turn auto-buy on
  • buy_anyway: Buy a held store order anyway
  • try_again: Try a stopped store order again

Building your own app? Following your account's events, by polling or webhook, is on MCP events.

Track your parcels

Sign in and ask NinjaBuy AI, or your connected assistant, about the shipments on your account. When live tracking is available, it gives you each parcel's status, the carrier's name and a 17TRACK link. It can read up to five recent scans, including when and where they happened if the carrier supplied a location, and tell you when tracking last synced and any delivery estimate the carrier has provided.

  • "Which of my parcels are still on the way?"
  • "Where was my latest parcel last scanned?"
  • "Does my parcel have a delivery estimate? Give me the 17TRACK link."

Tracking updates come from carrier scans. Between scans your assistant can't tell you the parcel's exact location, and it can't guarantee a delivery date. If live tracking is unavailable or there are no scans yet, it can still give you the tracking number once your shipment has one.

What to ask

  • "Find a lightweight two-person tent under ¥400 and compare the three best."
  • "What do creators' finds sheets list most for hoodies with QC photos?"
  • "Where is my last parcel?"
  • "Can NinjaBuy ship perfume to Canada?"
  • "What's in my warehouse, and what would shipping it all cost?"
  • "Add the cheapest of those to my cart, size M."
  • "Make a list called 'Winter' and save these three to it."
  • "Convert these Taobao links to NinjaBuy links: …"
  • "Make NinjaBuy links for these 20 products under the campaign spring-haul, and label them 'video 3'."
  • "Make a NinjaBuy link to this seller's page: …"
  • "Which of my NinjaBuy links got the most clicks this month?"
  • "Tell NinjaBuy I'd like links for a whole sheet at once."

Use it with a Google Sheet

Ask your assistant to convert it. Give it the sheet's link and it starts NinjaBuy's spreadsheet converter, which makes a copy whose product links are your NinjaBuy links. It takes a while; your assistant gives you the page where you watch it and download the copy.

Other ways to get NinjaBuy links into a sheet:

  • Paste the sheet on ninjabuy.com. Paste the sheet's link into the search bar and NinjaBuy builds its own copy of your finds; see Shop from a Google Sheet.
  • Let your assistant do it. If your assistant also has a Google Drive or Sheets connector, ask it to read the column of product links, make NinjaBuy links for them, and write those links into a new column.

A Sheets formula that makes NinjaBuy links isn't available yet.

What your assistant gets

  • Only what you ask for goes back and forth: what you send (a search, links, a campaign or label, feedback) and NinjaBuy's answers. When you ask about them, those answers include your links' click, sign-up and order counts, never who clicked.
  • NinjaBuy never sees your chat with the assistant.

When you ask, NinjaBuy's answers also include your orders, parcels, warehouse items, cart, lists and support chat.

When you ask what paying or shipping would cost, they include your wallet balance.

More in the Privacy Policy.

Disconnect

Remove the connector in your assistant's settings. Sign-ins also expire on their own: access lasts 1 hour and is renewed for up to 7 days, after which you sign in again.