Get your studio
curl --request GET \
--url https://www.nmcrate.com/api/public/v1/studioimport requests
url = "https://www.nmcrate.com/api/public/v1/studio"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.nmcrate.com/api/public/v1/studio', 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://www.nmcrate.com/api/public/v1/studio",
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://www.nmcrate.com/api/public/v1/studio"
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://www.nmcrate.com/api/public/v1/studio")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.nmcrate.com/api/public/v1/studio")
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_bodyStudio
Get your studio
The key’s own studio profile, catalog counts, and the key’s tier.
GET
/
api
/
public
/
v1
/
studio
Get your studio
curl --request GET \
--url https://www.nmcrate.com/api/public/v1/studioimport requests
url = "https://www.nmcrate.com/api/public/v1/studio"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.nmcrate.com/api/public/v1/studio', 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://www.nmcrate.com/api/public/v1/studio",
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://www.nmcrate.com/api/public/v1/studio"
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://www.nmcrate.com/api/public/v1/studio")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.nmcrate.com/api/public/v1/studio")
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_bodyReturns the public profile of the studio the key belongs to, plus catalog counts and an echo of the calling key’s tier. Useful as a connectivity/identity check (“whoami”).
No parameters.
Tier: Free, any studio key.
Request
curl https://nmcrate.com/api/public/v1/studio \
-H "x-api-key: nmk_studio_..."
Response
{
"studio": {
"slug": "my-studio",
"name": "My Studio",
"subtitle": "Premium Minecraft plugins",
"description": "We build things.",
"category": "plugins",
"imageUrl": "https://cdn.example.com/logo.png",
"bannerUrl": null,
"followerCount": 128,
"salesCount": 342,
"isVerified": true,
"url": "/studios/my-studio"
},
"products": {
"total": 12,
"published": 9
},
"apiKey": {
"tier": "basic"
}
}
| Field | Description |
|---|---|
studio | The studio’s public profile, identical shape to the store’s public studio pages. |
products.total | All non-archived products, drafts included. |
products.published | Products currently live in the store. |
apiKey.tier | basic or premium, the tier of the key making this request. |