{
  "opencollection": "1.0.0",
  "info": {
    "name": "Consumer Complaint Database Aggregations Trends API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Trends",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List trends",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/trends",
            "params": [
              {
                "name": "search_term",
                "value": "",
                "type": "query",
                "description": "Return results containing specific term"
              },
              {
                "name": "field",
                "value": "",
                "type": "query",
                "description": "If the parameter \"search_term\" has a value, use \"field\" to specify which field is searched. If not specified, \"complaint_what_happened\" will be searched."
              },
              {
                "name": "company",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these companies"
              },
              {
                "name": "company_public_response",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these types of public response by the company"
              },
              {
                "name": "company_received_max",
                "value": "",
                "type": "query",
                "description": "Return results with date < company_received_max (i.e. 2017-03-04)"
              },
              {
                "name": "company_received_min",
                "value": "",
                "type": "query",
                "description": "Return results with date >= company_received_min (i.e. 2017-03-04)"
              },
              {
                "name": "company_response",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these types of response by the company"
              },
              {
                "name": "date_received_max",
                "value": "",
                "type": "query",
                "description": "Return results with date < date_received_max (i.e. 2017-03-04)"
              },
              {
                "name": "date_received_min",
                "value": "",
                "type": "query",
                "description": "Return results with date >= date_received_min (i.e. 2017-03-04)"
              },
              {
                "name": "focus",
                "value": "",
                "type": "query",
                "description": "The name of the product or company on which to focus charts for products and issues"
              },
              {
                "name": "has_narrative",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return the specified state of whether it has narrative in the complaint or not, i.e. yes, no"
              },
              {
                "name": "issue",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these types of issue and subissue, i.e. product-only: Getting a Loan, subproduct needs to include product, separated by '•', Getting a Loan•Can't qualify for a loan"
              },
              {
                "name": "lens",
                "value": "",
                "type": "query",
                "description": "The data lens through which to view complaint trends over time."
              },
              {
                "name": "product",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these types of product and subproduct, i.e. product-only: Mortgage, subproduct needs to include product, separated by '•', Mortgage•FHA mortgage"
              },
              {
                "name": "state",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these states (use abbreviation, i.e. CA, VA)"
              },
              {
                "name": "submitted_via",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these types of way consumers submitted their complaints"
              },
              {
                "name": "sub_lens",
                "value": "",
                "type": "query",
                "description": "The sub-lens through which to view complaint trends over time."
              },
              {
                "name": "sub_lens_depth",
                "value": "",
                "type": "query",
                "description": "The top X trend sub aggregations will be returned, where X is the supplied sub_lens_depth."
              },
              {
                "name": "tags",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these types of tag"
              },
              {
                "name": "timely",
                "value": "",
                "type": "query",
                "description": "Filter the results to show whether a response was timely"
              },
              {
                "name": "trend_depth",
                "value": "",
                "type": "query",
                "description": "The top X trend aggregations will be returned, where X is the supplied trend_depth."
              },
              {
                "name": "trend_interval",
                "value": "",
                "type": "query",
                "description": "The interval of time to use for trends aggregations histograms."
              },
              {
                "name": "zip_code",
                "value": "",
                "type": "query",
                "description": "Filter the results to only return these zip codes"
              }
            ]
          },
          "docs": "Return specific aggregations for a search"
        }
      ]
    }
  ],
  "bundled": true
}