Bulk endpoints allow you to fetch multiple items (profiles, content, or games) in a single API request. This is more efficient than making individual requests and helps you stay within rate limits.Documentation Index
Fetch the complete documentation index at: https://docs.streamforge.com/llms.txt
Use this file to discover all available pages before exploring further.
When to Use Bulk Operations
Use bulk endpoints when you need to:- Fetch multiple items (2-100 items)
- Reduce HTTP overhead and improve performance
- Minimize quota usage for multiple items
- Avoid URL length limits (POST requests don’t have URL length restrictions)
Bulk Endpoints
The API provides bulk endpoints for three resource types:Profiles
Content
Games
Request Format
All bulk endpoints use the same request structure:Limits
- Minimum: 1 item
- Maximum: 100 items per request
- Quota cost: 1 quota unit per item requested
Response Structure
Bulk responses include metadata about which items were found and which were missing:Handling Partial Failures
Bulk operations are partial success operations. If some items are missing:- The request still succeeds (HTTP 200)
- Found items are returned in
payload - Missing items are listed in
meta.missing_ids - You can check
meta.found_idsto verify which items were returned
Example: Handling Missing Items
Batching Large Requests
If you need to fetch more than 100 items, split them into batches:Quota Efficiency
Bulk operations consume quota equal to the number of items requested:| Operation | Quota Cost |
|---|---|
| Single profile request | 1 unit |
| Bulk request (50 profiles) | 50 units |
| 50 individual requests | 50 units |
- Reduce HTTP overhead
- Improve performance (single round-trip)
- Avoid rate limit spikes from many concurrent requests
Best Practices
- Deduplicate IDs: Remove duplicate IDs before sending (the API may dedupe, but it’s better to do it client-side)
- Handle missing items: Always check
missing_idsand handle gracefully - Batch large requests: Split requests larger than 100 items into multiple batches
- Monitor quota: Bulk requests consume quota quickly; monitor your usage
- Error handling: Implement retry logic for failed bulk requests
Example: Bulk Profile Fetch
Comparison: Bulk vs Individual Requests
| Aspect | Bulk | Individual |
|---|---|---|
| HTTP requests | 1 | N (one per item) |
| Quota cost | Same | Same |
| Performance | Faster | Slower |
| Error handling | Partial success | All-or-nothing |
| URL length | No limit | Limited |

