cURL
curl "https://api.ornnai.com/api/memory-types"
import requests
types = requests.get("https://api.ornnai.com/api/memory-types").json()["data"]
const res = await fetch("https://api.ornnai.com/api/memory-types");
const data = await res.json();
<?php
$ch = curl_init("https://api.ornnai.com/api/memory-types");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
package main
import (
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.ornnai.com/api/memory-types", nil)
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
_ = body
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder(
URI.create("https://api.ornnai.com/api/memory-types"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
require "net/http"
require "json"
uri = URI("https://api.ornnai.com/api/memory-types")
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)
{
"success": true,
"data": [
{
"id": "mem_ddr4_16gb",
"memory_type": "DDR4 16Gb (2Gx8) 3200",
"category": "dram"
},
{
"id": "mem_ddr5_16gb",
"memory_type": "DDR5 16Gb (2Gx8) 4800/5600",
"category": "dram"
},
{
"id": "mem_mlc_64gb",
"memory_type": "MLC 64Gb (8Gx8)",
"category": "flash"
}
]
}{
"error": "Unauthorized",
"message": "API key required. Use Authorization: Bearer YOUR_API_KEY"
}List tracked memory types
GET
/
api
/
memory-types
cURL
curl "https://api.ornnai.com/api/memory-types"
import requests
types = requests.get("https://api.ornnai.com/api/memory-types").json()["data"]
const res = await fetch("https://api.ornnai.com/api/memory-types");
const data = await res.json();
<?php
$ch = curl_init("https://api.ornnai.com/api/memory-types");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
package main
import (
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.ornnai.com/api/memory-types", nil)
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
_ = body
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder(
URI.create("https://api.ornnai.com/api/memory-types"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
require "net/http"
require "json"
uri = URI("https://api.ornnai.com/api/memory-types")
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)
{
"success": true,
"data": [
{
"id": "mem_ddr4_16gb",
"memory_type": "DDR4 16Gb (2Gx8) 3200",
"category": "dram"
},
{
"id": "mem_ddr5_16gb",
"memory_type": "DDR5 16Gb (2Gx8) 4800/5600",
"category": "dram"
},
{
"id": "mem_mlc_64gb",
"memory_type": "MLC 64Gb (8Gx8)",
"category": "flash"
}
]
}{
"error": "Unauthorized",
"message": "API key required. Use Authorization: Bearer YOUR_API_KEY"
}Overview
Returns every memory type Ornn tracks as{ id, memory_type, category }. id is the stable ≤32-character key (for example mem_ddr4_16gb); memory_type is the display name. Pass either id or memory_type as type on /api/memory-index.Query Parameters
Available options:
dram, flash, module Response
Memory types.
⌘I

