For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://api-doc-new.gideononline.com/gideon-api-1-0/mycobacteria/llms.txt. For full documentation content, see https://api-doc-new.gideononline.com/gideon-api-1-0/mycobacteria/llms-full.txt.

# /microbiology/mycobacteria/identify

GET https://api.gideononline.com/microbiology/mycobacteria/identify

The Identify request of mycobacteria returns filtered lists of taxa relevant to the selected phenotypic characteristics that were passed as a request. The list is ranked by organism occurrence and likelihood of individual test results (Bayesian analysis).  

Here's the format of the phenotypic characteristics passed in as part of the request: 
> /microbiology/mycobacteria/identify?{code}=1|2&{code}=1|2...  // 1 = yes and 2 = no.
  
For list of all relevant test {code}s, refer to this endpoint:
> /microbiology/mycobacteria/tests


Reference: https://api-doc-new.gideononline.com/gideon-api-1-0/mycobacteria/microbiology-mycobacteria-identify

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /microbiology/mycobacteria/identify:
    get:
      operationId: microbiology-mycobacteria-identify
      summary: /microbiology/mycobacteria/identify
      description: >
        The Identify request of mycobacteria returns filtered lists of taxa
        relevant to the selected phenotypic characteristics that were passed as
        a request. The list is ranked by organism occurrence and likelihood of
        individual test results (Bayesian analysis).  


        Here's the format of the phenotypic characteristics passed in as part of
        the request: 

        > /microbiology/mycobacteria/identify?{code}=1|2&{code}=1|2...  // 1 =
        yes and 2 = no.
          
        For list of all relevant test {code}s, refer to this endpoint:

        > /microbiology/mycobacteria/tests
      tags:
        - subpackage_mycobacteria
      parameters:
        - name: C01
          in: query
          required: false
          schema:
            type: integer
        - name: C04
          in: query
          required: false
          schema:
            type: integer
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Mycobacteria_/microbiology/mycobacteria/identify_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    MicrobiologyMycobacteriaIdentifyGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        probability:
          type: number
          format: double
        mycobacteria:
          type: string
        mycobacteria_code:
          type: integer
      required:
        - probability
        - mycobacteria
        - mycobacteria_code
      title: >-
        MicrobiologyMycobacteriaIdentifyGetResponsesContentApplicationJsonSchemaDataItems
    Mycobacteria_/microbiology/mycobacteria/identify_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/MicrobiologyMycobacteriaIdentifyGetResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: Mycobacteria_/microbiology/mycobacteria/identify_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Mycobacteria_/microbiology/mycobacteria/identify_example
import requests

url = "https://api.gideononline.com/microbiology/mycobacteria/identify"

querystring = {"C01":"1","C04":"2"}

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Mycobacteria_/microbiology/mycobacteria/identify_example
const url = 'https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Mycobacteria_/microbiology/mycobacteria/identify_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Mycobacteria_/microbiology/mycobacteria/identify_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Mycobacteria_/microbiology/mycobacteria/identify_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php Mycobacteria_/microbiology/mycobacteria/identify_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Mycobacteria_/microbiology/mycobacteria/identify_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Mycobacteria_/microbiology/mycobacteria/identify_example
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/microbiology/mycobacteria/identify?C01=1&C04=2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```