{
  "openapi": "3.0.1",
  "info": {
    "title": "PCR Primer Design API: Primer3 Primers, qPCR Probes & Checks",
    "description": "Design PCR and qPCR primers with Primer3 from a pasted sequence, FASTA or an NCBI accession, or check primers you have: melting temperature, GC, hairpins, primer dimers and the product on your template. Ranked pairs with optional probes, as JSON.",
    "version": "0.1",
    "x-build-id": "4BxxPccDWpg6j3xjU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~pcr-primer-designer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-pcr-primer-designer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jumblemog~pcr-primer-designer/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-pcr-primer-designer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jumblemog~pcr-primer-designer/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-pcr-primer-designer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "sequences": {
            "title": "Sequences",
            "type": "array",
            "description": "The DNA to design primers on, one entry each: pasted bases (optionally as name: ACGT...), FASTA text, a link to a FASTA or GenBank file, or an NCBI accession such as NM_001101 or NC_000017.11:7668402-7675493. Mark a target with [ ], a stretch to avoid with < >, or the only stretch to use with { } inside the sequence.",
            "items": {
              "type": "string"
            }
          },
          "fasta": {
            "title": "FASTA text",
            "type": "string",
            "description": "Paste FASTA here if you have it as text: one or many records, each starting with a > line. These are designed on (or used as templates) along with the sequences above."
          },
          "oligos": {
            "title": "Primers to check",
            "type": "array",
            "description": "Primers you already have, one set per entry: one primer, a forward and reverse pair, or a pair and a probe, written 5' to 3' and separated by spaces (GTAAAACGACGGCCAGT CAGGAAACAGCTATGAC). With primers here the run checks them instead of designing, and the sequences above are the template they are tested on, so clear the example sequence unless it is your template.",
            "items": {
              "type": "string"
            }
          },
          "task": {
            "title": "Task",
            "enum": [
              "auto",
              "design",
              "check"
            ],
            "type": "string",
            "description": "Design picks new primers on each sequence. Check analyses the primers you list.",
            "default": "auto"
          },
          "application": {
            "title": "Application",
            "enum": [
              "pcr",
              "qpcr"
            ],
            "type": "string",
            "description": "Sets the product size and how close the two primers' melting temperatures must be (3 °C for PCR, 2 °C for qPCR).",
            "default": "pcr"
          },
          "pickProbe": {
            "title": "Also pick a probe",
            "type": "boolean",
            "description": "Pick a hydrolysis (TaqMan-style) probe between the primers, melting 5 to 12 °C above them.",
            "default": false
          },
          "target": {
            "title": "Target",
            "type": "string",
            "description": "The stretch the product must contain, as start-end (450-520) or start,length (450,71), counted from 1. Applies to every sequence; [ ] marks inside a sequence do the same for that sequence."
          },
          "productSize": {
            "title": "Product size",
            "type": "string",
            "description": "The allowed product length in bases, such as 100-300. Several ranges (150-250, 100-400) are tried in order. Left empty, the application decides."
          },
          "numPairs": {
            "title": "Primer pairs to return",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many ranked pairs to return per sequence.",
            "default": 5
          },
          "tmOpt": {
            "title": "Melting temperature: best (°C)",
            "minimum": 40,
            "maximum": 80,
            "type": "integer",
            "description": "The melting temperature primers are aimed at.",
            "default": 60
          },
          "tmMin": {
            "title": "Melting temperature: lowest (°C)",
            "minimum": 35,
            "maximum": 80,
            "type": "integer",
            "description": "Left empty: 3 °C below the best."
          },
          "tmMax": {
            "title": "Melting temperature: highest (°C)",
            "minimum": 40,
            "maximum": 90,
            "type": "integer",
            "description": "Left empty: 3 °C above the best."
          },
          "maxTmDifference": {
            "title": "Largest difference between the two primers (°C)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Left empty: 3 for PCR, 2 for qPCR."
          },
          "primerSizeMin": {
            "title": "Primer length: shortest",
            "minimum": 10,
            "maximum": 36,
            "type": "integer",
            "description": "Shortest primer, in bases.",
            "default": 18
          },
          "primerSizeOpt": {
            "title": "Primer length: best",
            "minimum": 12,
            "maximum": 36,
            "type": "integer",
            "description": "The primer length aimed at.",
            "default": 20
          },
          "primerSizeMax": {
            "title": "Primer length: longest",
            "minimum": 12,
            "maximum": 36,
            "type": "integer",
            "description": "Longest primer, in bases.",
            "default": 25
          },
          "gcMin": {
            "title": "GC content: lowest (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Lowest GC content of a primer.",
            "default": 30
          },
          "gcMax": {
            "title": "GC content: highest (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Highest GC content of a primer.",
            "default": 70
          },
          "excluded": {
            "title": "Excluded region",
            "type": "string",
            "description": "A stretch no primer may overlap (a SNP, a repeat), as start-end. Applies to every sequence."
          },
          "included": {
            "title": "Included region",
            "type": "string",
            "description": "Pick primers only inside this stretch, as start-end. Applies to every sequence."
          },
          "fixedForward": {
            "title": "Keep this forward primer",
            "type": "string",
            "description": "A forward primer you already have; only its partner is picked."
          },
          "fixedReverse": {
            "title": "Keep this reverse primer",
            "type": "string",
            "description": "A reverse primer you already have (written 5' to 3'); only its partner is picked."
          },
          "relax": {
            "title": "Loosen the limits if nothing passes",
            "type": "boolean",
            "description": "When no pair passes, try once more with wider limits and say so in the result.",
            "default": true
          },
          "saltMonovalentMm": {
            "title": "Monovalent salt (mM)",
            "type": "string",
            "description": "Na+ and K+ in the reaction, for the melting temperatures.",
            "default": "50"
          },
          "saltDivalentMm": {
            "title": "Divalent salt (mM)",
            "type": "string",
            "description": "Mg2+ in the reaction.",
            "default": "1.5"
          },
          "dntpMm": {
            "title": "dNTPs (mM)",
            "type": "string",
            "description": "Total dNTP concentration.",
            "default": "0.6"
          },
          "primerConcentrationNm": {
            "title": "Primer concentration (nM)",
            "type": "string",
            "description": "The concentration of each primer that anneals, as Primer3 defines it.",
            "default": "50"
          },
          "primer3Settings": {
            "title": "Primer3 settings",
            "type": "object",
            "description": "Any Primer3 global tag to set directly, such as {\"PRIMER_GC_CLAMP\": 1, \"PRIMER_MAX_POLY_X\": 3}. These win over the fields above. Tags that name files or libraries aren't accepted."
          },
          "maxItems": {
            "title": "Maximum sequences or primer sets",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many.",
            "default": 200
          },
          "timeoutSecs": {
            "title": "Time limit per sequence (seconds)",
            "minimum": 5,
            "maximum": 600,
            "type": "integer",
            "description": "A design that takes longer is stopped and reported, not charged.",
            "default": 60
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}