# PCR Primer Design API: Primer3 Primers, qPCR Probes & Checks (`jumblemog/pcr-primer-designer`) Actor

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.

- **URL**: https://apify.com/jumblemog/pcr-primer-designer.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## PCR Primer Design API: Primer3 Primers, qPCR Probes & Checks

**Design PCR and qPCR primers with Primer3, or check the primers you already have, from one API call.** Paste a DNA sequence, send FASTA, or give an NCBI accession, and you get back:

- **Ranked primer pairs**: each primer's sequence, position, length, melting temperature (Tm) and GC content, the product's size, place and sequence, and how the two primers compare.
- **Hairpin and primer-dimer checks** for every primer and pair, by thermodynamic alignment, so you see which pairs are clean before you order.
- **Optional qPCR probes**: a hydrolysis (TaqMan-style) probe between the primers, melting above them.
- **A check of your own primers**: Tm, GC, hairpins, self-dimers and cross-dimers with their free energy (ΔG), and, with a template, where they bind and the product they give.
- **Plain reasons when nothing fits**: how many candidates Primer3 weighed, what ruled them out, and what to change.

The picking and the thermodynamics are done by [Primer3](https://primer3.org/), the engine behind Primer3Web, Primer3Plus and NCBI Primer-BLAST, with the same modern defaults: SantaLucia (1998) nearest-neighbor melting temperatures and salt correction.

It's made for:

- Lab automation and LIMS pipelines that need primers for hundreds of targets without clicking through a web form.
- AI agents and lab assistants asked to "design primers for this gene": a language model can't compute melting temperatures or dimers reliably, and this gives it real ones.
- Bioinformatics scripts and notebooks that want Primer3 without installing and wrapping it.
- Students and researchers who want a second opinion on a primer pair before ordering.

### How to use it

**To design primers:**

1. Put one or more **Sequences** in: pasted bases, a link to a FASTA or GenBank file, or an NCBI accession such as `NM_001101`. Paste multi-line FASTA into **FASTA text**.
2. Optionally choose **qPCR**, ask for a **probe**, set a **target** the product must contain, or a **product size**.
3. Click **Start**. Each sequence is a row in the results with its ranked pairs.

**To check primers you have:** list them under **Primers to check**, one set per line (`GTAAAACGACGGCCAGT CAGGAAACAGCTATGAC`), and put the template in **Sequences** if you want the product found.

#### What you can send as a sequence

| You send | What happens |
|---|---|
| Pasted bases, upper or lower case, with or without spaces, line breaks and position numbers | Read as one sequence. Write `name: ACGT...` to name it |
| FASTA text (one or many `>` records) | One result per record, named by its header |
| An NCBI accession: `NM_001101`, `L09137` | The record is fetched from NCBI's nucleotide database |
| An accession with a range: `NC_000017.11:7673400-7674500` | That stretch only, which is how to use a chromosome or any record over 50,000 bases |
| A link to a FASTA or GenBank file (GitHub, Google Drive and Dropbox links work) | The file's records are read |
| Marks inside a sequence: `ACGT[ACGT]ACGT`, `<...>`, `{...}` | `[ ]` is the target to amplify, `< >` is a stretch no primer may touch, `{ }` is the only stretch to use, as on the Primer3 web form |

RNA (U) is read as DNA, and ambiguity letters (R, Y, N and so on) are read as unknown bases that no primer is placed over.

### Examples

- `{"sequences": ["NM_001101"]}` → "NM_001101.5: 5 primer pairs on 1812 bases. Best: forward ACCCTGAAGTACCCCATCGA (Tm 60 °C) and reverse GAGGCGTACAGGGATAGCAC (Tm 60 °C), a 239 bp product at 280-518." (human beta-actin mRNA)
- `{"sequences": ["NM_001101"], "application": "qpcr", "pickProbe": true, "numPairs": 3}` → three qPCR assays; the best is forward TGGAACGGTGAAGGTGACAG, reverse AAAGTCCTCGGCCACATTGT and probe TCGGTTGGAGCGAGCATCCCC (Tm 66.8 °C), a 72 bp product.
- `{"sequences": ["pUC19: L09137"], "oligos": ["M13: GTAAAACGACGGCCAGT CAGGAAACAGCTATGAC"]}` → the M13 primers melt at 54.7 and 49.1 °C, give a 103 bp product on pUC19 at 379-481, and get one warning: they melt 5.6 °C apart.

### How-to examples

The result lines are from runs of these inputs.

#### How to design PCR primers for a gene from its NCBI accession

```json
{"sequences": ["NM_001101"]}
```

Result: five ranked pairs for human ACTB mRNA. The first is `forwardPrimer` ACCCTGAAGTACCCCATCGA and `reversePrimer` GAGGCGTACAGGGATAGCAC, both melting at 60 °C, with `productSize` 239. Each pair in `pairs` also has the amplicon and the hairpin and dimer numbers.

#### How to design qPCR primers and a TaqMan probe

```json
{"sequences": ["NM_001101"], "application": "qpcr", "pickProbe": true, "numPairs": 3}
```

Result: products of 70 to 150 bases with primers within 2 °C of each other. The best assay is a 72 bp product at 1360-1431 with the probe TCGGTTGGAGCGAGCATCCCC at 1383-1403, melting at 66.8 °C, about 7 °C above its primers.

#### How to design primers around a mutation or exon in a genome

```json
{"sequences": ["TP53 region: NC_000017.11:7673400-7674500"], "target": "500-650", "productSize": "250-450", "numPairs": 2}
```

Result: 1,101 bases of human chromosome 17 are fetched and both pairs span positions 500 to 650 of that stretch; the best is forward TGTCCTGCTTGCTTACCTCG and reverse CACCTCTCATCACATCCCCG, a 387 bp product at 286-672. A note says position 1 is base 7,673,400 of the chromosome.

#### How to check a primer pair for Tm, hairpins and primer dimers

```json
{"sequences": ["pUC19: L09137"], "oligos": ["M13: GTAAAACGACGGCCAGT CAGGAAACAGCTATGAC"]}
```

Result: forward Tm 54.7 °C (52.9% GC), reverse Tm 49.1 °C (47.1% GC), no hairpins, weak self-dimers (ΔG -5.48 and -3.04 kcal/mol), a 103 bp product on pUC19, `verdict` "review" and the warning "The primers melt 5.6 °C apart; within 3 °C is better." Leave `sequences` out to check primers without a template.

#### How to let an AI agent design primers

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/pcr-primer-designer`. The agent passes an accession or a sequence and reads `summary`, `forwardPrimer`, `reversePrimer` and `pairs`, or passes primers under `oligos` and reads `warnings`, instead of estimating melting temperatures in its head.

### FAQ

**Is this the same as Primer3Web or Primer-BLAST?** The primers are picked by the same Primer3 engine, with the melting-temperature model and the hairpin and dimer limits Primer3Web uses, so results are comparable. Unlike Primer-BLAST, it doesn't search a genome for other places your primers could bind (see the limits below).

**How are melting temperatures calculated?** With the SantaLucia (1998) nearest-neighbor model and salt correction, for 50 mM monovalent salt, 1.5 mM Mg2+, 0.6 mM dNTPs and 50 nM primer unless you set other conditions. Other calculators that assume other conditions give numbers a few degrees different for the same primer.

**What do the hairpin and dimer numbers mean?** In a design, `hairpinTm`, `selfDimerTm` and `crossDimerTm` are the temperatures up to which that unwanted structure holds; 0 means none was found, and anything well below your annealing temperature is harmless. In a check you also get ΔG in kcal/mol at 37 °C: the more negative, the stronger. Warnings appear below about -9 kcal/mol for a dimer and -6 for one at the 3' ends, which are common rules of thumb, not hard limits.

**What if no primers are found?** The run first tries again with looser limits and tells you if it did. If that fails too, the row has `status` "no_primers", isn't charged, and `hint` says what ruled most candidates out (GC content, melting temperature, product size) and what to widen.

**Can I design primers around a SNP or across an exon junction?** Mark the stretch that must be inside the product as the `target` (or with `[ ]`), and anything primers must not sit on as `excluded` (or `< >`). For a junction, make the junction the target.

**Can I keep a primer I already have and find its partner?** Yes: put it in `fixedForward` or `fixedReverse` and only the other one is picked.

**Can I set any Primer3 option?** Yes. `primer3Settings` takes Primer3's own `PRIMER_...` tags, such as `{"PRIMER_GC_CLAMP": 1}`, and they win over the simple fields.

**Does it handle degenerate primers?** In a check, yes: a primer with ambiguity letters is expanded (up to 256 sequences), the range of melting temperatures is reported, and it is matched to the template letter by letter. Designs always return plain A, C, G, T primers.

**Does it work with Zapier, Make or n8n?** Yes. Call the Actor with its Apify app or an HTTP request and pass the primers on to a sheet or an order form.

### Input

| Field | What it is |
|---|---|
| `sequences` | What to design on (or the template for a check): bases, links, NCBI accessions, or FASTA text |
| `fasta` | A box for pasting FASTA text with many lines; read together with `sequences` |
| `oligos` | Primers to check: `"FWD REV"`, `"name: FWD REV PROBE"`, or objects with `forward`, `reverse`, `probe`, `template`, `name` |
| `task` | `auto` (default: check if `oligos` are given, else design), `design` or `check` |
| `application` | `pcr` (default; products of 100 to 1,000 bases) or `qpcr` (70 to 150) |
| `pickProbe` | Also pick a hydrolysis probe for each pair |
| `target` | Stretch the product must contain: `450-520` or `450,71` (start,length), counted from 1 |
| `productSize` | Allowed product length: `100-300`, or several ranges tried in order |
| `numPairs` | Pairs to return per sequence (5 by default, up to 20) |
| `tmOpt`, `tmMin`, `tmMax` | Primer melting temperature aimed at (60 °C) and allowed (3 °C either side) |
| `maxTmDifference` | Largest Tm gap between the two primers (3 °C for PCR, 2 °C for qPCR) |
| `primerSizeMin`, `primerSizeOpt`, `primerSizeMax` | Primer length (18, 20, 25) |
| `gcMin`, `gcMax` | Primer GC content (30 to 70%) |
| `excluded`, `included` | Stretches primers must avoid, or must stay inside |
| `fixedForward`, `fixedReverse` | A primer to keep; only its partner is picked |
| `relax` | Try once more with looser limits when nothing passes (on by default) |
| `saltMonovalentMm`, `saltDivalentMm`, `dntpMm`, `primerConcentrationNm` | Reaction conditions for the melting temperatures (50, 1.5, 0.6, 50) |
| `primer3Settings` | Primer3 `PRIMER_...` tags to set directly |
| `maxItems`, `timeoutSecs` | Stop after this many entries (200); time limit per sequence (60 s) |

### Output

One dataset item per sequence (design) or per primer set (check). The first item is also saved as the run's `OUTPUT` record. A design:

```json
{
  "index": 1, "name": "NM_001101.5", "task": "design", "status": "ok",
  "summary": "NM_001101.5: 5 primer pairs on 1812 bases. Best: forward ACCCTGAAGTACCCCATCGA (Tm 60 °C) and reverse GAGGCGTACAGGGATAGCAC (Tm 60 °C), a 239 bp product at 280-518.",
  "description": "NM_001101.5 Homo sapiens actin beta (ACTB), mRNA", "source": "NM_001101",
  "forwardPrimer": "ACCCTGAAGTACCCCATCGA", "reversePrimer": "GAGGCGTACAGGGATAGCAC", "probeSequence": null,
  "forwardTm": 60.0, "reverseTm": 60.0, "productSize": 239,
  "sequenceLength": 1812, "pairsFound": 5, "relaxed": false,
  "pairs": [{
    "rank": 1,
    "forward": {"sequence": "ACCCTGAAGTACCCCATCGA", "start": 280, "end": 299, "length": 20, "tm": 60.0, "gcPercent": 55.0, "hairpinTm": 0.0, "selfDimerTm": 0.0, "selfEndDimerTm": 0.0, "endStability": 3.59},
    "reverse": {"sequence": "GAGGCGTACAGGGATAGCAC", "start": 499, "end": 518, "length": 20, "tm": 60.0, "gcPercent": 60.0, "hairpinTm": 0.0, "selfDimerTm": 0.0, "selfEndDimerTm": 0.0, "endStability": 4.4},
    "productSize": 239, "productStart": 280, "productEnd": 518, "productTm": 90.0, "productGcPercent": 58.6,
    "tmDifference": 0.0, "crossDimerTm": 14.5, "crossEndDimerTm": 14.6, "penalty": 0.074,
    "amplicon": "ACCCTGAAGTACCCCATCGAGCACGGCATCG..."
  }, "..."],
  "considered": {"forward": {"considered": 13020, "GC content failed": 2891, "low tm": 1819, "high tm": 4485, "ok": 3677}, "...": {}},
  "conditions": {"saltMonovalentMm": 50.0, "saltDivalentMm": 1.5, "dntpMm": 0.6, "primerConcentrationNm": 50.0},
  "notes": [], "warnings": []
}
```

Positions count from 1 on the sequence as you gave it. Primers are written 5' to 3'; a reverse primer's `start` and `end` are where it lies on your sequence, and its letters are the reverse complement of that stretch. `penalty` is Primer3's score: lower is closer to the settings aimed at.

A check row has `forward`, `reverse` and `probe` (each with `tm`, `gcPercent`, `hairpin`, `selfDimer`, `selfEndDimer`), `pair` (`tmDifference`, `crossDimer`, `crossEndDimer`), `products` (with a template), `warnings` and a `verdict` of "ok" or "review".

An entry that can't be read has `"status": "failed"` and the reason in `error`. Neither failed entries nor designs without a pair are billed.

### How it works

1. **Read each entry**: fetch accessions from NCBI's E-utilities and files from links, split FASTA and GenBank records, drop numbers and spaces, and read the `[ ]`, `< >` and `{ }` marks.
2. **Design** with Primer3: candidates of the allowed length, Tm and GC on both strands, filtered for hairpins, self-dimers and runs, then paired by product size and scored. Pairs differ by at least three bases at each 3' end, so the list offers real alternatives.
3. **Loosen once** if nothing passes: Tm 3 °C wider each way, primers of 17 to 28 bases, 20 to 80% GC.
4. **Check** your own primers with Primer3's thermodynamic alignment, and find their binding sites on the template: the last six bases at the 3' end must match exactly and up to two mismatches are allowed in the rest.

### Pricing

You pay one low price per sequence that gets primers and a lower one per primer set checked, at the prices shown on this page, however many pairs you ask for and with or without a probe. Entries that can't be read and designs that find no pair are never charged. If you set a maximum cost per run, the Actor stops before an entry that wouldn't fit.

### Speed

A design on a few thousand bases takes a fraction of a second and one on 50,000 bases a few seconds; a check takes a few hundredths of a second. Fetching a record from NCBI adds about a second each. A run through the API adds a few seconds for the cloud container to start.

### Tips and limits

- **Specificity isn't checked.** The primers are tested against the sequence you give, not against a genome, so they may also bind elsewhere in the organism. For genomic DNA or cDNA, run the best pairs through NCBI Primer-BLAST before ordering.
- **Sequences up to 50,000 bases.** For anything longer, give the stretch around your target, such as `NC_000017.11:7673400-7674500`.
- **Positions with an accession range** count from the start of the stretch you asked for; the row's `notes` give the offset.
- **mRNA or genome?** For qPCR on cDNA, design on the transcript (`NM_...`), ideally with the target on an exon junction so genomic DNA isn't amplified. For genotyping, design on the genomic stretch.
- **The warning thresholds are rules of thumb.** A pair marked "review" often still works; a pair marked "ok" passed the checks here, not a bench test.
- **Checks need primers of 120 bases or fewer**; hairpins and dimers are computed up to 60 bases.
- **NCBI records** are fetched one at a time, a little under three a second, to stay within NCBI's limits.
- **For research use.** Not for diagnostic or clinical decisions.

### For AI agents and developers

- **Input**: `sequences` alone is enough to design; `oligos` alone is enough to check.
- **Output**: `summary` says the result in a sentence; `forwardPrimer`, `reversePrimer` and `productSize` are the best pair; `pairs` has every pair with all its numbers.
- **Errors**: `status` is "ok", "no_primers" (with a `hint`) or "failed" (with an `error` that says what to change).
- **Cost**: one event per sequence designed or primer set checked, nothing for failures.

Get the results from one HTTP call:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~pcr-primer-designer/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sequences": ["NM_001101"], "application": "qpcr", "pickProbe": true}'
```

`run-sync` instead returns the run's `OUTPUT`: the first result as JSON.

In Python, with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/pcr-primer-designer").call(run_input={
    "sequences": [">my_gene\nATGGCC...", "NM_000546"], "productSize": "150-250", "numPairs": 3,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["forwardPrimer"], item["reversePrimer"], item["productSize"])
