Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the courtCode for Court of Federal Claims Opinions? #146

Open
jspepper opened this issue Mar 20, 2024 · 2 comments
Open

What is the courtCode for Court of Federal Claims Opinions? #146

jspepper opened this issue Mar 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jspepper
Copy link

What is the correct courtCode for the Court of Federal Claims? I've tried both "cfc" and "cofc" and neither seems to work.

@jspepper jspepper changed the title courtCode for Court of Federal Claims Opinions What is the courtCode for Court of Federal Claims Opinions? Mar 20, 2024
@jonquandt jonquandt self-assigned this Mar 20, 2024
@jonquandt jonquandt added the bug Something isn't working label Mar 20, 2024
@jonquandt
Copy link
Member

The courtCode should be cofc, but it appears that something in our API is not accepting that code. Looking into the issue.

In the mean-time, you could try the courtType=National to get those back. It will also return these courts

United States Court of International Trade
United States Judicial Panel on Multidistrict Litigation

@jonquandt
Copy link
Member

The Search service is returning this ok, so the issue appears to be limited to the collections/published endpoints. Here's a sample curl request generated from our API documentation:

curl -X 'POST' \
  'https://api.govinfo.gov/search?api_key=DEMO_KEY' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "collection:uscourts mods:courtCode:cofc",
  "pageSize": 10,
  "offsetMark": "*",
  "sorts": [
    {
      "field": "relevancy",
      "sortOrder": "DESC"
    }
  ],
  "historical": true,
  "resultLevel": "default"
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants