# GOAT API by APISH (`apish/goat-api`) Actor

GOAT sneaker search, lowest ask per size and condition, last sold prices and product details as JSON, via APISH. Pay per credit; failed calls are free.

- **URL**: https://apify.com/apish/goat-api.md
- **Developed by:** [APISH](https://apify.com/apish) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 credits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## GOAT API by APISH

Get public GOAT data as clean, consistent JSON: gOAT search suggestions, one GOAT product, gOAT related products, gOAT search, gOAT lowest ask per size. 5 endpoints, one response shape, numbers parsed, absolute URLs.

### How to use

1. Pick an **Endpoint**. Each option shows what it returns and its price in credits.
2. Enter its **Parameters** as JSON, for example `{"q":"jordan 1"}`. All parameters are listed below.
3. Run. Each call becomes one row in the dataset. Use **Batch** to run the same endpoint for many inputs and **Pages per input** to follow pagination.

### Pricing

Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.

### Endpoints

| Endpoint | Returns | Required parameters | Credits |
|---|---|---|---|
| `/goat/v1/autocomplete` | GOAT search suggestions | `q` | 1 |
| `/goat/v1/product` | One GOAT product | `url` | 1 |
| `/goat/v1/related` | GOAT related products | — | 1 |
| `/goat/v1/search` | GOAT search | — | 1 |
| `/goat/v1/sizes` | GOAT lowest ask per size | — | 1 |

### Output

Each dataset row has `endpoint`, `params`, `status`, `credits_used` and the endpoint's data. Add `"raw": 1` to the parameters to also get the site's original record, or `"fields": "a,b.c"` to return only the fields you need.

### Endpoint details

#### GOAT search suggestions

Endpoint `/goat/v1/autocomplete` · 1 credit per successful call.

The suggestions GOAT's search box shows for a partial query: products (id, name, slug, category, image) and collections.

Parameters:

- `q` (required): What has been typed so far.

Example parameters: `{"q":"jordan 1"}`

#### One GOAT product

Endpoint `/goat/v1/product` · 1 credit per successful call.

Parameters:

- `url` (required)

Example parameters: `{"url":"undefeated-x-air-jordan-4-retro-ib1519-200"}`

#### GOAT related products

Endpoint `/goat/v1/related` · 1 credit per successful call.

Products GOAT recommends alongside a product (similar styles): name, SKU, brand, colour, category, release date, lowest and display price, image and size range. Identify the product by id, by its goat.com link, or by q (the first search result).

Parameters:

- `id`: GOAT's numeric product id (from search). One of id, url or q is required.
- `url`: A goat.com product link.
- `q`: Search words; the first result is used.
- `count`: How many products (1-50).

Example parameters: `{"id":"719082","q":"dunk low panda","count":12}`

#### GOAT search

Endpoint `/goat/v1/search` · 1 credit per successful call.

Pass `next_page` from the previous response; `next_page` is null on the last page.  Filter by brand, category, product type, activity, gender, colour, silhouette (model line), release year, condition, size and price range. Facet filters take the `slug` values listed in `facets` (comma-separated for several); `applied_filters` echoes the filters in effect.

Parameters:

- `q`: Search words. May be left out when a brand, category or other facet filter is given, which lists that brand or category.
- `page`: Page number. Pass `next_page` from the previous response; `next_page` is null on the last page.
- `sort` — one of `relevance`, `newest`, `price_asc`, `price_desc`: Sort order (lowest ask for the price sorts). Default relevance.
- `sort_type`: GOAT's own numeric sortType, passed as-is (overrides `sort`).
- `instant_ship`: Only products available with Instant Ship.
- `under_retail`: Only products selling under retail price.
- `brand`: Brand slug(s) from `facets.brands`, comma-separated, e.g. nike or nike,air-jordan.
- `category`: Category slug(s) from `facets.categories`, e.g. footwear, apparel, bags.
- `product_type`: Product type slug(s) (nested under `facets.categories`), e.g. sneakers, tops, boots.
- `activity`: Activity slug(s) (nested under `facets.categories`), e.g. basketball, running, lifestyle.
- `gender`: Gender slug(s) from `facets.genders`: men, women, youth, infant.
- `color`: Colour slug(s) from `facets.colors`, e.g. black or white,black.
- `silhouette`: Model line(s), the product's `silhouette` in slug form (lowercase, hyphens), e.g. air-jordan-1, dunk or yeezy-boost-350; comma-separated for several.
- `release_year`: Release year(s), e.g. 2022 or 2022,2023.
- `condition`: Only products offered in this condition (comma-separated for several): new_no_defects, new_with_defects, used.
- `size`: Only products with an offer in this size, e.g. 10, 10.5 (US shoe sizes) or m (apparel); comma-separated for several. Uses the single `gender` given (default men) and `size_type`. A size code such as us_shoes_women_8 is passed as-is.
- `size_type` — one of `shoes`, `tops`, `bottoms`, `outerwear`, `dresses`: What `size` refers to: shoes (default for numbers), tops (default for letters), bottoms, outerwear, dresses.
- `min_price_cents`: Lowest price, in cents (e.g. 10000 = $100).
- `max_price_cents`: Highest price, in cents.

Example parameters: `{"q":"jordan 1"}`

#### GOAT lowest ask per size

Endpoint `/goat/v1/sizes` · 1 credit per successful call.

Every size of a GOAT product with its lowest ask, the condition and box condition of that offer, stock status, the instant-ship ask and the last sold price, plus the full list of size, condition and box-condition combinations. Prices are in cents. Pass `q` to open the first current search result, or an `id` or product `url`. Pass `size` for the price of one size only.

Parameters:

- `q`: Search words; the first current result is used. Either q, id or url is required.
- `id`: GOAT product id (the `id` from /goat/v1/search).
- `url`: A GOAT product link (https://www.goat.com/sneakers/<slug>) or its slug.
- `condition` — one of `new_no_defects`, `new_with_defects`, `used`: Only offers in this condition.
- `in_stock`: Only sizes and conditions that have an ask right now.
- `size`: One size only, e.g. 10, 10.5 or M (as in `sizes[].size`). 404 when the product does not list that size.
- `country`: Two-letter market code (default US).

Example parameters: `{"q":"dunk low panda"}`

### Support

Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.

Public data only: nothing behind a login. You are responsible for how you use the data you collect.

# Actor input Schema

## `endpoint` (type: `string`):

Which GOAT endpoint to call. Each option shows what it returns and its price in credits.

## `params` (type: `object`):

Query parameters for the endpoint, as JSON. See the README for every endpoint's parameters. Example: {"q":"jordan 1"}

## `batch` (type: `array`):

Run the same endpoint for many inputs: a list of parameter objects. Each item is one call. Leave empty to use Parameters.

## `maxPages` (type: `integer`):

For paginated endpoints: follow next_cursor up to this many pages per input. 1 = first page only.

## Actor input object example

```json
{
  "endpoint": "/goat/v1/search",
  "params": {
    "q": "jordan 1"
  },
  "batch": [],
  "maxPages": 1
}
```

# Actor output Schema

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

One row per call: endpoint, params, status, credits_used and the data.

# 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 = {
    "endpoint": "/goat/v1/search",
    "params": {
        "q": "jordan 1"
    },
    "batch": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("apish/goat-api").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 = {
    "endpoint": "/goat/v1/search",
    "params": { "q": "jordan 1" },
    "batch": [],
}

# Run the Actor and wait for it to finish
run = client.actor("apish/goat-api").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 '{
  "endpoint": "/goat/v1/search",
  "params": {
    "q": "jordan 1"
  },
  "batch": []
}' |
apify call apish/goat-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apish/goat-api"
        }
    }
}
```

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/TtX0hdT9LoX8U9ujo/builds/pbFiGyjwnz3sgZEXZ/openapi.json
