curl --request GET \
--url https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-valuesimport requests
url = "https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Parameterized Model Parameter Values
Get all parameter values from a parameterized model as JSON.
This endpoint returns the complete parameter set from a parameterized model, suitable for use as baseline parameters in DataFit, parameterization, or optimization workflows. Version and citation metadata are excluded.
Parameters
parameterized_model_id : str
ID of the parameterized model to fetch parameters from
parameterized_models_repository : ParameterizedModelsRepository
Repository for parameterized model data access
resolve : bool
True (the default) returns calculated parameters as the numbers they
evaluate to. False returns them as calculations, the form to copy into
another model so that overriding an input recomputes what depends on it.
names : list[str] | None
Only these parameters, by exact name (repeat the query parameter for
several). Names the model does not have are left out.
match : str | None
Only parameters whose name contains this text, case-insensitively, e.g.
electrolyte. Combined with names, a parameter must satisfy both.
Returns
dict
The parameterized model’s parameter values as JSON (excluding version and
citations), narrowed by names and match when given
curl --request GET \
--url https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-valuesimport requests
url = "https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/cells/{cell_spec_id}/parameterized_models/{parameterized_model_id}/parameter-values")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?