Prerequisites
Before you begin, make sure you have:- An API key from Pure (contact us at [email protected] to request one) OR OAuth credentials if you’re using OAuth authentication
- A tool for making HTTP requests (like cURL, Postman, or your preferred programming language)
Authentication
The Pure API supports two authentication methods:API Key Authentication
For simple integrations, you can authenticate using your API key. Include your key in thex-api-key
header with each request:
OAuth Authentication
For more secure integrations, you can use OAuth authentication. First, obtain an access token:Making Your First Request
Let’s verify your authentication is working by making a request to the authentication test endpoint:Getting Spot Prices
To retrieve current spot prices for precious metals:Retrieving Product Data
Get a Single Product
To retrieve information about a specific product:PRODUCT_ID
with the actual ID of the product you want to retrieve.
List Products
To retrieve a paginated list of products:offset
and limit
parameters to control pagination.
Code Examples
JavaScript/Node.js
Using API Key
Using OAuth
Python
Using API Key
Using OAuth
Next Steps
Now that you’ve made your first API requests, you can:- Explore the API Reference to learn about all available endpoints
- Integrate the API into your application
- Contact us at [email protected] if you have any questions or need assistance