All integrationsImages & Design
Random-d.uk
Put a duck in your workflow with Random-d.uk, the free keyless picture site at random-d.uk: 559 duck photographs and 57 animations, and counting.
- actions
- 10
Actions
Steps a workflow can run in Random-d.uk.
- Get a random duckGet one duck at random from Random-d.uk: the picture's address, ready-made HTML and Markdown snippets, and the credit the site asks to be shown with it. Nothing is downloaded, so this is the cheap way to put a duck in a Slack message, a stand-up post or an email. The result carries the duck's number, so a later run can come back to the very same duck.
- Get several random ducksGet a handful of ducks at random in one step, for a gallery, a digest or a set of avatars. The site draws with replacement, so three draws can be the same duck three times; by default the draws are repeated until the ducks are all different, and the step reports how many requests that took. Asking for more ducks than the site has comes back short rather than looping, with complete set to false.
- Get a duck by numberGet one particular duck by its number, the number in its filename: 449 is the duck at https://random-d.uk/api/v2/449.jpg. This is the way back to a duck that has already been seen, because a draw is random and cannot be asked for a particular duck: keep the duck number a step reported and this fetches the same duck for good. Nothing is fetched unless the check is turned on, which confirms the picture is really there without downloading it.
- Get the duck for an HTTP status codeGet the duck that stands for an HTTP status code: a duck that is 404 Not Found, a duck that is 418 I'm a teapot. Wire in the status an earlier HTTP step came back with to illustrate an alert, a status page or a failure notice. The site has ducks for fifteen codes and the step reads the live list rather than a copy, so a code added later works the day it is added. A code it has no duck for is refused with the nearest ones named, or falls back to the generic duck for that class when you ask it to.
- Get the duck of the dayPick a duck from a seed, so the same seed always picks the same duck. Seed with the date, which is the default, and a daily post that retries, or that two people run an hour apart, shows the same duck, while tomorrow shows a different one. Seed with a channel or a customer name instead and each one gets its own duck. The pick is over however many ducks the site has, so give a duck count to pin it: the collection grows, and a bigger collection means a different duck for the same seed.
- Count the ducksFind out how many ducks Random-d.uk has right now, across the photos, the GIFs and the HTTP status codes, and which photo is the newest. The collection grows as people send more ducks in. Use it to pin a seeded pick, to bound a duck number a workflow makes up, or to notice when new ducks have arrived. Two counts come back for the photos because the site reports two: duck_count is how many pictures there are, and file_count is the site's own tally of filenames, which is higher because it lists most pictures twice.
- List the ducksPage through what the site holds: the photos, the GIFs, or the HTTP status codes that have a duck. Listing the status codes is the only way to find out which ones the site covers, and there are only fifteen, so that one fits in a single page. The photos run to several hundred, which is why this pages rather than handing back the lot. Each entry comes back as a full duck with its address and snippets, alongside a plain list of the numbers for wiring into a later step.
- Download a duckDownload a duck as a file, so a later step can attach it to an email, post it into a chat or put it in storage. Use this where a link will not do and the picture has to travel with the message. Name a duck by its number or by an HTTP status code, or leave both empty to download one at random. These are full-size pictures rather than thumbnails, so expect a few hundred kilobytes for a photo and a few megabytes for a GIF.
- Get a duck as a data URIGet a duck inline, as a data URI rather than a link or a file, for somewhere that renders HTML but will not fetch a remote picture: an email whose images are blocked by default, a self-contained report, a page a later step builds. These are full-size photographs, and base64 adds a third again on top, so a picture over about 1.5 MB is refused and told to use the download step instead. Most photos are well under that; most GIFs are not.
- Check service statusCheck whether Random-d.uk is up and handing out ducks, and how quickly. This is the one action that reports a problem as a value instead of failing the step, so a workflow can decide what to do about it. Answering at all and answering with a duck are reported separately, because a parked domain does the first and not the second.
No actions match that.
Automate Random-d.uk with Lodol.
Connect Random-d.uk and ask your AI for your first workflow.
Free plan, no credit card