Find an API

Search public APIs with auth details & Postman guides

← All APIs

Enterobase-API

warwick · Data

Data No Auth Free & Open open_data

API for EnteroBase (https://enterobase.warwick.ac.uk) EnteroBase is a user-friendly online resource, where users can upload their own sequencing data for de novo assembly by a stream-lined pipeline. The assemblies are used for calling MLST and wgMLST patterns, allowing users to compare their strains to publically available genotyping data from other EnteroBase users, GenBank and classical MLST databases. Click here to find how to get and use an API token: http://bit.ly/1TKlaOU

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET GET /api/v2.0

Top level information about EnteroBase databases

https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0?name=test&prefix=example&description=test

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0?name=test&prefix=example&description=test"
import requests
params = {
    "name": "test",
    "prefix": "example",
    "description": "test"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0');
url.searchParams.set('name', 'test');
url.searchParams.set('prefix', 'example');
url.searchParams.set('description', 'test');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0")
	q := baseURL.Query()
	q.Set("name", "test")
	q.Set("prefix", "example")
	q.Set("description", "test")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0")
uri.query = URI.encode_www_form({
  "name" => "test",
  "prefix" => "example",
  "description" => "test"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0?" . http_build_query([
    "name" => "test",
    "prefix" => "example",
    "description" => "test"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET GET /api/v2.0/login

Login endpoint, refresh your API token

https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login?password=example&username=testuser

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login?password=example&username=testuser"
import requests
params = {
    "password": "example",
    "username": "testuser"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login');
url.searchParams.set('password', 'example');
url.searchParams.set('username', 'testuser');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login")
	q := baseURL.Query()
	q.Set("password", "example")
	q.Set("username", "testuser")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login")
uri.query = URI.encode_www_form({
  "password" => "example",
  "username" => "testuser"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/login?" . http_build_query([
    "password" => "example",
    "username" => "testuser"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET GET /api/v2.0/lookup

Generic endpoint for lookup list of barcodes

https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup?barcode=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup?barcode=example"
import requests
params = {
    "barcode": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup');
url.searchParams.set('barcode', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup")
	q := baseURL.Query()
	q.Set("barcode", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup")
uri.query = URI.encode_www_form({
  "barcode" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/warwick.ac.uk/enterobase/v2.0/api/v2.0/lookup?" . http_build_query([
    "barcode" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Enterobase-API?

Enterobase-API is a Data API. Developers commonly use data APIs for:

  • enriching your app with third-party datasets
  • building data pipelines and ETL workflows
  • querying and searching large datasets
  • powering research, analysis, and reporting tools
  • syncing reference data into your own systems

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Enterobase-API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