Get-ShopifyProductList

EulandaXtools — Funktionsreferenz

Get-ShopifyProductList

ÜBERSICHT

Liest eine Liste aller Produkte aus einem Shopify-Shop über die GraphQL Admin API.

SYNTAX

Get-ShopifyProductList [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [[-Status]
    <string>] [[-PageSize] <int>] [[-MaxRetries] <int>] [[-TimeoutSec] <int>] [<CommonParameters>]

BESCHREIBUNG

Ruft Produkte per GraphQL-Query ab und liefert eine Liste mit den wichtigsten Feldern: Id, Title, Handle, Status, Vendor, Skus, Variants.

Unterstützt Cursor-Pagination und optionalen Status-Filter.

PARAMETER

-Shop

Type: string

Shopify-Shop-Domain, z.B. 'mein-shop.myshopify.com'.

-Token

Type: string

Admin API Access Token (shpat_...) der Custom App.

-ApiVersion

Type: string

API-Version, z.B. '2025-01'.

-Status

Type: string
Default: 'any'

Filtert Produkte nach Status: 'active', 'draft', 'archived' oder 'any' (alle). Standard: 'any'.

-PageSize

Type: int
Default: 250

Anzahl Produkte pro Seite (max. 250).

-MaxRetries

Type: int
Default: 3

Maximale Anzahl Wiederholungen bei Rate-Limit.

-TimeoutSec

Type: int
Default: 60

HTTP Timeout in Sekunden.

AUSGABEN

pscustomobject[]

BEISPIELE

# Alle Produkte abrufen
$products = Get-ShopifyProductList -Shop 'mein-shop.myshopify.com' `
  -Token 'shpat_abc123' -ApiVersion '2025-01'
# Nur aktive Produkte abrufen
$products = Get-ShopifyProductList -Shop $shop -Token $token `
  -ApiVersion '2025-01' -Status 'active'