Shodan · JSON Structure

Shodan Rest Host Structure

Canonical structural representation of a Shodan host record.

Type: object Properties: 0
SecuritySearchInternetDevicesIoTVulnerabilitiesCVEAttack SurfaceThreat IntelligenceReconnaissanceNetworkDNSScanningPublic APIs

ShodanHost is a JSON Structure definition published by Shodan. It conforms to the https://json-structure.org/draft/2025/schema meta-schema.

Meta-schema: https://json-structure.org/draft/2025/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2025/schema",
  "$id": "https://github.com/api-evangelist/shodan/json-structure/shodan-rest-host-structure.json",
  "title": "Shodan Host Structure",
  "description": "Canonical structural representation of a Shodan host record.",
  "type": "object",
  "name": "ShodanHost",
  "namespace": "shodan",
  "fields": [
    { "name": "ip_str", "type": "string", "required": true, "description": "IP address in dotted-quad form." },
    { "name": "ip", "type": "integer", "description": "Integer-encoded IP address." },
    { "name": "hostnames", "type": "array", "items": "string" },
    { "name": "domains", "type": "array", "items": "string" },
    { "name": "country_code", "type": "string", "description": "ISO 3166-1 alpha-2." },
    { "name": "country_name", "type": "string" },
    { "name": "city", "type": "string" },
    { "name": "region_code", "type": "string" },
    { "name": "postal_code", "type": "string" },
    { "name": "latitude", "type": "number" },
    { "name": "longitude", "type": "number" },
    { "name": "org", "type": "string", "description": "Organization owning the network." },
    { "name": "isp", "type": "string" },
    { "name": "asn", "type": "string", "description": "Autonomous System Number." },
    { "name": "os", "type": "string" },
    { "name": "last_update", "type": "datetime" },
    { "name": "ports", "type": "array", "items": "integer" },
    { "name": "vulns", "type": "array", "items": "string", "description": "Known CVE identifiers." },
    { "name": "tags", "type": "array", "items": "string" },
    { "name": "data", "type": "array", "items": "ShodanBanner", "description": "Banner records for each observed service." }
  ]
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • 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 JSON Structure
curl "https://apis.io/api/v1/json-structures/shodan-rest-host-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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