Gold Prices
This endpoint gets last gold price for Turkiye.
curl --request GET \
--url https://api.mzrdev.xyz/v1/altin \
--header 'Authorization: <api-key>'
{
"success": true,
"data": {
"lastUpdate": 1722690901,
"ons": {
"buy": "$2.443,37",
"sell": "$2.443,98",
"stonks": false,
"oneDayChange": "%-0,11"
},
"gramAltin": {
"buy": "2.608,90",
"sell": "2.609,34",
"stonks": true,
"oneDayChange": "%0,25"
},
"altinGramHas": {
"buy": "2.595,86",
"sell": "2.596,30",
"stonks": true,
"oneDayChange": "%0,25"
},
"ceyrekAltin": {
"buy": "4.215,29",
"sell": "4.312,82",
"stonks": true,
"oneDayChange": "%0,79"
},
"yarimAltin": {
"buy": "8.404,23",
"sell": "8.625,64",
"stonks": true,
"oneDayChange": "%0,79"
},
"tamAltin": {
"buy": "16.861,15",
"sell": "17.198,53",
"stonks": true,
"oneDayChange": "%0,79"
},
"cumhuriyetAltini": {
"buy": "17.475,00",
"sell": "17.739,00",
"stonks": true,
"oneDayChange": "%0,85"
},
"ataAltin": {
"buy": "17.388,06",
"sell": "17.831,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"altin14Ayar": {
"buy": "1.501,70",
"sell": "1.503,55",
"stonks": true,
"oneDayChange": "%0,79"
},
"altin18Ayar": {
"buy": "1.923,23",
"sell": "1.925,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"bilezik22Ayar": {
"buy": "2.402,71",
"sell": "2.405,68",
"stonks": true,
"oneDayChange": "%0,79"
},
"ikibucukAltin": {
"buy": "42.152,88",
"sell": "42.838,05",
"stonks": true,
"oneDayChange": "%0,79"
},
"besliAltin": {
"buy": "85.359,58",
"sell": "87.047,76",
"stonks": true,
"oneDayChange": "%0,79"
},
"gremseAltin": {
"buy": "42.152,88",
"sell": "43.128,21",
"stonks": true,
"oneDayChange": "%0,79"
},
"resatAltin": {
"buy": "17.388,06",
"sell": "17.831,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"hamitAltin": {
"buy": "17.388,06",
"sell": "17.831,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"gumus": {
"buy": "30,49",
"sell": "30,53",
"stonks": true,
"oneDayChange": "%0,54"
},
"gramPlatin": {
"buy": "1.021,36",
"sell": "1.026,02",
"stonks": false,
"oneDayChange": "%-0,04"
}
}
}
Response
Indicates whether the request was successful. A value of true
means the request was successful, while false
indicates an issue or failure.
Contains the data related to the latest gold price in Turkiye, including the timestamp of the last update and various gold types with their buy and sell prices.
The timestamp of the most recent update in Unix format. This represents the exact moment the data was last refreshed.
Contains information about a specific type of gold. Each object has the following subfields:
The current buying price of the gold type, formatted as a string with currency symbols and commas for thousands.
The current selling price of the gold type, formatted similarly to the buy price.
Indicates whether there has been a notable change in the gold’s price (or performance) over a given period. true
suggests a positive movement, while false
indicates no significant change.
Represents the percentage change in the gold price over the last 24 hours, formatted as a percentage (e.g., %-0.11
, %0.25
).
curl --request GET \
--url https://api.mzrdev.xyz/v1/altin \
--header 'Authorization: <api-key>'
{
"success": true,
"data": {
"lastUpdate": 1722690901,
"ons": {
"buy": "$2.443,37",
"sell": "$2.443,98",
"stonks": false,
"oneDayChange": "%-0,11"
},
"gramAltin": {
"buy": "2.608,90",
"sell": "2.609,34",
"stonks": true,
"oneDayChange": "%0,25"
},
"altinGramHas": {
"buy": "2.595,86",
"sell": "2.596,30",
"stonks": true,
"oneDayChange": "%0,25"
},
"ceyrekAltin": {
"buy": "4.215,29",
"sell": "4.312,82",
"stonks": true,
"oneDayChange": "%0,79"
},
"yarimAltin": {
"buy": "8.404,23",
"sell": "8.625,64",
"stonks": true,
"oneDayChange": "%0,79"
},
"tamAltin": {
"buy": "16.861,15",
"sell": "17.198,53",
"stonks": true,
"oneDayChange": "%0,79"
},
"cumhuriyetAltini": {
"buy": "17.475,00",
"sell": "17.739,00",
"stonks": true,
"oneDayChange": "%0,85"
},
"ataAltin": {
"buy": "17.388,06",
"sell": "17.831,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"altin14Ayar": {
"buy": "1.501,70",
"sell": "1.503,55",
"stonks": true,
"oneDayChange": "%0,79"
},
"altin18Ayar": {
"buy": "1.923,23",
"sell": "1.925,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"bilezik22Ayar": {
"buy": "2.402,71",
"sell": "2.405,68",
"stonks": true,
"oneDayChange": "%0,79"
},
"ikibucukAltin": {
"buy": "42.152,88",
"sell": "42.838,05",
"stonks": true,
"oneDayChange": "%0,79"
},
"besliAltin": {
"buy": "85.359,58",
"sell": "87.047,76",
"stonks": true,
"oneDayChange": "%0,79"
},
"gremseAltin": {
"buy": "42.152,88",
"sell": "43.128,21",
"stonks": true,
"oneDayChange": "%0,79"
},
"resatAltin": {
"buy": "17.388,06",
"sell": "17.831,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"hamitAltin": {
"buy": "17.388,06",
"sell": "17.831,60",
"stonks": true,
"oneDayChange": "%0,79"
},
"gumus": {
"buy": "30,49",
"sell": "30,53",
"stonks": true,
"oneDayChange": "%0,54"
},
"gramPlatin": {
"buy": "1.021,36",
"sell": "1.026,02",
"stonks": false,
"oneDayChange": "%-0,04"
}
}
}