Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Aggregate requests

A code example demonstrating how to use Cloudflare Workers to send multiple GET requests to different URLs and combine their responses into a single response.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Aggregate requests

A code example demonstrating how to use Cloudflare Workers to send multiple GET requests to different URLs and combine their responses into a single response.

When To Use

Use when you need to implement a pattern for fetching data from multiple endpoints simultaneously and merging the results into a single output within a Cloudflare Worker.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-aggregate-requests-workflow-guide.mdA markdown guide demonstrating how to use Cloudflare Workers to send multiple GET requests and aggregate their responses into a single response.Questions about a markdown guide demonstrating how to use Cloudflare Workers to send multiple GET requests and aggregate their respon...
examples/workers-examples-aggregate-requests-cloudflare-workers-aggregate-request.textA JavaScript example demonstrating how to use Promise.all to fetch and aggregate multiple JSON responses within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use Promise.all to fetch and aggregate multiple JSON responses within a Clo...
examples/workers-examples-aggregate-requests-cloudflare-workers-aggregate-request-2.textA JavaScript example demonstrating how to use Promise.all to fetch and aggregate multiple JSON responses within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use Promise.all to fetch and aggregate multiple JSON responses within a Clo...
examples/workers-examples-aggregate-requests-cloudflare-workers-aggregate-request-3.textA Hono application implementation demonstrating how to use Promise.all to fetch and aggregate multiple JSON responses concurrently within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A Hono application implementation demonstrating how to use Promise.all to fetch and aggregate multiple JSON responses...
examples/workers-examples-aggregate-requests-cloudflare-workers-python-aggregate-.textA Python implementation demonstrating how to use asyncio.gather to perform multiple fetch requests concurrently within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A Python implementation demonstrating how to use asyncio.gather to perform multiple fetch requests concurrently withi...

What This Skill Covers

  • Send two GET request to two urls and aggregates the responses into one response.
  • Main sections: Tags.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/examples/aggregate-requests