Shodan Directory API

Browse and search saved Shodan queries.

GitHub OpenAPI

Operations 3

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 /shodan/query Browse the saved queries directory · List Saved Queries #
Ask an LLM
“Which saved queries have other users shared in the Shodan community?”
“Can I sort the saved queries directory by popularity or date?”
Tell an agent
List the saved queries directory.
Show saved queries sorted by {sort} in {order} order.
GET /shodan/query/search Search the saved queries directory · Search Saved Queries #
Ask an LLM
“How do I find saved queries that match a particular search term?”
“Can I look up a saved query by its tag?”
Tell an agent
Search the saved queries directory for {query}.
Find saved queries tagged {query}.
GET /shodan/query/tags List popular saved query tags · List Popular Query Tags #
Ask an LLM
“What tags are most commonly used on saved queries?”
“Which tags appear most often in the saved queries directory?”
Tell an agent
List the most popular saved query tags.
Show {size} popular saved query tags.

Documentation

Specifications

Schemas & Data

Other Resources

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/shodan:shodan-directory-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

shodan-directory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shodan REST Directory API
  description: The Shodan REST API exposes search methods, host lookups, on-demand scanning, network alerts, notifiers, the saved-query directory, DNS lookups, utility methods, account/profile information, bulk data, and organization management for the Shodan search engine for Internet- connected devices.
  version: '1.0'
  contact:
    name: Shodan Support
    email: support@shodan.io
    url: https://developer.shodan.io/
  license:
    name: Shodan API Terms of Service
    url: https://www.shodan.io/legal/tos
servers:
- url: https://api.shodan.io
  description: Production
security:
- apiKey: []
tags:
- name: Directory
  description: Browse and search saved Shodan queries.
paths:
  /shodan/query:
    get:
      tags:
      - Directory
      summary: List Saved Queries
      operationId: listSavedQueries
      description: Browse the directory of community-saved Shodan queries.
      parameters:
      - name: page
        in: query
        schema:
          type: integer
          default: 1
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - votes
          - timestamp
      - name: order
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
      responses:
        '200':
          description: List of saved queries.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /shodan/query/search:
    get:
      tags:
      - Directory
      summary: Search Saved Queries
      operationId: searchSavedQueries
      description: Search the directory of saved Shodan queries.
      parameters:
      - $ref: '#/components/parameters/Query'
      - name: page
        in: query
        schema:
          type: integer
          default: 1
      responses:
        '200':
          description: Search results.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /shodan/query/tags:
    get:
      tags:
      - Directory
      summary: List Popular Query Tags
      operationId: listSavedQueryTags
      description: Returns the most popular tags assigned to saved queries.
      parameters:
      - name: size
        in: query
        schema:
          type: integer
          default: 10
      responses:
        '200':
          description: Tag list.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
components:
  parameters:
    Query:
      name: query
      in: query
      required: true
      schema:
        type: string
      description: Shodan search query.
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: Shodan API key.