Skip to content

Instantly share code, notes, and snippets.

Retrieve Award IDs for the autocomplete text box

Route: /api/v2/autocomplete/pca/

Method: POST

This route sends a request to the backend to retrieve award IDs matching the specified search text.

Request example

NAICS Autocomplete

Route: /api/v2/autocomplete/naics/

Method: POST

This route sends a request to the backend to retrieve award IDs matching the specified search text.

Request example

Retrieve Award IDs for the autocomplete text box

Route: /api/v2/autocomplete/CFDA/

Method: POST

This route sends a request to the backend to retrieve CFDA matching the specified search text.

Request example

Load Submission documentation

Call: python manage.py load_submission [options/args]

Purpose: Load submission data from submission file into the database

Flags:

PSC Autocomplete

Route: /api/v2/autocomplete/psc/

Method: POST

This route sends a request to the backend to retrieve award IDs matching the specified search text.

Request example

CFDA Autocomplete

Route: /api/v2/autocomplete/cfda/

Method: POST

This route sends a request to the backend to retrieve award IDs matching the specified search text.

Request example

Download

Route: /api/v2/download/

Method: POST

This route sends a request to the backend to retrieve award IDs matching the specified search text.

Request example

Spending Over Time

Route: /api/v2/search/spending_over_time/

Method: POST

This route takes award filters, and returns spending by time. The amount of time is denoted by the "group" value.

Request

group: how the data is broken up. ex: "quarter", "fiscal_year", "month"

Spending By Category

Route: /api/v2/search/spending_by_category/

Method: POST

This route takes award filters, and returns spending by the defined category/scope. The category is defined by the "category" var, and the scope is defined by is denoted by the "scope" var.

Request

"category": What variable the aggregated_amount is broken up by.

Spending By Geography

Route: /api/v2/search/spending_by_geography/

Method: POST

This route takes award filters, and returns spending by state code.

Request

scope: Scope defines what location is used for filtering the aggregated_amount.