Harem Gold API Documentation
Use one secure REST API, or a WebSocket stream, to bring current Harem Altın prices into your e-commerce site, mobile app, internal tool, or notification workflow.
Last updated:
Quick start
Pick a plan on Pixcharp or start the 7-day free trial, open your customer dashboard, and generate an API key. Keep the raw key on your server and send it with every request.
curl https://api.pixcharp.com/v1/prices \
-H "X-API-Key: $PIXCHARP_API_KEY"On JavaScript or TypeScript, the open-source harem-altin-api client handles REST and WebSocket for you. npm · View on GitHub
// npm install harem-altin-api
import { createClient } from "harem-altin-api";
const client = createClient({ apiKey: process.env.PIXCHARP_API_KEY });
const has = await client.getPrice("HAS");
console.log(has.symbol, has.alis, has.satis);Topics
Each step of the integration has its own page.
Authentication and IP whitelist →
Every REST request and WebSocket connection is authenticated with an API key. This page shows how to send the key and how the IP whitelist limits it to your own servers.
REST endpoints and JSON responses →
Current gold and currency prices come as JSON from four GET endpoints. Pick one and get a real response from the try-it console.
Live gold prices over WebSocket →
Get prices as they change instead of polling. On connect the stream sends every price, then only the ones that changed, at most once a second.
Error codes and limits →
Errors come back with an HTTP status and a machine-readable error code. Limits depend on your plan, and what you have left is in the response headers.
Code examples →
The same request in twelve languages, ready to copy and run. On JavaScript or TypeScript, the open-source client covers REST and WebSocket in one package.
Plans
| Plan | Monthly requests | Per-minute limit | WebSocket connections | Allowed IPs | Monthly / yearly |
|---|---|---|---|---|---|
| Trial | 10,000 | 30 | 1 | 1 | Free · 7 days |
| Starter | 200,000 | 60 | - | 1 | $12.99 / $129.90 · ₺650 / ₺6,500 |
| Pro | 1,000,000 | 180 | 2 | 4 | $24.99 / $249.90 · ₺1,250 / ₺12,500 |
| Business | 5,000,000 | 600 | 10 | 10 | $59.99 / $599.90 · ₺3,000 / ₺30,000 |
Prices include VAT. Yearly billing costs the same as 10 months. WebSocket messages count toward monthly requests too. The trial needs no card and is available once per email address.
FAQ
What is the Harem Gold API?
A data service from Pixcharp that delivers live buy and sell prices for has gold, gram gold, çeyrek, 22 karat, ounce gold and TRY exchange rates as JSON, over a REST API and a WebSocket stream.
Is it Harem Altın's official API?
No. It is an independent service run by Pixcharp, with no official connection or partnership with Harem Altın. Pixcharp handles sales, invoicing and support.
How do I get an API key, and is there a free trial?
Start the 7-day free trial on the product page (no card needed) or pick a plan, then create a key starting with pxa_live_ in the customer dashboard. The trial includes 10,000 requests, 30 requests per minute and 1 WebSocket connection.
How often are prices updated?
REST endpoints return the latest price on every call. The WebSocket stream sends at most one message a second while prices change. Every row carries an asOfUtc time and a stale flag that shows when data is older than expected.
Which symbols are available?
Has gold (HAS), gram gold (GRAM_ALTIN), çeyrek (CEYREK_YENI), exchange rates such as USDTRY, and more. Call GET /v1/symbols for the full list on your account.
Which programming languages can I use?
Any language that speaks HTTP and WebSocket. This page has samples in cURL, JavaScript, Python, PHP, Go, Java, C#, Ruby, Rust, Kotlin, Swift and Dart, and there is an open-source harem-altin-api client for JavaScript and TypeScript.
Can I call it directly from a mobile app or a browser?
Do not put the key in an app bundle or browser code. Call the API from your own server and pass prices on to your app. If you need WebSocket from a browser, use a dedicated key and an IP whitelist.
What happens when I hit a limit?
Going over the per-minute limit returns 429 rate_limit_exceeded; a full monthly quota returns 429 monthly_quota_exceeded. What you have left is in the X-RateLimit-Remaining and X-Quota-Remaining headers.