Shodan On-Demand Scanning API

Request crawls of specific IPs, netblocks, or the entire Internet.

GitHub OpenAPI
Business capability
Vulnerability Management BC-620.40

Operations 6

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

0 of 6 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 2 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /shodan/ports List ports Shodan crawls · List Crawled Ports observed #
Ask an LLM
“Which ports does Shodan crawl on the Internet?”
“What port numbers are in Shodan's crawl?”
Tell an agent
List the ports Shodan crawls.
Show every port number Shodan is crawling.
GET /shodan/protocols List protocols for on-demand scans · List Supported Protocols observed #
Ask an LLM
“Which protocols can I use in an on-demand scan?”
“What protocol values does on-demand scanning accept?”
Tell an agent
List the supported protocols for on-demand scans.
Show which protocols I can request in an on-demand scan.
POST /shodan/scan Crawl an IP or netblock · Submit On-Demand Scan #
Ask an LLM
“How do I get Shodan to crawl a specific IP or CIDR range?”
“Does each IP I crawl use one scan credit?”
Tell an agent
Crawl the IPs {ips}.
Request a crawl of {ips} and use one scan credit per IP.
POST /shodan/scan/internet Scan the Internet for a port · Scan Internet For Port #
Ask an LLM
“Can I scan the whole Internet for a single port?”
“Is scanning the Internet for a port available to everyone?”
Tell an agent
Scan the Internet for port {port} over {protocol}.
Crawl the Internet looking for {protocol} traffic on port {port}.
GET /shodan/scans List on-demand scans · List On-Demand Scans #
Ask an LLM
“Which on-demand scans have I submitted?”
“What is the status of my on-demand scans?”
Tell an agent
List my on-demand scans.
Show the status of every scan I requested.
GET /shodan/scan/{id} Check an on-demand scan's status · Get Scan Status #
Ask an LLM
“Has my on-demand scan finished yet?”
“How far along is a scan I submitted?”
Tell an agent
Get the status of scan {id}.
Check how far along on-demand scan {id} has gotten.

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-on-demand-scanning-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-on-demand-scanning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shodan REST On-Demand Scanning 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: On-Demand Scanning
  description: Request crawls of specific IPs, netblocks, or the entire Internet.
paths:
  /shodan/ports:
    get:
      tags:
      - On-Demand Scanning
      summary: List Crawled Ports
      operationId: listPorts
      description: Returns the list of port numbers that Shodan is crawling on the Internet.
      responses:
        '200':
          description: Array of port numbers.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: integer
  /shodan/protocols:
    get:
      tags:
      - On-Demand Scanning
      summary: List Supported Protocols
      operationId: listProtocols
      description: Returns the list of protocols that can be used when launching an on-demand Internet scan.
      responses:
        '200':
          description: Map of protocol slug to human-readable name.
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
  /shodan/scan:
    post:
      tags:
      - On-Demand Scanning
      summary: Submit On-Demand Scan
      operationId: createScan
      description: Request Shodan to crawl an IP or netblock. Each IP consumes one scan credit.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - ips
              properties:
                ips:
                  type: string
                  description: Comma-separated list of IPs or CIDR ranges.
      responses:
        '200':
          description: Scan submission confirmation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Scan'
  /shodan/scan/internet:
    post:
      tags:
      - On-Demand Scanning
      summary: Scan Internet For Port
      operationId: createInternetScan
      description: Request Shodan to crawl the Internet for a specific port and protocol. Enterprise only.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - port
              - protocol
              properties:
                port:
                  type: integer
                protocol:
                  type: string
      responses:
        '200':
          description: Internet scan submission confirmation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Scan'
  /shodan/scans:
    get:
      tags:
      - On-Demand Scanning
      summary: List On-Demand Scans
      operationId: listScans
      description: Returns the list of on-demand scans submitted by the account.
      responses:
        '200':
          description: Paginated list of scans.
          content:
            application/json:
              schema:
                type: object
                properties:
                  matches:
                    type: array
                    items:
                      $ref: '#/components/schemas/Scan'
                  total:
                    type: integer
  /shodan/scan/{id}:
    get:
      tags:
      - On-Demand Scanning
      summary: Get Scan Status
      operationId: getScan
      description: Returns the status and progress of an on-demand scan.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Scan status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Scan'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Scan:
      type: object
      properties:
        id:
          type: string
        count:
          type: integer
        credits_left:
          type: integer
        status:
          type: string
          enum:
          - SUBMITTING
          - QUEUE
          - PROCESSING
          - DONE
        created:
          type: string
          format: date-time
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: Shodan API key.