# Party City Costume, Balloon & Decor Price Tracker (`dataspryva/party-city-costume-balloon-and-decor-price-tracker`) Actor

Browse Party City costumes, balloons, tableware, and seasonal decor by category or keyword, or look up specific products. Get price, sale price, brand, and variant options like color, size, or theme.

- **URL**: https://apify.com/dataspryva/party-city-costume-balloon-and-decor-price-tracker.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## Party City Costume, Balloon & Decor Price Tracker

Track the live Party City catalog without an account, cookie, or API key. Pull products by category, run the storefront's full keyword search, look up exact items by handle/URL or product ID, fetch related-product recommendations, and export the complete collection taxonomy. Every record carries real prices, compare-at prices, discount depth, stock state, variant options, SKUs, barcodes, images, and optional customer ratings.

### What you can do

- **Browse a category** with cursor pagination and the site's actual sort orders: best-selling, featured, price, title, and newest/oldest.
- **Search the full index** — up to 1,000 matching products, not the 10-result predictive box.
- **Look up exact products** by handle, product URL, numeric product ID, or Shopify GID.
- **Find related items** with Shopify's related or complementary recommendation graph.
- **Export the taxonomy** — every live collection with its product count, banner image, and description.
- **Filter without extra runs** — price range, sale status, discount depth, brand, product type, title keyword, tags, SKU, and stock.
- **Add ratings on demand** — average score and review count from Party City's public review widget.

### Modes

| Mode | What it does |
|---|---|
| `byCategory` | Cursor-paginated collection browse with real server-side sorting. |
| `search` | Full product search (search index caps at 1,000 results). |
| `byHandles` | Exact product lookup by handle or product URL. |
| `byProductIds` | Batch lookup by numeric ID or `gid://shopify/Product/...`. |
| `relatedProducts` | Related or complementary products for seed products. |
| `listCollections` | Every live collection/category with product count and image. |

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `mode` | select | `byCategory` | One of the six modes above. |
| `category` | select | `birthday` | 78 built-in categories across birthdays, balloons, tableware, decor, costumes, and seasonal themes. |
| `categoryHandle` | text | – | Any other collection handle, URL, or path. Overrides `category`. |
| `searchQuery` | text | – | Required for `search`; supports the storefront's normal search syntax. |
| `productHandles` | array | – | Handles/URLs for `byHandles`; seed products for `relatedProducts`. |
| `productIds` | array | – | Numeric IDs or GIDs for `byProductIds`/`relatedProducts`. |
| `recommendationIntent` | select | `RELATED` | `RELATED` or `COMPLEMENTARY`. |
| `sortBy` | select | `best-selling` | Best-selling, featured, price, title, or created date. Search applies title/date sorts client-side over the 1,000-result set. |
| `maxItems` | integer | 20 | 1–10,000. Applies to products or collections. |
| `imageQuality` | select | `master` | Shopify CDN size: small, medium, large, grande, 1024, 2048, or master. |
| `minPrice` / `maxPrice` | number | – | Filter on the product's lowest variant price (USD). |
| `onSaleOnly` | boolean | false | Keep only products with a real compare-at price above the current price. |
| `minDiscountPercent` | integer | – | Minimum computed discount, 0–99. |
| `brandContains` | text | – | Case-insensitive vendor/brand substring. |
| `productTypeContains` | text | – | Case-insensitive product-type substring. |
| `productTypeEquals` | select | any | Exact product type from the full live list (72 values plus "Any"). |
| `titleContains` | text | – | Case-insensitive title substring. |
| `tagAnyOf` / `tagNoneOf` | array | – | Tag allowlist/blocklist (substring match). |
| `skuContains` | text | – | Match any variant SKU. |
| `includeUnavailable` | boolean | false | Keep products whose every variant is sold out. |
| `includeRatings` | boolean | false | Add `rating` and `reviewCount` (one extra public request per product). |
| `useApifyProxy` | boolean | false | Start through Apify proxy. The actor also auto-escalates after a real 403/429. |
| `requestDelaySecs` | integer | 1 | Pause between page fetches, 0–10. |

### Output

#### Product records

- **Identity:** `productId`, `handle`, `productUrl`, `title`, `brand`, `productType`, `taxonomyCategory`
- **Descriptions:** `description` (plain text), `descriptionHtml`, `seoTitle`, `seoDescription`
- **Taxonomy:** `category` (the browsed collection), `collections[]` (`handle` + `title`), `tags[]`
- **Pricing:** `price`, `maxPrice`, `comparePrice`, `maxComparePrice`, `discountPercent`, `onSale`, `currency`
- **Availability:** `available`, `availableVariantCount`, `variantCount`, `variantsTotal`
- **Store reach:** `inStockStores[]` and `inStockStoreCount` — derived from the store's own `in_stock_<store>` tags
- **Variants:** `skus[]` (up to 20) and `variants[]` (up to 30) with `variantTitle`, `sku`, `barcode`, `price`, `comparePrice`, `available`, `currentlyNotInStock`, `taxable`, `requiresShipping`, `weight`, `weightUnit`, `unitPrice`, `selectedOptions`, option values, and `variantImageUrl`
- **Media:** `imageUrl`, `images[]`, `imageWidth`, `imageHeight`, `imageAlt`, `videos[]`
- **Ratings:** `rating`, `reviewCount` (when `includeRatings` is on)
- **Recommendations:** `relatedToHandle` / `relatedToProductId` (mode=`relatedProducts`)
- **Flags and dates:** `requiresSellingPlan`, `isGiftCard`, `createdAt`, `updatedAt`, `publishedAt`
- **Provenance:** `recordType: "product"`, `scrapedAt`

