Skip to content

Instantly share code, notes, and snippets.

@fulldecent
Created October 28, 2023 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fulldecent/25d9c842a58bb7b63c5ec65a6a53b26b to your computer and use it in GitHub Desktop.
Save fulldecent/25d9c842a58bb7b63c5ec65a6a53b26b to your computer and use it in GitHub Desktop.

API key

Get an API key in 20 seconds from https://open.gsa.gov/api/regulationsgov/

export APIKEY=...

List of documents

curl "https://api.regulations.gov/v4/documents?page%5Bsize%5D=250&filter%5BagencyId%5D=IRS&filter%5BpostedDate%5D%5Bge%5D=2023-01-01&api_key=$APIKEY" >> documents.json

curl "https://api.regulations.gov/v4/documents?page%5Bsize%5D=250&filter%5BagencyId%5D=IRS&filter%5BpostedDate%5D%5Bge%5D=2023-09-01&api_key=$APIKEY" >> documents.json

jq --raw-output '.data[] | select(.attributes.commentEndDate != null) | .attributes.objectId' documents.json > objectIds

jq --raw-output '.data[] | select(.attributes.commentEndDate != null) | .attributes.title' documents.json > titles

Find which had comments

for objectId in $(cat objectIds)
  do curl "https://api.regulations.gov/v4/comments?filter%5BcommentOnId%5D=$objectId&page%5Bsize%5D=5&api_key=$APIKEY" | jq '.meta.totalElements' >> totalComments
done

Combine

paste totalComments title | sort -nru > combined
@fulldecent
Copy link
Author

Screenshot 2023-10-28 at 10 26 12

As of today

Comments Title
12536 Gross Proceeds and Basis Reporting by Brokers and Determination of Amount Realized and Basis for Digital Asset Transactions
152 Section 6417 Elective Payment of Applicable Credits
112 Increased Credit or Deduction Amounts for Satisfying Certain Prevailing Wage and Registered Apprenticeship Requirements
110 Micro-Captive Listed Transactions and Micro-Captive Transactions of Interest
88 Section 30D New Clean Vehicle Credit
81 Section 6418 Transfer of Certain Credits
76 Additional Guidance on Low-Income Communities Bonus Credit Program
65 Initial Guidance Regarding the Application of the Corporate Alternative Minimum Tax under Sections 55, 56A, and 59 of the Internal Revenue Code (Notice 2023-7)
60 Service Industry Tip Compliance Agreement Program (Notice 2023-13)
50 2023-24 PGP Solicitation Notice FINAL
49 Advanced Manufacturing Investment Credit
33 Notice 2023-27 - NFTs under 408(m)(2) - NOT-121819-22(checked) (002)
26 Notice 2023-64
24 Guidance on Section 603 of the SECURE 2.0 Act with Respect to Catch Up Contributions (Notice 2023-62)
21 Superfund Chemical Taxes
20 Initial Guidance Regarding the Application of the Excise Tax on Repurchases of Corporate Stock under Section 4501 of the Internal Revenue Code (Notice 2023-2)
18 Coverage of Certain Preventive Services under the Affordable Care Act
15 Elective Payment of Advanced Manufacturing Investment Credit
10 Notice 2023-63
9 Use of Forfeitures in Qualified Retirement Plans
8 Rules for Supervisory Approval of Penalties
6 Notice 2023-39
5 Information Reporting and Transfer: Valuable Consideration Rules for Exchanges of Life Insurance and Certain Other Life Insurance Contract Transactions
4 Guidance Related to the Foreign Tax Credit; Hearing
3 Section 45J Credit for Production of Electricity from Advanced Nuclear Power Facilities (Notice 2023-24)
2 Notice 2023-20
1 Rev Proc 2023-22 (2)
0 Request for Information: Coverage of Over-the-Counter Preventive Services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment