CodeArtifact
amazonaws · Cloud
CodeArtifact is a fully managed artifact repository compatible with language-native package managers and build tools such as npm, Apache Maven, pip, and dotnet. You can use CodeArtifact to share packages with development teams and pull packages. Packages can be pulled from both public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact repository and another repository, which effectively merges their contents from the point of view of a package
Authentication
Sample Requests
Returns a DomainDescription object that contains information about the requested domain.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/domain#domain?domain=example&domain-owner=example"
import requests
params = {
"domain": "example",
"domain-owner": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/domain#domain",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/domain#domain');
url.searchParams.set('domain', 'example');
url.searchParams.set('domain-owner', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/domain#domain")
q := baseURL.Query()
q.Set("domain", "example")
q.Set("domain-owner", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/domain#domain")
uri.query = URI.encode_www_form({
"domain" => "example",
"domain-owner" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/domain#domain?" . http_build_query([
"domain" => "example",
"domain-owner" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a RepositoryDescription object that contains detailed information about the requested repository.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/repository#domain&repository?domain=example&repository=example&domain-owner=example"
import requests
params = {
"domain": "example",
"repository": "example",
"domain-owner": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/repository#domain&repository",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/repository#domain&repository');
url.searchParams.set('domain', 'example');
url.searchParams.set('repository', 'example');
url.searchParams.set('domain-owner', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/repository#domain&repository")
q := baseURL.Query()
q.Set("domain", "example")
q.Set("repository", "example")
q.Set("domain-owner", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/repository#domain&repository")
uri.query = URI.encode_www_form({
"domain" => "example",
"repository" => "example",
"domain-owner" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/repository#domain&repository?" . http_build_query([
"domain" => "example",
"repository" => "example",
"domain-owner" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a PackageDescription object that contains information about the requested package.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/package#domain&repository&format&package?domain=example&format=npm&package=example&namespace=example&repository=example&domain-owner=example"
import requests
params = {
"domain": "example",
"format": "npm",
"package": "example",
"namespace": "example",
"repository": "example",
"domain-owner": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/package#domain&repository&format&package",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/package#domain&repository&format&package');
url.searchParams.set('domain', 'example');
url.searchParams.set('format', 'npm');
url.searchParams.set('package', 'example');
url.searchParams.set('namespace', 'example');
url.searchParams.set('repository', 'example');
url.searchParams.set('domain-owner', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/package#domain&repository&format&package")
q := baseURL.Query()
q.Set("domain", "example")
q.Set("format", "npm")
q.Set("package", "example")
q.Set("namespace", "example")
q.Set("repository", "example")
q.Set("domain-owner", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/package#domain&repository&format&package")
uri.query = URI.encode_www_form({
"domain" => "example",
"format" => "npm",
"package" => "example",
"namespace" => "example",
"repository" => "example",
"domain-owner" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/codeartifact/2018-09-22/v1/package#domain&repository&format&package?" . http_build_query([
"domain" => "example",
"format" => "npm",
"package" => "example",
"namespace" => "example",
"repository" => "example",
"domain-owner" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with CodeArtifact?
CodeArtifact is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. CodeArtifact is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?