TheSportsDB Search API

The Search API from TheSportsDB — 4 operation(s) for search.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Sports, Betting & Fantasy AE-180.80

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /{apiKey}/searchteams.php Find a team by name · Search for teams by name #
Ask an LLM
“How do I look up a sports team by name?”
“Can I search teams for a particular season?”
Tell an agent
Find teams named {t} with API key {apiKey}.
Search the team database for {t}.
GET /{apiKey}/searchplayers.php Find players by name · Search for players by name #
Ask an LLM
“How do I look up athletes by name?”
“Can I search for players in a specific season?”
Tell an agent
Find players named {p} with API key {apiKey}.
Search the player database for {p}.
GET /{apiKey}/searchevents.php Find sports events by name · Search for events by name #
Ask an LLM
“How do I find an event like a game by name?”
“Can I narrow an event search to a season?”
Tell an agent
Find events named {e} with API key {apiKey}.
Search events for {e} in season {s}.
GET /{apiKey}/searchvenues.php Find sports venues by name · Search for venues by name #
Ask an LLM
“How do I look up the venue of a game?”
“Can I search for stadiums or arenas by name?”
Tell an agent
Find venues named {v} with API key {apiKey}.
Search the venue database for {v}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sportsdb:sportsdb-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sportsdb-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TheSportsDB Search API
  description: REST API for TheSportsDB, an open, crowd-sourced database of sports artwork and metadata. The V1 API returns JSON for searches, lookups, leagues, players, teams, events, schedules, and video highlights, with the API key supplied as a path segment. The free test key is "3" (also documented as "123"). Premium V2 endpoints (livescores) authenticate with an API key in the X-API-KEY header.
  termsOfService: https://www.thesportsdb.com/
  contact:
    name: TheSportsDB
    url: https://www.thesportsdb.com/documentation
  version: '1.0'
servers:
- url: https://www.thesportsdb.com/api/v1/json
  description: V1 REST API; append the API key as the next path segment (e.g. /3/).
tags:
- name: Search
paths:
  /{apiKey}/searchteams.php:
    get:
      operationId: searchTeams
      tags:
      - Search
      summary: Search for teams by name
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: t
        in: query
        required: true
        description: Team name to search for.
        schema:
          type: string
          example: Arsenal
      responses:
        '200':
          description: Matching teams.
          content:
            application/json:
              schema:
                type: object
  /{apiKey}/searchplayers.php:
    get:
      operationId: searchPlayers
      tags:
      - Search
      summary: Search for players by name
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: p
        in: query
        required: true
        description: Player name to search for.
        schema:
          type: string
          example: Danny Welbeck
      responses:
        '200':
          description: Matching players.
          content:
            application/json:
              schema:
                type: object
  /{apiKey}/searchevents.php:
    get:
      operationId: searchEvents
      tags:
      - Search
      summary: Search for events by name
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: e
        in: query
        required: true
        description: Event name to search for.
        schema:
          type: string
          example: Arsenal_vs_Chelsea
      - name: s
        in: query
        required: false
        description: Season filter.
        schema:
          type: string
          example: 2016-2017
      responses:
        '200':
          description: Matching events.
          content:
            application/json:
              schema:
                type: object
  /{apiKey}/searchvenues.php:
    get:
      operationId: searchVenues
      tags:
      - Search
      summary: Search for venues by name
      parameters:
      - $ref: '#/components/parameters/ApiKey'
      - name: v
        in: query
        required: true
        description: Venue name to search for.
        schema:
          type: string
          example: Wembley
      responses:
        '200':
          description: Matching venues.
          content:
            application/json:
              schema:
                type: object
components:
  parameters:
    ApiKey:
      name: apiKey
      in: path
      required: true
      description: API key path segment. The free test key is "3" (also documented as "123").
      schema:
        type: string
        default: '3'
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Premium V2 API key supplied in the X-API-KEY request header.