```

### Credits

- Primer picking and thermodynamics: [Primer3](https://github.com/primer3-org/primer3) (GPL-2.0) through [primer3-py](https://github.com/libnano/primer3-py) (GPL-2.0). Untergasser A, et al. Primer3: new capabilities and interfaces. Nucleic Acids Research 2012; Koressaar T, Remm M. Enhancements and modifications of primer design program Primer3. Bioinformatics 2007.
- Sequences by accession: NCBI Nucleotide, through the E-utilities.

# Actor input Schema

## `sequences` (type: `array`):

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.

## `fasta` (type: `string`):

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` (type: `array`):

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.

## `task` (type: `string`):

Design picks new primers on each sequence. Check analyses the primers you list.

## `application` (type: `string`):

Sets the product size and how close the two primers' melting temperatures must be (3 °C for PCR, 2 °C for qPCR).

## `pickProbe` (type: `boolean`):

Pick a hydrolysis (TaqMan-style) probe between the primers, melting 5 to 12 °C above them.

## `target` (type: `string`):

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` (type: `string`):

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` (type: `integer`):

How many ranked pairs to return per sequence.

## `tmOpt` (type: `integer`):

The melting temperature primers are aimed at.

## `tmMin` (type: `integer`):

Left empty: 3 °C below the best.

## `tmMax` (type: `integer`):

Left empty: 3 °C above the best.

## `maxTmDifference` (type: `integer`):

Left empty: 3 for PCR, 2 for qPCR.

## `primerSizeMin` (type: `integer`):

Shortest primer, in bases.

## `primerSizeOpt` (type: `integer`):

The primer length aimed at.

## `primerSizeMax` (type: `integer`):

Longest primer, in bases.

## `gcMin` (type: `integer`):

Lowest GC content of a primer.

## `gcMax` (type: `integer`):

Highest GC content of a primer.

## `excluded` (type: `string`):

A stretch no primer may overlap (a SNP, a repeat), as start-end. Applies to every sequence.

## `included` (type: `string`):

Pick primers only inside this stretch, as start-end. Applies to every sequence.

## `fixedForward` (type: `string`):

A forward primer you already have; only its partner is picked.

## `fixedReverse` (type: `string`):

A reverse primer you already have (written 5' to 3'); only its partner is picked.

## `relax` (type: `boolean`):

When no pair passes, try once more with wider limits and say so in the result.

## `saltMonovalentMm` (type: `string`):

Na+ and K+ in the reaction, for the melting temperatures.

## `saltDivalentMm` (type: `string`):

Mg2+ in the reaction.

## `dntpMm` (type: `string`):

Total dNTP concentration.

## `primerConcentrationNm` (type: `string`):

The concentration of each primer that anneals, as Primer3 defines it.

## `primer3Settings` (type: `object`):

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` (type: `integer`):

Stop after this many.

## `timeoutSecs` (type: `integer`):

A design that takes longer is stopped and reported, not charged.

## Actor input object example

```json
{
  "sequences": [
    "ACTB_mRNA_201-800: GCACCAGGGCGTGATGGTGGGCATGGGTCAGAAGGATTCCTATGTGGGCGACGAGGCCCAGAGCAAGAGAGGCATCCTCACCCTGAAGTACCCCATCGAGCACGGCATCGTCACCAACTGGGACGACATGGAGAAAATCTGGCACCACACCTTCTACAATGAGCTGCGTGTGGCTCCCGAGGAGCACCCCGTGCTGCTGACCGAGGCCCCCCTGAACCCCAAGGCCAACCGCGAGAAGATGACCCAGATCATGTTTGAGACCTTCAACACCCCAGCCATGTACGTTGCTATCCAGGCTGTGCTATCCCTGTACGCCTCTGGCCGTACCACTGGCATCGTGATGGACTCCGGTGACGGGGTCACCCACACTGTGCCCATCTACGAGGGGTATGCCCTCCCCCATGCCATCCTGCGTCTGGACCTGGCTGGCCGGGACCTGACTGACTACCTCATGAAGATCCTCACCGAGCGCGGCTACAGCTTCACCACCACGGCCGAGCGGGAAATCGTGCGTGACATTAAGGAGAAGCTGTGCTACGTCGCCCTGGACTTCGAGCAAGAGATGGCCACGGCTGCTTCCAGCTCCTCCCTGGAGAAGAG"
  ],
  "task": "auto",
  "application": "pcr",
  "pickProbe": false,
  "numPairs": 5,
  "tmOpt": 60,
  "primerSizeMin": 18,
  "primerSizeOpt": 20,
  "primerSizeMax": 25,
  "gcMin": 30,
  "gcMax": 70,
  "relax": true,
  "saltMonovalentMm": "50",
  "saltDivalentMm": "1.5",
  "dntpMm": "0.6",
  "primerConcentrationNm": "50",
  "maxItems": 200,
  "timeoutSecs": 60
}
```

# Actor output Schema

## `results` (type: `string`):

One item per sequence (ranked primer pairs) or per primer set checked (melting temperatures, dimers, product).

## `first` (type: `string`):

The first result as JSON, which the run-sync endpoint also returns.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sequences": [
        "ACTB_mRNA_201-800: GCACCAGGGCGTGATGGTGGGCATGGGTCAGAAGGATTCCTATGTGGGCGACGAGGCCCAGAGCAAGAGAGGCATCCTCACCCTGAAGTACCCCATCGAGCACGGCATCGTCACCAACTGGGACGACATGGAGAAAATCTGGCACCACACCTTCTACAATGAGCTGCGTGTGGCTCCCGAGGAGCACCCCGTGCTGCTGACCGAGGCCCCCCTGAACCCCAAGGCCAACCGCGAGAAGATGACCCAGATCATGTTTGAGACCTTCAACACCCCAGCCATGTACGTTGCTATCCAGGCTGTGCTATCCCTGTACGCCTCTGGCCGTACCACTGGCATCGTGATGGACTCCGGTGACGGGGTCACCCACACTGTGCCCATCTACGAGGGGTATGCCCTCCCCCATGCCATCCTGCGTCTGGACCTGGCTGGCCGGGACCTGACTGACTACCTCATGAAGATCCTCACCGAGCGCGGCTACAGCTTCACCACCACGGCCGAGCGGGAAATCGTGCGTGACATTAAGGAGAAGCTGTGCTACGTCGCCCTGGACTTCGAGCAAGAGATGGCCACGGCTGCTTCCAGCTCCTCCCTGGAGAAGAG"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/pcr-primer-designer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "sequences": ["ACTB_mRNA_201-800: GCACCAGGGCGTGATGGTGGGCATGGGTCAGAAGGATTCCTATGTGGGCGACGAGGCCCAGAGCAAGAGAGGCATCCTCACCCTGAAGTACCCCATCGAGCACGGCATCGTCACCAACTGGGACGACATGGAGAAAATCTGGCACCACACCTTCTACAATGAGCTGCGTGTGGCTCCCGAGGAGCACCCCGTGCTGCTGACCGAGGCCCCCCTGAACCCCAAGGCCAACCGCGAGAAGATGACCCAGATCATGTTTGAGACCTTCAACACCCCAGCCATGTACGTTGCTATCCAGGCTGTGCTATCCCTGTACGCCTCTGGCCGTACCACTGGCATCGTGATGGACTCCGGTGACGGGGTCACCCACACTGTGCCCATCTACGAGGGGTATGCCCTCCCCCATGCCATCCTGCGTCTGGACCTGGCTGGCCGGGACCTGACTGACTACCTCATGAAGATCCTCACCGAGCGCGGCTACAGCTTCACCACCACGGCCGAGCGGGAAATCGTGCGTGACATTAAGGAGAAGCTGTGCTACGTCGCCCTGGACTTCGAGCAAGAGATGGCCACGGCTGCTTCCAGCTCCTCCCTGGAGAAGAG"] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/pcr-primer-designer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sequences": [
    "ACTB_mRNA_201-800: GCACCAGGGCGTGATGGTGGGCATGGGTCAGAAGGATTCCTATGTGGGCGACGAGGCCCAGAGCAAGAGAGGCATCCTCACCCTGAAGTACCCCATCGAGCACGGCATCGTCACCAACTGGGACGACATGGAGAAAATCTGGCACCACACCTTCTACAATGAGCTGCGTGTGGCTCCCGAGGAGCACCCCGTGCTGCTGACCGAGGCCCCCCTGAACCCCAAGGCCAACCGCGAGAAGATGACCCAGATCATGTTTGAGACCTTCAACACCCCAGCCATGTACGTTGCTATCCAGGCTGTGCTATCCCTGTACGCCTCTGGCCGTACCACTGGCATCGTGATGGACTCCGGTGACGGGGTCACCCACACTGTGCCCATCTACGAGGGGTATGCCCTCCCCCATGCCATCCTGCGTCTGGACCTGGCTGGCCGGGACCTGACTGACTACCTCATGAAGATCCTCACCGAGCGCGGCTACAGCTTCACCACCACGGCCGAGCGGGAAATCGTGCGTGACATTAAGGAGAAGCTGTGCTACGTCGCCCTGGACTTCGAGCAAGAGATGGCCACGGCTGCTTCCAGCTCCTCCCTGGAGAAGAG"
  ]
}' |
apify call jumblemog/pcr-primer-designer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/pcr-primer-designer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/c2ejuLBn3Dv0p9x2m/builds/4BxxPccDWpg6j3xjU/openapi.json
