Skip to main content
POST
/
api
/
federalregister
/
public_inspection_documents
/federalregister/public_inspection_documents
curl --request POST \
  --url https://api.anysite.io/api/federalregister/public_inspection_documents \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "document_number": "<string>",
  "timeout": 300
}
'
import requests

url = "https://api.anysite.io/api/federalregister/public_inspection_documents"

payload = {
"document_number": "<string>",
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_number: '<string>', timeout: 300})
};

fetch('https://api.anysite.io/api/federalregister/public_inspection_documents', 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.anysite.io/api/federalregister/public_inspection_documents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document_number' => '<string>',
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/federalregister/public_inspection_documents"

payload := strings.NewReader("{\n \"document_number\": \"<string>\",\n \"timeout\": 300\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/federalregister/public_inspection_documents")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document_number\": \"<string>\",\n \"timeout\": 300\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/federalregister/public_inspection_documents")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"document_number\": \"<string>\",\n \"timeout\": 300\n}"

response = http.request(request)
puts response.read_body
[
  {
    "document_number": "<string>",
    "@type": "FederalregisterPublicInspectionDocument",
    "type": "<string>",
    "subject_1": "<string>",
    "subject_2": "<string>",
    "subject_3": "<string>",
    "toc_doc": "<string>",
    "toc_subject": "<string>",
    "editorial_note": "<string>",
    "excerpts": "<string>",
    "filing_type": "<string>",
    "filed_at": "<string>",
    "publication_date": "<string>",
    "last_public_inspection_issue": "<string>",
    "num_pages": 123,
    "docket_numbers": [],
    "agency_names": [],
    "agencies": [],
    "pdf_file_name": "<string>",
    "pdf_file_size": 123,
    "pdf_updated_at": "<string>",
    "page_view_count": 123,
    "html_url": "<string>",
    "pdf_url": "<string>",
    "raw_text_url": "<string>",
    "json_url": "<string>"
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
document_number
string
required
Minimum string length: 1
timeout
integer
default:300
Required range: 20 <= x <= 1500

Response

Successful Response

document_number
string
required
@type
string
default:FederalregisterPublicInspectionDocument
type
string | null
subject_1
string | null
subject_2
string | null
subject_3
string | null
toc_doc
string | null
toc_subject
string | null
editorial_note
string | null
excerpts
string | null
filing_type
string | null
filed_at
string | null
publication_date
string | null
last_public_inspection_issue
string | null
num_pages
integer | null
docket_numbers
string[]
agency_names
string[]
agencies
object[]
pdf_file_name
string | null
pdf_file_size
integer | null
pdf_updated_at
string | null
page_view_count
integer | null
html_url
string | null
pdf_url
string | null
raw_text_url
string | null
json_url
string | null