---
title: Commodity Intraday Rates API
version: 2.0.0
description: Timestamped prices for one commodity on any UTC day, at an interval from one minute to one day. Each point is the single price recorded at that exact time, keyed by its ISO 8601 UTC timestamp. A response holds up to 100 points; when the day has more, `nextStartTime` is the value to send as `startTime` for the next page. Available only for commodities updated every second, every minute, or every 10 minutes.
openapi: 3.1.1
servers:
  - https://api.apifreaks.com/v2.0
paths: 1
operations: 1
schemas: 3
---

## Table of Contents

- [Commodity Intraday Rates API v2.0.0](#commodity-intraday-rates-api-v200)
  - [Authentication](#authentication)
  - [Commodity APIs](#commodity-apis)
    - [getCommodityIntradayRates](#getcommodityintradayrates)
      - [Parameters](#parameters)
      - [Responses](#responses)
  - [Schemas](#schemas)
    - [CommodityIntradayResponse](#commodityintradayresponse)
    - [CommodityIntradayMetadata](#commodityintradaymetadata)
    - [ErrorResponse](#errorresponse)



# Commodity Intraday Rates API v2.0.0

Timestamped prices for one commodity on any UTC day, at an interval from one minute to one day. Each point is the single price recorded at that exact time, keyed by its ISO 8601 UTC timestamp. A response holds up to 100 points; when the day has more, `nextStartTime` is the value to send as `startTime` for the next page. Available only for commodities updated every second, every minute, or every 10 minutes.

Base URLs:

* [https://api.apifreaks.com/v2.0](https://api.apifreaks.com/v2.0)

## Authentication

* API Key (ApiKeyAuthHeader)
    - Parameter Name: **X-apiKey**, in: header. Pass your API key via the X-apiKey request header.

* API Key (ApiKeyAuthQuery)
    - Parameter Name: **apiKey**, in: query. Pass your API key via the apiKey query parameter.

## Commodity APIs

### getCommodityIntradayRates

`GET /commodity/rates/intraday`

*Get intraday commodity rates*

Returns the prices of one commodity through a UTC day at the requested interval, keyed by UTC timestamp. Each request costs a flat 50 credits however many points it returns.

#### Parameters

|Name|In|Type|Required|Description|
|---|---|---|---|---|
|symbols|query|string|true|Exactly one commodity symbol. Case-insensitive. Sending two or more returns a 400. Only symbols updated every second, every minute, or every 10 minutes have intraday rates; symbols updated hourly or less often return a 400. Use the Commodity Symbols endpoint for all valid values.|
|interval|query|string|true|Spacing between points. Case-insensitive. Symbols updated every 10 minutes accept only `10m`, `30m`, `1h`, `2h`, `4h`, `8h`, `12h`, `1d`.|
|date|query|string(date)|true|The UTC day to read, in `YYYY-MM-DD` format. Cannot be in the future. For today, points stop at the current UTC minute.|
|startTime|query|string|false|First mark of the window, as a 24-hour UTC time in `HH:mm`. Must fall on a mark of the interval (for example, `14:30` works for `5m` or `30m`, but not for `1h`). For `1d` it can only be `00:00`.|
|metadata|query|boolean|false|Whether to include the `metadata` object. Pass `false` to receive only the prices.|

##### Enumerated Values

|Parameter|Value|
|---|---|
|interval|1m|
|interval|5m|
|interval|10m|
|interval|15m|
|interval|30m|
|interval|45m|
|interval|1h|
|interval|2h|
|interval|4h|
|interval|8h|
|interval|12h|
|interval|1d|

> Example responses

> Successful operation

```json
{
  "success": true,
  "symbol": "XAU",
  "date": "2026-10-14",
  "interval": "1h",
  "startTime": "18:00",
  "count": 6,
  "nextStartTime": null,
  "rates": {
    "2026-10-14T18:00:00Z": 4084.75,
    "2026-10-14T19:00:00Z": 4097.03,
    "2026-10-14T20:00:00Z": 4101.92,
    "2026-10-14T21:00:00Z": 4105.72,
    "2026-10-14T22:00:00Z": 4105.72,
    "2026-10-14T23:00:00Z": 4106.41
  },
  "metadata": {
    "XAU": {
      "unit": "T.oz",
      "quote": "USD"
    }
  }
}
```

```json
{
  "success": true,
  "symbol": "WTIOIL-FUT",
  "date": "2026-10-14",
  "interval": "1m",
  "startTime": "00:00",
  "count": 100,
  "nextStartTime": "01:40",
  "rates": {
    "2026-10-14T00:00:00Z": 94.69,
    "2026-10-14T00:01:00Z": 94.81,
    "2026-10-14T00:02:00Z": 94.82,
    "2026-10-14T00:03:00Z": 94.82,
    "2026-10-14T00:04:00Z": 94.79,
    "2026-10-14T00:05:00Z": 94.8,
    "2026-10-14T00:06:00Z": 94.8,
    "2026-10-14T00:07:00Z": 94.78,
    "2026-10-14T00:08:00Z": 94.73,
    "2026-10-14T00:09:00Z": 94.73,
    "2026-10-14T00:10:00Z": 94.74,
    "2026-10-14T00:11:00Z": 94.72,
    "2026-10-14T00:12:00Z": 94.78,
    "2026-10-14T00:13:00Z": 94.81,
    "2026-10-14T00:14:00Z": 94.81,
    "2026-10-14T00:15:00Z": 94.72,
    "2026-10-14T00:16:00Z": 94.84,
    "2026-10-14T00:17:00Z": 94.98,
    "2026-10-14T00:18:00Z": 94.89,
    "2026-10-14T00:19:00Z": 94.83,
    "2026-10-14T00:20:00Z": 94.87,
    "2026-10-14T00:21:00Z": 94.86,
    "2026-10-14T00:22:00Z": 94.88,
    "2026-10-14T00:23:00Z": 94.9,
    "2026-10-14T00:24:00Z": 94.92,
    "2026-10-14T00:25:00Z": 95.01,
    "2026-10-14T00:26:00Z": 95.04,
    "2026-10-14T00:27:00Z": 94.98,
    "2026-10-14T00:28:00Z": 94.98,
    "2026-10-14T00:29:00Z": 95,
    "2026-10-14T00:30:00Z": 94.94,
    "2026-10-14T00:31:00Z": 94.99,
    "2026-10-14T00:32:00Z": 94.98,
    "2026-10-14T00:33:00Z": 94.97,
    "2026-10-14T00:34:00Z": 94.97,
    "2026-10-14T00:35:00Z": 94.99,
    "2026-10-14T00:36:00Z": 95,
    "2026-10-14T00:37:00Z": 95.02,
    "2026-10-14T00:38:00Z": 94.99,
    "2026-10-14T00:39:00Z": 94.93,
    "2026-10-14T00:40:00Z": 94.95,
    "2026-10-14T00:41:00Z": 94.99,
    "2026-10-14T00:42:00Z": 94.96,
    "2026-10-14T00:43:00Z": 94.94,
    "2026-10-14T00:44:00Z": 94.94,
    "2026-10-14T00:45:00Z": 94.95,
    "2026-10-14T00:46:00Z": 94.94,
    "2026-10-14T00:47:00Z": 94.94,
    "2026-10-14T00:48:00Z": 94.99,
    "2026-10-14T00:49:00Z": 94.97,
    "2026-10-14T00:50:00Z": 94.98,
    "2026-10-14T00:51:00Z": 95.04,
    "2026-10-14T00:52:00Z": 95.02,
    "2026-10-14T00:53:00Z": 95.06,
    "2026-10-14T00:54:00Z": 95.05,
    "2026-10-14T00:55:00Z": 95.03,
    "2026-10-14T00:56:00Z": 95.02,
    "2026-10-14T00:57:00Z": 95.02,
    "2026-10-14T00:58:00Z": 95.01,
    "2026-10-14T00:59:00Z": 95.09,
    "2026-10-14T01:00:00Z": 95.09,
    "2026-10-14T01:01:00Z": 95.24,
    "2026-10-14T01:02:00Z": 95.27,
    "2026-10-14T01:03:00Z": 95.24,
    "2026-10-14T01:04:00Z": 95.3,
    "2026-10-14T01:05:00Z": 95.38,
    "2026-10-14T01:06:00Z": 95.38,
    "2026-10-14T01:07:00Z": 95.29,
    "2026-10-14T01:08:00Z": 95.36,
    "2026-10-14T01:09:00Z": 95.31,
    "2026-10-14T01:10:00Z": 95.29,
    "2026-10-14T01:11:00Z": 95.4,
    "2026-10-14T01:12:00Z": 95.36,
    "2026-10-14T01:13:00Z": 95.27,
    "2026-10-14T01:14:00Z": 95.31,
    "2026-10-14T01:15:00Z": 95.35,
    "2026-10-14T01:16:00Z": 95.4,
    "2026-10-14T01:17:00Z": 95.37,
    "2026-10-14T01:18:00Z": 95.4,
    "2026-10-14T01:19:00Z": 95.4,
    "2026-10-14T01:20:00Z": 95.37,
    "2026-10-14T01:21:00Z": 95.35,
    "2026-10-14T01:22:00Z": 95.35,
    "2026-10-14T01:23:00Z": 95.33,
    "2026-10-14T01:24:00Z": 95.3,
    "2026-10-14T01:25:00Z": 95.28,
    "2026-10-14T01:26:00Z": 95.29,
    "2026-10-14T01:27:00Z": 95.27,
    "2026-10-14T01:28:00Z": 95.29,
    "2026-10-14T01:29:00Z": 95.3,
    "2026-10-14T01:30:00Z": 95.35,
    "2026-10-14T01:31:00Z": 95.17,
    "2026-10-14T01:32:00Z": 95.18,
    "2026-10-14T01:33:00Z": 95.18,
    "2026-10-14T01:34:00Z": 95.2,
    "2026-10-14T01:35:00Z": 95.23,
    "2026-10-14T01:36:00Z": 95.21,
    "2026-10-14T01:37:00Z": 95.25,
    "2026-10-14T01:38:00Z": 95.25,
    "2026-10-14T01:39:00Z": 95.29
  },
  "metadata": {
    "WTIOIL-FUT": {
      "unit": "Bbl",
      "quote": "USD"
    }
  }
}
```

```json
{
  "success": true,
  "symbol": "XAU",
  "date": "2026-10-14",
  "interval": "4h",
  "startTime": "12:00",
  "count": 3,
  "nextStartTime": null,
  "rates": {
    "2026-10-14T12:00:00Z": 4139.81,
    "2026-10-14T16:00:00Z": 4080.88,
    "2026-10-14T20:00:00Z": 4101.92
  }
}
```

```json
{
  "success": true,
  "symbol": "XAU",
  "date": "2026-10-14",
  "interval": "4h",
  "startTime": "12:00",
  "count": 3,
  "nextStartTime": null,
  "rates": {
    "2026-10-14T12:00:00Z": 4139.81,
    "2026-10-14T16:00:00Z": 4080.88,
    "2026-10-14T20:00:00Z": 4101.92
  },
  "metadata": {
    "XAU": {
      "unit": "T.oz",
      "quote": "USD"
    }
  },
  "unresolved": {
    "GOLD": {
      "message": "GOLD is not a symbol code used by this API. Gold is available as \"XAU\", so its rate was returned under that symbol.",
      "resolvedTo": "XAU"
    }
  }
}
```

> Bad Request: Missing or invalid parameters, or the symbol has no intraday rates

```json
{
  "error": "Invalid Param Exception",
  "message": "please pass correct parameters",
  "path": "/v2.0/commodity/rates/intraday",
  "status": 400,
  "timestamp": "2026-10-27T09:47:11.299Z"
}
```

```json
{
  "error": "Invalid Param Exception",
  "message": "please pass correct parameters",
  "path": "/v2.0/commodity/rates/intraday",
  "status": 400,
  "timestamp": "2026-10-27T09:47:11.299Z"
}
```

```json
{
  "error": "Invalid Param Exception",
  "message": "please pass correct parameters",
  "path": "/v2.0/commodity/rates/intraday",
  "status": 400,
  "timestamp": "2026-10-27T09:47:11.299Z"
}
```

```json
{
  "timestamp": "2026-10-27T09:12:41.901Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "intraday accepts exactly one symbol in the symbols parameter"
}
```

```json
{
  "timestamp": "2026-10-27T10:05:54.904Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid interval '5m' for TIOC: valid intervals for TIOC are 10m, 30m, 1h, 2h, 4h, 8h, 12h, 1d"
}
```

```json
{
  "timestamp": "2026-10-27T09:12:42.377Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid date format: expected YYYY-MM-DD"
}
```

```json
{
  "timestamp": "2026-10-27T09:12:42.619Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid Date: The provided date does not exist."
}
```

```json
{
  "timestamp": "2026-10-27T09:12:42.858Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid date: intraday rates are not available for future dates"
}
```

```json
{
  "timestamp": "2026-10-27T09:12:43.093Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid startTime: expected a 24-hour time in HH:mm (UTC), e.g. 14:30"
}
```

```json
{
  "timestamp": "2026-10-27T09:12:43.330Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid startTime '14:30': it must fall on a 1h mark (minutes since 00:00 divisible by 60)"
}
```

```json
{
  "timestamp": "2026-10-27T09:12:43.571Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "BAD_REQUEST",
  "message": "Intraday rates are not available for NG-EU: they exist only for symbols updated every second, minute or 10 minutes"
}
```

```json
{
  "timestamp": "2026-10-27T09:45:36.355Z",
  "path": "/rates/intraday",
  "code": 400,
  "error": "VALIDATION_ERROR",
  "message": "Invalid interval '7m': use one of 1m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 4h, 8h, 12h, 1d"
}
```

> Not found: Symbol not supported, or no data for the requested window

```json
{
  "timestamp": "2026-10-27T09:12:44.012Z",
  "path": "/rates/intraday",
  "code": 404,
  "error": "SYMBOL_NOT_FOUND",
  "message": "The symbol is not supported, please visit the documentation for a list of supported symbols",
  "unresolved": {
    "FAKESYM": {
      "message": "We don't recognise this symbol code and could not match it to any commodity we carry. See our symbols page for the symbols this API uses."
    }
  }
}
```

```json
{
  "timestamp": "2026-10-27T09:12:44.268Z",
  "path": "/rates/intraday",
  "code": 404,
  "error": "DATA_NOT_FOUND",
  "message": "No intraday data found for the specified window"
}
```

#### Responses

|Status|Meaning|Description|Schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Successful operation|[CommodityIntradayResponse](#commodityintradayresponse)|
|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|Bad Request: Missing or invalid parameters, or the symbol has no intraday rates|[ErrorResponse](#errorresponse)|
|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Not found: Symbol not supported, or no data for the requested window|[ErrorResponse](#errorresponse)|

#### Response Headers

|Status|Header|Type|Format|Description|
|---|---|---|---|---|
|200|X-AF-Credits-Cost|integer||Specifies the number of credits consumed by the current request.|
|400|X-AF-Credits-Cost|integer||Specifies the number of credits consumed by the current request.|
|404|X-AF-Credits-Cost|integer||Specifies the number of credits consumed by the current request.|

To perform this operation, you must be authenticated by means of one of the following methods:
ApiKeyAuthHeader, ApiKeyAuthQuery

## Schemas

### CommodityIntradayResponse

Intraday response containing the prices of the requested symbol keyed by UTC timestamp.

#### Properties

|Name|Type|Required|Restrictions|Description|
|---|---|---|---|---|
|success|boolean|true|none|`true` for successful requests.|
|symbol|string|true|none|The symbol the prices belong to.|
|date|string|true|none|The UTC day requested. Format: `YYYY-MM-DD`.|
|interval|string|true|none|The interval used, in lowercase form (`5M` comes back as `5m`).|
|startTime|string|true|none|First mark of the window, `HH:mm` UTC.|
|count|integer|true|none|Number of points in `rates` (at most 100).|
|nextStartTime|any|true|none|`HH:mm` value to pass as `startTime` for the next page, or `null` when the window reached the end of the day (or the current minute, for today).|

anyOf

|Name|Type|Required|Restrictions|Description|
|---|---|---|---|---|
|» *anonymous*|string|false|none|none|

or

|Name|Type|Required|Restrictions|Description|
|---|---|---|---|---|
|» *anonymous*|null|false|none|none|

continued

|Name|Type|Required|Restrictions|Description|
|---|---|---|---|---|
|rates|object|true|none|Prices keyed by ISO 8601 UTC timestamp (for example `2026-10-14T18:00:00Z`), in ascending order. Values are rounded to two decimals. A mark with no recorded price is left out rather than filled in.|
|» **additionalProperties**|number(float)|false|none|none|
|metadata|object|false|none|Unit and currency of the prices, keyed by the requested symbol. Omitted when the request sets `metadata=false`.|
|» **additionalProperties**|[CommodityIntradayMetadata](#commodityintradaymetadata)|false|none|Unit and currency of the prices for one commodity.|
|unresolved|object|false|none|Present when the symbol you sent was matched to a single alternative (200, with `resolvedTo`, for example `GOLD` answered as `XAU`), or not recognized at all (404, with a `suggestions` array when close matches exist).|
|» **additionalProperties**|object|false|none|none|
|»» message|string|false|none|Detail message explaining how this symbol was handled.|
|»» resolvedTo|string|false|none|The supported symbol the request was answered with.|
|»» suggestions|[string]|false|none|Optional list of supported symbols that closely match the unresolved symbol.|

##### Enumerated Values

|Property|Value|
|---|---|
|interval|1m|
|interval|5m|
|interval|10m|
|interval|15m|
|interval|30m|
|interval|45m|
|interval|1h|
|interval|2h|
|interval|4h|
|interval|8h|
|interval|12h|
|interval|1d|

### CommodityIntradayMetadata

Unit and currency of the prices for one commodity.

#### Properties

|Name|Type|Required|Restrictions|Description|
|---|---|---|---|---|
|unit|string|false|none|Unit the commodity is priced in (for example `T.oz` or `Bbl`).|
|quote|string|false|none|Currency the prices are quoted in (for example `USD`).|

### ErrorResponse

Standard error envelope returned by the API on failed requests. Gateway-level validation errors populate status; commodity-service errors (date/symbol/data validation) populate code instead: check whichever is present.

#### Properties

|Name|Type|Required|Restrictions|Description|
|---|---|---|---|---|
|error|string|false|none|Short error category or exception type (e.g., Invalid Param Exception, VALIDATION_ERROR, SYMBOL_NOT_FOUND, DATA_NOT_FOUND).|
|message|string|true|none|Human-readable error message describing the failure.|
|path|string|false|none|API endpoint path (gateway errors) or internal service path (commodity-service errors) that produced the error.|
|status|integer|false|none|HTTP status code. Present on gateway-level errors.|
|code|integer|false|none|HTTP status code. Present on commodity-service errors instead of status.|
|timestamp|string(date-time)|false|none|Timestamp when the error occurred (ISO 8601).|
|unresolved|object|false|none|Present only on SYMBOL_NOT_FOUND errors. Map of each unresolved symbol to a detail message and optional close-match suggestions.|
|» **additionalProperties**|object|false|none|none|
|»» message|string|false|none|Detail message explaining why this symbol was not resolved.|
|»» suggestions|[string]|false|none|Optional list of supported symbols that closely match the unresolved symbol.|
