Skip to main content
POST
/
api
/
federalregister
/
public_inspection_documents
/
search
/federalregister/public_inspection_documents/search
curl --request POST \
  --url https://api.anysite.io/api/federalregister/public_inspection_documents/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "current": false,
  "term": "<string>",
  "available_on": "<string>",
  "type": [],
  "agencies": [
    "<string>"
  ],
  "agency_ids": [
    123
  ],
  "docket_id": "<string>"
}
'
import requests

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

payload = {
"count": 2,
"timeout": 300,
"current": False,
"term": "<string>",
"available_on": "<string>",
"type": [],
"agencies": ["<string>"],
"agency_ids": [123],
"docket_id": "<string>"
}
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({
count: 2,
timeout: 300,
current: false,
term: '<string>',
available_on: '<string>',
type: [],
agencies: ['<string>'],
agency_ids: [123],
docket_id: '<string>'
})
};

fetch('https://api.anysite.io/api/federalregister/public_inspection_documents/search', 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/search",
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([
'count' => 2,
'timeout' => 300,
'current' => false,
'term' => '<string>',
'available_on' => '<string>',
'type' => [

],
'agencies' => [
'<string>'
],
'agency_ids' => [
123
],
'docket_id' => '<string>'
]),
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/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"current\": false,\n \"term\": \"<string>\",\n \"available_on\": \"<string>\",\n \"type\": [],\n \"agencies\": [\n \"<string>\"\n ],\n \"agency_ids\": [\n 123\n ],\n \"docket_id\": \"<string>\"\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/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"current\": false,\n \"term\": \"<string>\",\n \"available_on\": \"<string>\",\n \"type\": [],\n \"agencies\": [\n \"<string>\"\n ],\n \"agency_ids\": [\n 123\n ],\n \"docket_id\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

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

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 \"count\": 2,\n \"timeout\": 300,\n \"current\": false,\n \"term\": \"<string>\",\n \"available_on\": \"<string>\",\n \"type\": [],\n \"agencies\": [\n \"<string>\"\n ],\n \"agency_ids\": [\n 123\n ],\n \"docket_id\": \"<string>\"\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
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
current
boolean
default:false
term
string | null
available_on
string | null
type
enum<string>[] | null
Available options:
RULE,
PRORULE,
NOTICE,
PRESDOCU
agencies
string[] | null
agency_ids
integer[] | null
docket_id
string | null

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