---
title: Fetch Horizontal Frac Records
slug: fetch-horizontal-frac-records
docTags: 
createdAt: 2025-03-29T02:19:44.962Z
---

{
  "id": "K9m3S8lFSIo2HUNdBQQM9",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://data.onxecta.com/api/production/horizontalfrac/{uwi}",
    "servers": [
      {
        "url": "https://data.onxecta.com/api/production/horizontalfrac/{uwi}",
        "description": "AWS Cloud API Endpoint"
      },
      {
        "url": "http://localhost/api/production/horizontalfrac/{uwi}",
        "description": "Local Testing API Endpoint"
      }
    ],
    "name": "Fetch Horizontal Frac Records",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "uwi",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "startDate",
          "type": "string<date-time>",
          "description": "",
          "format": "date-time"
        },
        {
          "kind": "optional",
          "name": "endDate",
          "type": "string<date-time>",
          "description": "",
          "format": "date-time"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "HorizontalFrac[]",
            "schema": [
              {
                "name": "wellXid",
                "kind": "optional",
                "type": "string<uuid>",
                "description": "",
                "format": "uuid"
              },
              {
                "name": "date",
                "kind": "required",
                "type": "string<date-time>",
                "description": "<p>Datetime of the event. DatetimeOffset (with timezone) in ISO 8601 format. Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
                "format": "date-time"
              },
              {
                "name": "averageEffectiveSpacing",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Average distance to offset wells at time of completion",
                "format": "double"
              },
              {
                "name": "minEffectiveSpacing",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Distance to the closest offset well at time of completion",
                "format": "double"
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Completion type (Plug-n-perf, sliding sleeve, etc). It is important to standardize values to enable grouped analysis.</p>"
              },
              {
                "name": "fluidType",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Completion fluid type (X-link Gel, Slickwater, etc). It is important to standardize values to enable grouped analysis.</p>"
              },
              {
                "name": "stimulatedLength",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Total length of stimulated lateral",
                "format": "double"
              },
              {
                "name": "stages",
                "kind": "optional",
                "type": "integer",
                "nullable": true,
                "description": "Number of stages in the frac job"
              },
              {
                "name": "totalFluid",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Total fluid used in the frac job",
                "format": "double"
              },
              {
                "name": "totalProppant",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Total proppant used in the frac job",
                "format": "double"
              },
              {
                "name": "perforationCount",
                "kind": "optional",
                "type": "integer",
                "nullable": true,
                "description": "Total perforation count in the frac job"
              },
              {
                "name": "stageSpacing",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Stage spacing in the frac job",
                "format": "double"
              }
            ],
            "modelRef": "#/components/schemas/HorizontalFrac",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "nEwXUtRU7zoxJvlO_KK4P",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://data.onxecta.com/api/production/horizontalfrac/{uwi} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "lY-0CE7kljncuMrP8TyG6",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://data.onxecta.com/api/production/horizontalfrac/{uwi}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "z9a3AQalOm1AbJvxooVLF",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://data.onxecta.com/api/production/horizontalfrac/{uwi}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        },
        {
          "id": "kyxrB1xi6sZbEd3eUbXrk",
          "language": "csharp",
          "label": "C#",
          "code": "var options = new RestClientOptions(\"https://data.onxecta.com\")\n{\n   MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"/api/production/horizontalfrac/{uwi}\", Method.Get);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        },
        {
          "id": "u1Nqv-cCJYIrnu-7Z20Bk",
          "language": "java",
          "label": "Java",
          "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n   .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n   .url(\"https://data.onxecta.com/api/production/horizontalfrac/{uwi}\")\n   .method(\"GET\", body)\n   .addHeader(\"accept\", \"application/json\")\n   .addHeader(\"content-type\", \"application/json\")\n   .build();\nResponse response = client.newCall(request).execute();"
        }
      ],
      "selectedLanguageId": "nEwXUtRU7zoxJvlO_KK4P"
    },
    "results": {
      "languages": [
        {
          "id": "bAIOfQrEC_tk7g3eWBllj",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"wellXid\": \"\",\n    \"date\": \"\",\n    \"averageEffectiveSpacing\": \"\",\n    \"minEffectiveSpacing\": \"\",\n    \"type\": \"\",\n    \"fluidType\": \"\",\n    \"stimulatedLength\": \"\",\n    \"stages\": 0,\n    \"totalFluid\": \"\",\n    \"totalProppant\": \"\",\n    \"perforationCount\": 0,\n    \"stageSpacing\": \"\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "bAIOfQrEC_tk7g3eWBllj"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}