Deck of Cards (Independent Publisher) (Preview)

Deck of Cards is a web service that allows you to shuffle and draw cards from one or many decks.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name Troy Taylor
URL https://www.hitachisolutions.com
Email [email protected]
Connector Metadata
Publisher Troy Taylor
Website https://deckofcardsapi.com/
Privacy policy https://deckofcardsapi.com/
Categories Lifestyle and Entertainment

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Add to piles

Adds one or more cards to a pile. NOTE: Does not work with multiple decks.

Draw a card

Draws one or more cards from a given deck.

Draw from pile

Draws one or more cards from a pile.

Reshuffle cards

Reshuffle a deck of cards. Setting Remaining to true will only shuffle those cards remaining in the main stack, leaving any piles or drawn cards alone.

Return cards to deck

Returns one or more cards to the deck.

Shuffle new deck

Shuffles a new deck of the given deck size with only the specific cards, if desired.

Shuffle pile

Shuffles a given pile. NOTE: Will not work with multiple decks.

Add to piles

Adds one or more cards to a pile. NOTE: Does not work with multiple decks.

Parameters

Name Key Required Type Description
Deck ID
deck_id True string

The deck identifier.

Pile
pile_name True string

The pile name.

Cards
cards True string

The cards as a comma-separated string.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Remaining
remaining integer

The number remaining.

Draw a card

Draws one or more cards from a given deck.

Parameters

Name Key Required Type Description
Deck ID
deck_id True string

The deck identifier.

Deck Count
count integer

The number of decks.

Cards
cards True string

The cards as a comma-separated string.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Cards
cards array of object
Code
cards.code string

The code.

Image
cards.image string

The image.

SVG
cards.images.svg string

The SVG image.

PNG
cards.images.png string

The PNG image.

Value
cards.value string

The value.

Suit
cards.suit string

The suit.

Remaining
remaining integer

The number remaining.

Draw from pile

Draws one or more cards from a pile.

Parameters

Name Key Required Type Description
Deck ID
deck_id True string

The deck identifier.

Pile
pile_name True string

The pile name.

Count
count integer

The count.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Remaining
remaining integer

The number remaining.

Cards
cards array of object
Image
cards.image string

The image.

Value
cards.value string

The value.

Suit
cards.suit string

The suit.

Code
cards.code string

The code.

Reshuffle cards

Reshuffle a deck of cards. Setting Remaining to true will only shuffle those cards remaining in the main stack, leaving any piles or drawn cards alone.

Parameters

Name Key Required Type Description
Deck ID
deck_id True string

The deck identifier.

Remaining
remaining boolean

The number of cards remaining.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Shuffled
shuffled boolean

Whether shuffled.

Remaining
remaining integer

The number remaining.

Return cards to deck

Returns one or more cards to the deck.

Parameters

Name Key Required Type Description
Deck ID
deck_id True string

The deck identifier.

Cards
cards True string

The cards as a comma-separated string.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Shuffled
shuffled boolean

Whether shuffled.

Remaining
remaining integer

The number remaining.

Shuffle new deck

Shuffles a new deck of the given deck size with only the specific cards, if desired.

Parameters

Name Key Required Type Description
Deck Count
deck_count integer

The deck count.

Cards
cards string

The cards as a comma-separated string.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Shuffled
shuffled boolean

Whether shuffled.

Remaining
remaining integer

The number remaining.

Shuffle pile

Shuffles a given pile. NOTE: Will not work with multiple decks.

Parameters

Name Key Required Type Description
Deck ID
deck_id True string

The deck identifier.

Pile
pile_name True string

The pile name.

Returns

Name Path Type Description
Success
success boolean

Whether successful.

Deck ID
deck_id string

The deck identifier.

Remaining
remaining integer

The number remaining.