#### Collection records

`collectionId`, `handle`, `collectionUrl`, `title`, `description`, `seoTitle`, `seoDescription`, `productsCount`, `imageUrl`, `imageAlt`, `createdAt`, `updatedAt`, `publishedAt`, `recordType: "collection"`, `scrapedAt`.

### Examples

Browse the best-selling birthday catalog:

```json
{ "mode": "byCategory", "category": "birthday", "sortBy": "best-selling", "maxItems": 100 }
```

Find deeply discounted Halloween costumes:

```json
{
  "mode": "byCategory",
  "category": "halloween-costumes",
  "productTypeEquals": "Costumes",
  "onSaleOnly": true,
  "minDiscountPercent": 25,
  "maxItems": 200
}
```

Search the full index:

```json
{ "mode": "search", "searchQuery": "balloon arch kit", "maxItems": 100 }
```

Look up products by URL, ID, or handle:

```json
{ "mode": "byHandles", "productHandles": ["https://www.partycity.com/products/colorful-collage-paper-plate-8ct"] }
```

```json
{ "mode": "byProductIds", "productIds": [10232971690263] }
```

Get complementary products:

```json
{
  "mode": "relatedProducts",
  "productHandles": ["colorful-collage-paper-plate-8ct"],
  "recommendationIntent": "COMPLEMENTARY",
  "maxItems": 50
}
```

Export the whole taxonomy:

```json
{ "mode": "listCollections", "maxItems": 300 }
```

### Data source and freshness

The actor reads Party City's public Shopify storefront: the same Storefront GraphQL API the website uses, the public collection/product JSON endpoints as a fallback, and the public Yotpo rating widget when ratings are enabled. Data is fetched live at run time.

### Limits and honest notes

- **Search index:** the storefront exposes at most 1,000 matches per search query. Use category browse or split queries for deeper coverage.
- **Variant payload:** up to 250 variants per product are read; products above that are extremely rare.
- **Inventory quantities:** the public Storefront token does not expose unit counts; `available` and per-variant stock state are published flags. `inStockStores` shows which stores carry the item, not how many units each holds.
- **Ratings:** only products with at least one published review get `rating`/`reviewCount`; products with no reviews omit both fields.
- **SEO fields:** Party City fills SEO titles/descriptions for only part of the catalog; they are omitted when absent.
- **Prices:** amounts are in the storefront's currency (USD) and change frequently; `scrapedAt` tells you when the snapshot was taken.
- **Proxy cost:** no proxy is required. The actor escalates to Apify proxy only after a real block, and `useApifyProxy` starts there if you prefer.

### FAQ

**Do I need a Party City account or cookies?** No. The actor only reads public storefront data.

**Why does search stop at 1,000?** That is the storefront search index cap, not a scraper limit. Category browse uses cursor pagination and can go deeper.

**Can I pass a category URL instead of a handle?** Yes — paste the full `partycity.com/collections/...` URL into `categoryHandle`.

**Do you support every Party City product type?** The `productTypeEquals` dropdown is generated from the live catalog's full type list; `productTypeContains` is available for partial matches.

**Is this affiliated with Party City?** No. It is a third-party reader of public product data.

### Use cases

- Price and promotion monitoring across a category or theme
- Seasonal assortment planning for birthdays, Halloween, Christmas, and graduations
- Competitor and licensed-character pricing research
- Affiliate or editorial product feeds with live images and prices
- Store-level availability checks for party planners

# Actor input Schema

## `mode` (type: `string`):

`byCategory` browses a category with full cursor pagination and the site's real sort orders. `search` runs Party City's full product search (up to the 1,000-result search-index cap; the old predictive endpoint returned only 10). `byHandles` looks up specific products by handle or URL. `byProductIds` batch-looks up products by numeric id or Shopify GID. `relatedProducts` returns Shopify's related/complementary recommendations for one or more products. `listCollections` returns every live collection/category on the storefront for discovery.

## `category` (type: `string`):

A Party City category to browse. Covers birthday themes, balloons, tableware, decorations, costumes, seasonal themes, and special occasions.

## `categoryHandle` (type: `string`):

Advanced: any Party City collection handle, collection URL, or path not in the dropdown above. Overrides `category` when set.

## `searchQuery` (type: `string`):

