Retrieve Philippine Peso (PHP) Historical Prices using this API
Retrieve Philippine Peso (PHP) Historical Prices using this API
The Philippine Peso (PHP) is a vital currency in Southeast Asia, and understanding its historical prices can provide valuable insights for traders, investors, and developers alike. With the advent of digital transformation in financial markets, accessing real-time and historical data has never been easier. The Metals-API offers a robust solution for retrieving historical prices of the Philippine Peso, empowering developers to create innovative applications that leverage this data. In this blog post, we will explore how to retrieve historical prices using the Metals-API, delve into its features, and discuss the transformative potential of real-time metals data.
About Philippine Peso (PHP)
The Philippine Peso is the official currency of the Philippines, denoted by the symbol "₱" and the ISO code "PHP." As a developing economy, the Philippines has seen significant fluctuations in its currency value due to various factors, including economic policies, market demand, and global economic conditions. Understanding these fluctuations is crucial for businesses and investors who operate in or engage with the Philippine market.
In recent years, the digital transformation of metal markets has revolutionized how data is accessed and utilized. Technological innovations have enabled the integration of smart technologies and data analytics, allowing for real-time insights into currency fluctuations. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to harness the power of data analytics and create next-generation applications.
API Description
The Metals-API is a powerful tool that allows developers to access real-time and historical metals data, including exchange rates for various currencies, including the Philippine Peso. This API is designed to empower developers to build applications that require accurate and timely data, enabling them to make informed decisions based on market trends.
With the Metals-API, developers can retrieve data through various endpoints, each offering unique functionalities. The API supports a wide range of features, including the ability to access the latest rates, historical rates, and even perform currency conversions. The flexibility of the API allows for innovative use cases, such as integrating real-time data into trading platforms, financial applications, and market analysis tools.
To get started, you can visit the Metals-API Website for more information and access to the Metals-API Documentation, which provides comprehensive guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Developers can access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, users can retrieve historical exchange rates for the Philippine Peso, allowing for in-depth analysis of currency trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This feature is particularly useful for businesses that operate in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating the analysis of trends over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and helping traders make informed decisions.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date, assisting in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for a specific time period, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of metal prices.
- API Key: Each user is assigned a unique API key, which is required to access the API's features. This key ensures secure access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format, making it easy to integrate into applications.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, ensuring that developers have access to a wide range of data.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1780100452,
"base": "USD",
"date": "2026-05-30",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1780014052,
"base": "USD",
"date": "2026-05-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-23",
"end_date": "2026-05-30",
"base": "USD",
"rates": {
"2026-05-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1780100452,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-23",
"end_date": "2026-05-30",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1780100452,
"base": "USD",
"date": "2026-05-30",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1780100452,
"base": "USD",
"date": "2026-05-30",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
In conclusion, the Metals-API provides a comprehensive solution for retrieving historical prices of the Philippine Peso and other metals. By leveraging the various endpoints offered by the API, developers can create innovative applications that utilize real-time and historical data to make informed decisions. The integration of smart technology and data analytics into financial markets is transforming how we access and interpret currency data.
As the demand for accurate and timely financial data continues to grow, APIs like Metals-API will play a crucial role in shaping the future of financial technology. Whether you are a developer looking to integrate currency data into your applications or a trader seeking insights into market trends, the Metals-API offers the tools you need to succeed.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page to find the data you need. Embrace the future of financial data with the Metals-API and unlock the potential of historical price analysis for the Philippine Peso.