Gold Price API Documentation

Welcome to the Gold API ID documentation. This API provides real-time gold price data sourced directly from Logam Mulia (Antam) and Galeri 24.

Data Sources

We prioritize accuracy and transparency. Our data is aggregated from the following trusted sources:

  • Antam (Logam Mulia): Official prices from PT Aneka Tambang Tbk.
  • Galeri 24: Prices from the Galeri 24 retail network.

Endpoints

  • GET /: Serve the main HTML page.
  • GET /api/prices: Get all gold prices.
  • GET /api/prices/{brand}: Get gold prices by brand.
  • GET /api/brands: Get a list of all available gold brands.
  • GET /api/resources: Get a list of all available data sources.
  • GET /api/version: Get API version.
  • GET /api/docs: This API documentation.

Query Parameters for /api/prices and /api/prices/{brand}

  • page (optional): Page number for pagination (default: 1).
  • weight (optional): Filter by gold weight in grams.
  • limit (optional): Number of items per page (default: 10, max: 500).
  • start_date (optional): Filter prices from a specific date (format: YYYY-MM-DD).
  • end_date (optional): Filter prices up to a specific date (format: YYYY-MM-DD).
  • resource (optional): Filter by data source (e.g., "antam" or "galeri24").

Available Brands

Example Usage

Get all prices (first page, 5 items per page)

GET /api/prices?page=1&limit=5

Example Response:

{
                                        "status": "success",
                                        "timestamp": "2025-12-15T04:15:11.298Z",
                                        "data": [
                                            {
                                                "brand": "ANTAM",
                                                "resource": "antam",
                                                "weight": 0.5,
                                                "sell_price": 913000,
                                                "buyback_price": 773000,
                                                "updated_at": "2025-12-15"
                                            },
                                            {
                                                "brand": "ANTAM",
                                                "resource": "antam",
                                                "weight": 1,
                                                "sell_price": 1721000,
                                                "buyback_price": 1546000,
                                                "updated_at": "2025-12-15"
                                            }
                                        ]
                                    }

Get prices for a specific brand (e.g., "Antam")

GET /api/prices/Antam

Example Response:

{
                                        "status": "success",
                                        "timestamp": "2025-12-15T04:15:11.298Z",
                                        "data": [
                                            {
                                                "brand": "ANTAM",
                                                "resource": "antam",
                                                "weight": 0.5,
                                                "sell_price": 913000,
                                                "buyback_price": 773000,
                                                "updated_at": "2025-12-15"
                                            },
                                            {
                                                "brand": "ANTAM",
                                                "resource": "antam",
                                                "weight": 1,
                                                "sell_price": 1721000,
                                                "buyback_price": 1546000,
                                                "updated_at": "2025-12-15"
                                            }
                                        ]
                                    }

Get prices for a specific brand with date filter

GET /api/prices/Antam?start_date=2023-01-01&end_date=2023-01-31

Example Response:

{
                                        "status": "success",
                                        "timestamp": "2025-12-15T04:15:11.298Z",
                                        "data": [
                                            {
                                                "brand": "ANTAM",
                                                "resource": "antam",
                                                "weight": 0.5,
                                                "sell_price": 913000,
                                                "buyback_price": 773000,
                                                "updated_at": "2025-12-15"
                                            }
                                        ]
                                    }

Get available brands

GET /api/brands

Example Response:

{
                                        "status": "success",
                                        "timestamp": "2025-12-15T04:15:11.298Z",
                                            "data": [
                                                "ANTAM",
                                                "GALERI24"
                                            ]
                                    }

Get available resources

GET /api/resources

Example Response:

{
                                        "status": "success",
                                        "timestamp": "2025-12-15T04:15:11.298Z",
                                            "data": [
                                                "antam",
                                                "galeri24"
                                            ]
                                    }