HHS Media Services API
hhs · Data
Common Features / Behaviors * "sort" param: supports multi column sorting through the use of commas as delimiters, and a hyphen to denote descending order. Examples: name sort results by name ascending -name sort results by name des
Authentication
Sample Requests
Global search
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/hhs.gov/2/resources.json?q=test"
import requests
params = {
"q": "test"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hhs.gov/2/resources.json",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hhs.gov/2/resources.json');
url.searchParams.set('q', 'test');
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/hhs.gov/2/resources.json")
q := baseURL.Query()
q.Set("q", "test")
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/hhs.gov/2/resources.json")
uri.query = URI.encode_www_form({
"q" => "test"
})
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/hhs.gov/2/resources.json?" . http_build_query([
"q" => "test"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Media Listings for a specific campaign
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/hhs.gov/2/resources/campaigns.json?max=1&sort=desc&offset=0"
import requests
params = {
"max": "1",
"sort": "desc",
"offset": "0"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hhs.gov/2/resources/campaigns.json",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hhs.gov/2/resources/campaigns.json');
url.searchParams.set('max', '1');
url.searchParams.set('sort', 'desc');
url.searchParams.set('offset', '0');
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/hhs.gov/2/resources/campaigns.json")
q := baseURL.Query()
q.Set("max", "1")
q.Set("sort", "desc")
q.Set("offset", "0")
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/hhs.gov/2/resources/campaigns.json")
uri.query = URI.encode_www_form({
"max" => "1",
"sort" => "desc",
"offset" => "0"
})
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/hhs.gov/2/resources/campaigns.json?" . http_build_query([
"max" => "1",
"sort" => "desc",
"offset" => "0"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Language Listings
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/hhs.gov/2/resources/languages.json?max=1&sort=desc&offset=0"
import requests
params = {
"max": "1",
"sort": "desc",
"offset": "0"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hhs.gov/2/resources/languages.json",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hhs.gov/2/resources/languages.json');
url.searchParams.set('max', '1');
url.searchParams.set('sort', 'desc');
url.searchParams.set('offset', '0');
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/hhs.gov/2/resources/languages.json")
q := baseURL.Query()
q.Set("max", "1")
q.Set("sort", "desc")
q.Set("offset", "0")
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/hhs.gov/2/resources/languages.json")
uri.query = URI.encode_www_form({
"max" => "1",
"sort" => "desc",
"offset" => "0"
})
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/hhs.gov/2/resources/languages.json?" . http_build_query([
"max" => "1",
"sort" => "desc",
"offset" => "0"
]);
$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 HHS Media Services API?
HHS Media Services API is a Data API. Developers commonly use data APIs for:
- enriching your app with third-party datasets
- building data pipelines and ETL workflows
- querying and searching large datasets
- powering research, analysis, and reporting tools
- syncing reference data into your own systems
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. HHS Media Services API 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?