Skip to main content
Bulk operations allow you to process multiple items in a single API request, improving performance and reducing the number of API calls needed.

Bulk coin queries

Fetch multiple coins by mints

Retrieve detailed information for multiple coins using their mint addresses:
Bulk endpoints can handle up to 100 items per request. For larger datasets, split into multiple batches.

Fetch multiple coin metadatas

Get metadata for multiple coins efficiently:

Bulk moderation operations

Bulk NSFW marking

Mark multiple items as NSFW in a single request:
Bulk moderation endpoints typically require admin privileges. Ensure your account has the necessary permissions.

Bulk hide items

Hide multiple items from public view:

Bulk ban items

Ban multiple items or users:

Batch processing patterns

Process items in batches

Efficiently process large lists by batching:
Python

Parallel batch processing

Process multiple batches concurrently for better performance:
Python
When using parallel processing, be mindful of rate limits. Limit the number of concurrent workers to avoid hitting API limits.

Error handling in bulk operations

Implement robust error handling for bulk operations:
Python

Best practices

1

Optimize batch size

Use batch sizes between 25-100 items for optimal performance. Larger batches may timeout.
2

Implement retry logic

Always implement exponential backoff for failed requests, especially for rate limit errors.
3

Validate input

Validate and sanitize input arrays before sending to avoid malformed requests.
4

Track failures

Keep track of failed items to retry them separately or log for investigation.
5

Use parallel processing wisely

Limit concurrent requests to 3-5 to avoid overwhelming the API or triggering rate limits.
6

Monitor response times

Track response times and adjust batch sizes if requests consistently timeout.