Response API Format - HedCET/my-uspto GitHub Wiki

curl -X GET 
  'https://my-uspto.herokuapp.com/response?_id=1626545061136.1'

success response format

{
  "status": "success",
  "updated_at": "2020-03-29T01:20:38.055Z",
  "_id": "1626545061136.1",
  "request": {
    "appNoList": ["12113110", "PCT/US2009/042183"]
  },
  "response": {
    "responseJSON": {
      "responseCode": 200,
      "responseObject": [
        {
          "applicationNumberText": "12113110",
          "publicStatusDate": "1352264400",
          "customerNumberText": "97291",
          "inventionTitle": "HEADSET WITH ORIENTATION AND MOTION DETECTION",
          "publicStatusNumber": "150",
          "attrnyDktNumber": "8689P054",
          "applicationTypeCategory": "UTL",
          "applicationNumber": "12113110",
          "patentNumber": "8320578",
          "title": "HEADSET WITH ORIENTATION AND MOTION DETECTION",
          "statusDate": "11/07/2012 00:00:00",
          "issueDate": "11/27/2012",
          "filingDate": "04/30/2008",
          "type": "UTL",
          "applicationFileReference": "8689P054",
          "patronIdentifier": "97291",
          "ppairUrl": "http://portal.uspto.gov/pair/PublicPair",
          "issueDt": "1353992400",
          "fileDt": "1209531600",
          "statusDesc": "Patented Case",
          "publicIndicator": "Y",
          "inventionSubjectMatterCategory": "UTL",
          "displayMaintenanceFee": true,
          "appStatusChanged": false,
          "correspondentName": "Huawei Technologies Co., Ltd."
        },
        {
          "applicationNumber": "PCT/US2009/042183",
          "displayMaintenanceFee": false,
          "appStatusChanged": false,
          "error": "NoDataFound"
        }
      ]
    },
    "status": 200,
    "statusText": "OK"
  }
}

failed response format

{
  "_id": "1626545146554.3",
  "request": {},
  "response": {
    "responseJSON": {
      "responseCode": 400,
      "responseMessage": "patentSearchReq"
    },
    "status": 400,
    "statusText": "Bad Request"
  },
  "status": "failed",
  "updated_at": "2020-03-28T21:58:40.276Z"
}