This guide provides best practices and recommendations for developers integrating with the Pure API.Documentation Index
Fetch the complete documentation index at: https://docs.collectpure.com/llms.txt
Use this file to discover all available pages before exploring further.
Rate Limiting
While we don’t publish specific rate limits, we do monitor API usage to ensure fair access for all users. If you’re planning to make a large number of requests, please contact us at [email protected] to discuss your needs.Error Handling
The API returns standard HTTP status codes to indicate success or failure:- 200 OK: The request was successful
- 400 Bad Request: The request was invalid or improperly formatted
- 401 Unauthorized: Authentication failed (invalid or missing API key)
- 404 Not Found: The requested resource was not found
- 500 Internal Server Error: An unexpected error occurred on the server
error field with a description of what went wrong:
Pagination
For endpoints that return multiple items, we use offset-based pagination:- offset: Number of items to skip (default: 0)
- limit: Maximum number of items to return (varies by endpoint)
/products/search/v1 endpoint supports browsing all products without a search query. Simply omit the query parameter to paginate through the full product catalog. This endpoint supports up to 250 results per page:
/orders/get-sale-orders/v1, /orders/get-purchase-orders/v1) also support offset-based pagination with a default of 20 and a maximum of 100 results per page.
Handling Spot Prices
Spot prices for precious metals can change rapidly. When displaying spot prices to users, consider:- Showing the timestamp (
updatedAt) to indicate when the price was last updated - Implementing a refresh mechanism to fetch updated prices periodically
- Displaying the market status (
marketOpen) to indicate if the market is currently active
Working with Product Data
When working with product data, keep in mind:- Products may have multiple variants with different pricing
- The
highestOfferandlowestListingfields represent the current market state and may be null if no offers/listings exist - Premium calculations can vary by product subcategory (check the
premiumCalculationTypefield)
Testing
We recommend testing your integration thoroughly before deploying to production. Use the following approach:- Start with the
/protectedendpoint to verify authentication - Test with a small subset of products before implementing full integration
- Implement proper error handling for all API calls
- Consider implementing retry logic for transient errors