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

IMLS sub-agency appears twice #3768

Open
grugnog opened this issue Mar 29, 2023 · 0 comments
Open

IMLS sub-agency appears twice #3768

grugnog opened this issue Mar 29, 2023 · 0 comments

Comments

@grugnog
Copy link

grugnog commented Mar 29, 2023

This looks like a data bug somewhere - the agency IMLS has 2 sub-agency with identical name and abbreviations. Curiously the award/transaction numbers differ however, so it seems like it does have 2 records somewhere.


curl -s 'https://api.usaspending.gov/api/v2/agency/474/sub_agency/' | jq
{
  "toptier_code": "474",
  "fiscal_year": 2023,
  "page_metadata": {
    "page": 1,
    "total": 2,
    "limit": 10,
    "next": null,
    "previous": null,
    "hasNext": false,
    "hasPrevious": false
  },
  "results": [
    {
      "abbreviation": "IMLS",
      "name": "Institute of Museum and Library Services",
      "total_obligations": 180330098.83,
      "transaction_count": 244,
      "new_award_count": 71,
      "children": [
        {
          "code": "539871",
          "name": "INSTITUTE OF MUSEUM  LIBRARY SVCS",
          "total_obligations": 180330098.83,
          "transaction_count": 244,
          "new_award_count": 71
        }
      ]
    },
    {
      "abbreviation": "IMLS",
      "name": "Institute of Museum and Library Services",
      "total_obligations": 1498565.18,
      "transaction_count": 24,
      "new_award_count": 8,
      "children": [
        {
          "code": "539871",
          "name": "INSTITUTE OF MUSEUM  LIBRARY SVCS",
          "total_obligations": 1498565.18,
          "transaction_count": 24,
          "new_award_count": 8
        }
      ]
    }
  ],
  "messages": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant