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

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

Pricing

Pay per event

Go to Apify Store
PCR Primer Design API: Primer3 Primers, qPCR Probes & Checks

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

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.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Jumble Mog

Jumble Mog

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 hours ago

Last modified

Features

Limited permissions

Share

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, 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 sendWhat happens
Pasted bases, upper or lower case, with or without spaces, line breaks and position numbersRead 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, L09137The record is fetched from NCBI's nucleotide database
An accession with a range: NC_000017.11:7673400-7674500That 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

{"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

{"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

{"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

{"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 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

FieldWhat it is
sequencesWhat to design on (or the template for a check): bases, links, NCBI accessions, or FASTA text
fastaA box for pasting FASTA text with many lines; read together with sequences
oligosPrimers to check: "FWD REV", "name: FWD REV PROBE", or objects with forward, reverse, probe, template, name
taskauto (default: check if oligos are given, else design), design or check
applicationpcr (default; products of 100 to 1,000 bases) or qpcr (70 to 150)
pickProbeAlso pick a hydrolysis probe for each pair
targetStretch the product must contain: 450-520 or 450,71 (start,length), counted from 1
productSizeAllowed product length: 100-300, or several ranges tried in order
numPairsPairs to return per sequence (5 by default, up to 20)
tmOpt, tmMin, tmMaxPrimer melting temperature aimed at (60 °C) and allowed (3 °C either side)
maxTmDifferenceLargest Tm gap between the two primers (3 °C for PCR, 2 °C for qPCR)
primerSizeMin, primerSizeOpt, primerSizeMaxPrimer length (18, 20, 25)
gcMin, gcMaxPrimer GC content (30 to 70%)
excluded, includedStretches primers must avoid, or must stay inside
fixedForward, fixedReverseA primer to keep; only its partner is picked
relaxTry once more with looser limits when nothing passes (on by default)
saltMonovalentMm, saltDivalentMm, dntpMm, primerConcentrationNmReaction conditions for the melting temperatures (50, 1.5, 0.6, 50)
primer3SettingsPrimer3 PRIMER_... tags to set directly
maxItems, timeoutSecsStop 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:

{
"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:

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:

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 (GPL-2.0) through 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.