Free-text keyword search, e.g. `birthday candle`, `pinata`, `balloon arch`. Returns up to 1,000 matching products with full pagination (Party City's search index cap).

## `productHandles` (type: `array`):

Exact product handles (e.g. `colorful-collage-paper-plate-8ct`) or full product URLs. Used by mode=byHandles and as the seed products for mode=relatedProducts.

## `sortBy` (type: `string`):

Sort order applied to category browse and search results. Search supports relevance (best-selling/manual) and price server-side; title/date sorts are applied client-side over the search results.

## `maxItems` (type: `integer`):

Hard cap on the number of products (or collections, for mode=listCollections) returned (1-10000).

## `imageQuality` (type: `string`):

Shopify CDN serves multiple image sizes. `master` returns the original.

## `minPrice` (type: `number`):

Drop products whose lowest price is below this threshold.

## `maxPrice` (type: `number`):

Drop products whose lowest price is above this threshold.

## `onSaleOnly` (type: `boolean`):

Only emit products with an active discount (compare-at price higher than the current price).

## `minDiscountPercent` (type: `integer`):

Only emit products discounted by at least this percentage.

## `brandContains` (type: `string`):

Only emit products whose brand name contains this substring (case-insensitive).

## `productTypeContains` (type: `string`):

Only emit products whose Shopify product type contains this substring.

## `productTypeEquals` (type: `string`):

Only emit products whose Shopify product type exactly matches this value. Covers every product type observed across Party City's full catalog. Leave as "Any" to disable, or use `productTypeContains` for a substring match instead.

## `titleContains` (type: `string`):

Only emit products whose title contains this substring (case-insensitive).

## `tagAnyOf` (type: `array`):

Only emit products whose tags contain at least one of these (case-insensitive substring match).

## `tagNoneOf` (type: `array`):

Drop products whose tags contain any of these substrings.

## `skuContains` (type: `string`):

Only emit products with a SKU containing this substring.

## `includeUnavailable` (type: `boolean`):

When false (default), drop products that are entirely out of stock.

## `useApifyProxy` (type: `boolean`):

Route requests through Apify proxy from the start. Party City usually works from datacenter IPs without proxy — the actor automatically falls back to Apify proxy on the first failure regardless of this setting.

## `requestDelaySecs` (type: `integer`):

Pause between successive page fetches. Lower = faster, higher = more polite.

## `productIds` (type: `array`):

Numeric Party City product IDs or full Shopify product GIDs. Batch lookup and deduplication are automatic.

## `recommendationIntent` (type: `string`):

`RELATED` returns products in the same theme/category; `COMPLEMENTARY` returns products commonly bought together.

## `includeRatings` (type: `boolean`):

Add `rating` and `reviewCount` from Party City's public Yotpo review widget (one extra request per product). Off by default so large exports stay fast and cheap.

## Actor input object example

```json
{
  "mode": "byCategory",
  "category": "birthday",
  "productHandles": [],
  "sortBy": "best-selling",
  "maxItems": 3,
  "imageQuality": "master",
  "onSaleOnly": false,
  "productTypeEquals": "",
  "tagAnyOf": [],
  "tagNoneOf": [],
  "includeUnavailable": false,
  "useApifyProxy": false,
  "requestDelaySecs": 1,
  "productIds": [],
  "recommendationIntent": "RELATED",
  "includeRatings": false
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing all scraped Party City products.

# 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 = {
    "mode": "byCategory",
    "category": "birthday",
    "productHandles": [],
    "sortBy": "best-selling",
    "maxItems": 3,
    "imageQuality": "master",
    "onSaleOnly": false,
    "productTypeEquals": "",
    "tagAnyOf": [],
    "tagNoneOf": [],
    "includeUnavailable": false,
    "useApifyProxy": false,
    "requestDelaySecs": 1,
    "productIds": [],
    "recommendationIntent": "RELATED",
    "includeRatings": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/party-city-costume-balloon-and-decor-price-tracker").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 = {
    "mode": "byCategory",
    "category": "birthday",
    "productHandles": [],
    "sortBy": "best-selling",
    "maxItems": 3,
    "imageQuality": "master",
    "onSaleOnly": False,
    "productTypeEquals": "",
    "tagAnyOf": [],
    "tagNoneOf": [],
    "includeUnavailable": False,
    "useApifyProxy": False,
    "requestDelaySecs": 1,
    "productIds": [],
    "recommendationIntent": "RELATED",
    "includeRatings": False,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/party-city-costume-balloon-and-decor-price-tracker").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 '{
  "mode": "byCategory",
  "category": "birthday",
  "productHandles": [],
  "sortBy": "best-selling",
  "maxItems": 3,
  "imageQuality": "master",
  "onSaleOnly": false,
  "productTypeEquals": "",
  "tagAnyOf": [],
  "tagNoneOf": [],
  "includeUnavailable": false,
  "useApifyProxy": false,
  "requestDelaySecs": 1,
  "productIds": [],
  "recommendationIntent": "RELATED",
  "includeRatings": false
}' |
apify call dataspryva/party-city-costume-balloon-and-decor-price-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/party-city-costume-balloon-and-decor-price-tracker"
        }
    }
}
```

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/B4u8oBb6818HDB6h9/builds/HjUGV60apY232tw0n/openapi.json
