Versions in this module Expand all Collapse all v0 v0.1.0 Sep 25, 2026 Changes in this version + const BasisAsking + const BasisDerived + const BasisGuide + const BasisSold + const IncludeArtist + const IncludeImages + const IncludeIndex + const IncludePrices + const IncludeSet + const IncludeTranslations + const LocaleDE + const LocaleEN + const LocaleES + const LocaleFR + const LocaleIT + const LocaleJA + const LocalePT + const LocaleZH + const RegionCN + const RegionJP + const RegionKR + const RegionWest + const SourceCardTrader + const SourceCardmarket + const SourceCommunity + const SourceEbay + const SourcePTCGIndex + const SourcePriceCharting + const SourceTCGplayer + const Version + const VisionAmbiguous + const VisionMatch + const VisionNoMatch + var ErrTooManyIDs = errors.New("pokemontcgapi: too many ids") + type APIError struct + Code string + Details map[string]any + Message string + RequestID string + Status int + func (e *APIError) ActionURL() string + func (e *APIError) CheckoutURL() string + func (e *APIError) Error() string + func (e *APIError) Handoff() string + func (e *APIError) NextStep() *NextStep + type Artist struct + CardCount int + Links ... + Name string + Slug string + type ArtistsService struct + func (s *ArtistsService) Get(ctx context.Context, slug string) (*Artist, error) + func (s *ArtistsService) List(ctx context.Context, p *ListParams) (*Page[Artist], error) + type AuthenticationError struct + func (e *AuthenticationError) Unwrap() error + type BatchResult struct + Data []T + Found int + Missing []MissingCard + Requested int + Withheld []string + type Card struct + Abilities []json.RawMessage + Artist *Artist + ArtistName *string + ArtistSlug *string + Attacks []json.RawMessage + CardmarketID *int + ConvertedRetreatCost *int + CreatedAt string + EvolvesFrom *string + EvolvesTo []string + FlavorText *string + HP *int + ID string + Images []CardImage + IndexEUR *float64 + JPTwinID *string + LastPriceAt *string + LegacyID *string + Level *string + Name string + NationalPokedexNumbers []int + Number string + NumberSort *int + Prices []Price + PrintRegion string + PtcgoCode *string + Rarity *string + RegulationMark *string + ReleaseDate *string + Resistances []json.RawMessage + RetreatCost []string + RowVersion int + Rules []string + Series *string + Set *CardSet + SetCode string + SetName string + SetTotal *int + Subtypes []string + Supertype *string + TCGplayerID *int + Translations []Translation + Types []string + UpdatedAt string + Weaknesses []json.RawMessage + type CardGetParams struct + Include []string + Lang string + Select []string + type CardImage struct + Face string + Height *int + ImageSource *string + Locale *string + Size string + URL string + Width *int + type CardListParams struct + Cursor string + Include []string + Lang string + Limit int + OrderBy string + Q string + Select []string + Set []string + type CardPrices struct + CardID string + Index *PriceIndex + Quotes []Price + type CardSet struct + Code string + ID string + LegacyID *string + LogoURL *string + Name string + PrintedTotal *int + PtcgoCode *string + Region string + ReleaseDate *string + Series *string + Slug string + SymbolURL *string + Total *int + UpdatedAt string + type CardsService struct + func (s *CardsService) Batch(ctx context.Context, ids []string, p *CardGetParams) (*BatchResult[Card], error) + func (s *CardsService) Get(ctx context.Context, id string, p *CardGetParams) (*Card, error) + func (s *CardsService) Search(ctx context.Context, p *CardListParams) (*Page[Card], error) + type CatalogStatus struct + Catalog struct{ ... } + Sources []struct{ ... } + Status string + Upstream struct{ ... } + Version string + type Change struct + ChangedAt string + EntityID string + ID int64 + Kind string + Op string + Version int + type ChangesParams struct + Kind string + Limit int + Since int64 + type ChangesResponse struct + Data []Change + Links ... + Meta struct{ ... } + type Client struct + Artists *ArtistsService + Cards *CardsService + Prices *PricesService + Reference *ReferenceService + Sealed *SealedService + Series *SeriesService + Sets *SetsService + Vision *VisionService + func New(opts ...Option) *Client + func (c *Client) Changes(ctx context.Context, p *ChangesParams) (*ChangesResponse, error) + func (c *Client) Health(ctx context.Context) (*Health, error) + func (c *Client) LastResponse() *ResponseInfo + func (c *Client) Status(ctx context.Context) (*CatalogStatus, error) + type Collection struct + Data []T + Links ... + Meta CollectionMeta + type CollectionMeta struct + Count int + HasMore bool + Hints []SearchHint + Limit int + TotalCount *int + Warnings []string + Withheld []string + type ConnectionError struct + Err error + URL string + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type Grading struct + Company string + Score string + type Health struct + DB bool + Status string + UptimeS float64 + Version string + type HistoryParams struct + Bucket string + From string + Locale string + Printing string + Source string + To string + Variant string + type HistoryPoint struct + Amount float64 + Currency string + Date string + Locale *string + Printing *string + SampleN *int + Source string + Variant string + type HistoryResponse struct + Data []HistoryPoint + Meta struct{ ... } + type IdentifyOptions struct + Region string + Set string + TopK int + type InvalidRequestError struct + func (e *InvalidRequestError) Field() string + func (e *InvalidRequestError) Unwrap() error + type ListParams struct + Cursor string + Limit int + OrderBy string + Q string + Select []string + type MissingCard struct + ID string + SuggestedID string + type Mover struct + CardID string + ChangePct float64 + Currency string + From float64 + Name string + SetCode string + To float64 + type MoversParams struct + Direction string + Limit int + Locale string + MinValue float64 + Window string + type MoversResponse struct + Data []Mover + Meta struct{ ... } + type NextStep struct + Action string + Actor string + CheckoutURL string + CheckoutURLYearly string + ContactURL string + Handoff string + ManageURL string + Plan *NextStepPlan + PlansURL string + VerifyURL string + type NextStepPlan struct + Code string + CreditsPerMonth *int + MonthlyEUR string + Name string + YearlyEUR string + type NotFoundError struct + func (e *NotFoundError) Unwrap() error + type Option func(*Client) + func WithAPIKey(key string) Option + func WithBaseURL(baseURL string) Option + func WithETagCache() Option + func WithHTTPClient(httpc *http.Client) Option + func WithMaxRetries(n int) Option + func WithOnResponse(fn func(ResponseInfo)) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type Page struct + Data []T + Meta CollectionMeta + func (p *Page[T]) All(ctx context.Context) iter.Seq2[T, error] + func (p *Page[T]) Collect(ctx context.Context, max int) ([]T, error) + func (p *Page[T]) HasMore() bool + func (p *Page[T]) Next(ctx context.Context) (*Page[T], error) + type PermissionDeniedError struct + func (e *PermissionDeniedError) Unwrap() error + type PlanRequiredError struct + func (e *PlanRequiredError) Unwrap() error + type Price struct + Amount float64 + AsOf string + Basis string + Condition *string + Currency string + Grading *Grading + Locale *string + Printing *string + Provenance string + SampleN *int + Source string + Variant string + type PriceFilterParams struct + Locale string + Source string + Variant string + type PriceIndex struct + AsOf string + ByLocale []struct{ ... } + EUR float64 + SampleN *int + type PriceSourceInfo struct + IsOwn bool + Label string + MinDelayHours int + Source string + type PriceStats struct + ChangePct *float64 + Currency string + First *float64 + From string + High *float64 + Last *float64 + Low *float64 + Median *float64 + SampleN int + To string + Window string + type PricesResponse struct + Data T + Meta struct{ ... } + type PricesService struct + func (s *PricesService) Card(ctx context.Context, id string, p *PriceFilterParams) (*PricesResponse[CardPrices], error) + func (s *PricesService) Current(ctx context.Context, ids []string, p *PriceFilterParams) (*BatchResult[CardPrices], error) + func (s *PricesService) History(ctx context.Context, id string, p *HistoryParams) (*HistoryResponse, error) + func (s *PricesService) Movers(ctx context.Context, p *MoversParams) (*MoversResponse, error) + func (s *PricesService) Sources(ctx context.Context) ([]PriceSourceInfo, error) + func (s *PricesService) Stats(ctx context.Context, id string, p *StatsParams) (*StatsResponse, error) + type QuotaExceededError struct + func (e *QuotaExceededError) Unwrap() error + type RateLimitedError struct + HasRetryAfter bool + RetryAfter time.Duration + func (e *RateLimitedError) Unwrap() error + type ReferenceService struct + func (s *ReferenceService) All(ctx context.Context) (map[string][]string, error) + func (s *ReferenceService) Rarities(ctx context.Context) ([]string, error) + func (s *ReferenceService) Subtypes(ctx context.Context) ([]string, error) + func (s *ReferenceService) Supertypes(ctx context.Context) ([]string, error) + func (s *ReferenceService) Types(ctx context.Context) ([]string, error) + type ResponseInfo struct + CreditsCost *int + ErrorCode string + PlanWithheld []string + QuotaLimit *int + QuotaRemaining *int + QuotaReset string + RateLimitRemaining *int + RequestID string + Status int + TrialExpiresAt string + URL string + type SealedListParams struct + Cursor string + Include []string + Kind string + Lang string + Limit int + OrderBy string + Q string + Set []string + type SealedPrices struct + Index *PriceIndex + Quotes []Price + SealedID string + type SealedProduct struct + CreatedAt string + ID string + ImageURL *string + IndexEUR *float64 + Kind string + Languages []string + LastPriceAt *string + Name string + PackCount *int + ReleaseDate *string + SKU string + SetCode *string + SetName *string + Slug string + UpdatedAt string + type SealedService struct + func (s *SealedService) Get(ctx context.Context, id string, p *SetGetParams) (*SealedProduct, error) + func (s *SealedService) List(ctx context.Context, p *SealedListParams) (*Page[SealedProduct], error) + func (s *SealedService) Prices(ctx context.Context, id string, p *PriceFilterParams) (*PricesResponse[SealedPrices], error) + type SearchHint struct + AtLeast bool + Code string + Matched string + Matches int + Message string + Received string + SetCode string + SetName string + SuggestedQ string + type Series struct + ID string + Name string + SetCount int + Slug string + type SeriesService struct + func (s *SeriesService) List(ctx context.Context, p *ListParams) (*Page[Series], error) + type ServerError struct + func (e *ServerError) Unwrap() error + type SetGetParams struct + Lang string + type SetListParams struct + Cursor string + Lang string + Limit int + OrderBy string + Q string + Region string + Series string + type SetsService struct + func (s *SetsService) Cards(ctx context.Context, code string, p *CardListParams) (*Page[Card], error) + func (s *SetsService) Get(ctx context.Context, code string, p *SetGetParams) (*CardSet, error) + func (s *SetsService) List(ctx context.Context, p *SetListParams) (*Page[CardSet], error) + type StatsParams struct + Locale string + Window string + type StatsResponse struct + Data PriceStats + Meta struct{ ... } + type TimeoutError struct + Timeout time.Duration + func (e *TimeoutError) Error() string + func (e *TimeoutError) Unwrap() error + type Translation struct + Locale string + Name string + type TrialExpiredError struct + func (e *TrialExpiredError) Unwrap() error + type UpgradeRequiredError struct + func (e *UpgradeRequiredError) PermittedWindow() any + func (e *UpgradeRequiredError) Unwrap() error + type VisionCandidate struct + Confidence float64 + Distance int + ID string + ImageURL *string + Name string + Number string + Rarity *string + Set struct{ ... } + type VisionMeta struct + CardsIndexed int + Count int + ElapsedMs int + HypothesesTried int + IndexBuiltAt string + IndexLoadedAt string + OCR ... + RegionsDetected int + SignatureVersion int + type VisionResponse struct + Data VisionResult + Meta VisionMeta + type VisionResult struct + Candidates []VisionCandidate + Decision string + DecisionReason string + ID *string + type VisionService struct + func (s *VisionService) Identify(ctx context.Context, image io.Reader, opts *IdentifyOptions) (*VisionResponse, error)