openapi: 3.0.1 info: title: alphaMountain.ai API Docs description: | # Introduction Welcome to the API documentation for alphaMountain.ai! Our API is designed to be easy to use and easy to parse using both modern and legacy tools. As long as you can make HTTPS requests and parse JSON, you've got what you need to dive in! # alphaMountain API Key The alphaMountain API delivers real-time web classification, domain & IP reputation and threat intelligence. To get started powering your solution with us, [request your free trial key](https://www.alphamountain.ai/threat-intelligence-feeds-api/). # Conventions All public APIs are secured via HTTPS and served via the `api.alphamountain.ai` or `batch.alphamountain.ai` gateway. API users should validate the SSL certificate `api.alphamountain.ai` or `batch.alphamountain.ai` presents to ensure data integrity and validity. --- ### Requests All public API requests are HTTP POST requests. Each request must * Pass a JSON document as its payload * Set the HTTP header `Content-Type: application/json` * Include a `version` field in the JSON payload * Include a `license` field in the JSON payload This document describes API version `1` requests. --- ### Responses All public API responses are synchronous. Each response will: * Return HTTP status code `200` on success * Return HTTP status code `401` on unauthorized (invalid license) * Return HTTP status code `429` on quota exhausted * Return HTTP status code `498` on expired license * Return HTTP status code `4xx` or `5xx` as appropriate for other errors * Set the HTTP response header `Content-Type: application/json` or `Content-Type: text/csv` * Include a `version` field in the JSON payload In the case of a quota exhausted `429` response code, the HTTP header `X-Quota-Next-Reset` will be set. The value of this header is a UNIX timestamp that represents the time that the API usage quota will be reset, typically either once per day or once per month depending on license entitlements. This document describes API version `1` responses. *NOTE*: Hostnames in the batch API will be returned as hexadecimal sha256 hashes of the hostname with `aM-` prefixed. (For `google.com`, the returned hostname is `sha256('aM-google.com')`. [Examples here](https://alphamountain.ai/api/batch-top100.zip)) --- ### Batch Tiers Each record in the batch responses is returned with a `tier` parameter, intended to be used as a hint for cache lifecycles in partner integrations: * `tier: 1` is returned for sites expected to be very stable and change rarely (google.com, facebook.com, etc.) * `tier: 2` is returned for sites that probably don't change more often than weekly * `tier: 3` is returned for sites that could change at any moment, high flux is expected Note that tiers only provide estimates for the likelihood of change, any particular site may change more often or less-often than implied by the tier. version: '1.0' x-logo: url: "https://alphamountain.ai/favicon.ico" altText: "alphaMountain.ai" tags: - name: Category description: Category related endpoints - name: Threat description: Threat related endpoints - name: Intelligence description: Intelligence API - name: License description: Get info on a specific license - name: Support description: Support related endpoints servers: - url: 'https://api.alphamountain.ai' paths: /threat/uri: post: summary: Threat score for an internet URL tags: - Threat description: | This API returns the threat rating for a URI stored in the alphaMountain.ai cloud. In the unlikely event of a non-existent threat rating, a rapid real-time lookup is performed and the URI is queued for deeper analysis to ensure future coverage. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"uri":"https://google.com/","license":"","type":"partner.info","version":1, "scan_depth": "low" }' https://api.alphamountain.ai/threat/uri/ - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' request_type = 'partner.info' endpoint = 'https://api.alphamountain.ai/threat/uri' scan_depth = 'low' def lookup_url(url): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'type': request_type, 'uri': url, 'scan_depth': scan_depth } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: j = r.json() print(json.dumps(j, indent=2)) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): if len(sys.argv) != 2: print("Usage: {} hostname".format(sys.argv[0])) return 1 lookup_url('http://' + sys.argv[1]) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain uri: type: string description: The URI or URL to assess version: type: integer description: API version, this document describes version `1` type: type: string description: The request type, typically `partner.info` scan_depth: type: string description: One of none, low, medium, or high indicating how thorough of a real-time lookup should be performed. Each level may take more time to respond resolved_ips (optional): type: array items: type: string description: An array of IPv4 or IPv6 addresses that the URI resolved to. While resolved_ips are optional, sending them provides additional context for better threat score accuracy. referrer (optional): type: string description: The HTTP referrer that led to this URI. While optional, sending the referrer provides additional context for threat analysis. examples: 'google.com': value: {"uri": "http://google.com/", "license": "LICENSE-KEY", "version": 1, "type": "partner.info", "scan_depth": "low", "resolved_ips": ["142.250.72.174", "2607:f8b0:4004:c1b::65"], "referrer": "http://youtube.com"} responses: '200': description: | JSON keys:
scoreA floating point threat score, with 0.0 being a known good site, 5.0 being unknown, and 10.0 being a known malicious site
scopeOne of domain or path
status.threatOne of 'Success' or 'Not Found'
sourceOne of 'αM-Labs' for a cached deep analysis score, or 'rt' for a real-time score
ttlA cache expiry value for the response, in seconds
content: application/json: examples: google.com: value: {"version":1,"status":{"threat":"Success"},"threat":{"score":1.1035714285714284,"scope":"domain","source":"αM-Labs"},"ttl":28800} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'google.com': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached (See `X-Quota-Next-Reset` header) content: text/plain: examples: 'google.com': value: Quota exhausted '498': description: |- Expired API key content: text/plain: examples: 'google.com': value: Expired API key servers: - url: 'https://api.alphamountain.ai' servers: - url: 'https://api.alphamountain.ai' /threat/uris: post: summary: Threat scores for multiple internet URLs tags: - Threat description: | This API returns the threat rating for URIs stored in the alphaMountain.ai cloud. In the unlikely event of a non-existent threat rating, the URI is queued for deeper analysis to ensure future coverage. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"uris": ["http://example.com/", "https://google.com/"],"license":"","type":"partner.info","version":1 }' https://api.alphamountain.ai/threat/uris/ - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' request_type = 'partner.info' endpoint = 'https://api.alphamountain.ai/threat/uris' uris = ['http://example.com/', 'https://google.com/'] def lookup_uris(): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'type': request_type, 'uris': uris } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: j = r.json() print(json.dumps(j, indent=2)) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): lookup_uris() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain uris: type: array description: The URIs or URLs to assess. Each entry can be a string URI or an object with `uri` (string) and `resolved_ips` (array of IPv4 or IPv6 addresses). While resolved_ips are optional, sending them provides additional context for better threat score accuracy. items: oneOf: - type: string - type: object required: - uri properties: uri: type: string resolved_ips: type: array items: type: string referrer: type: string version: type: integer description: API version, this document describes version `1` type: type: string description: The request type, typically `partner.info` examples: 'Simple URLs': value: {"uris": ["http://example.com/", "https://google.com/"], "license": "LICENSE-KEY", "version": 1, "type": "partner.info"} 'URLs with metadata': value: {"uris": [{"uri": "https://google.com/", "resolved_ips": ["142.250.72.174", "2607:f8b0:4004:c1b::65"], "referrer": "http://youtube.com"}, {"uri": "http://example.com/", "resolved_ips": ["93.184.216.34"], "referrer": "http://youtube.com"}], "license": "LICENSE-KEY", "version": 1, "type": "partner.info"} responses: '200': description: | JSON keys:
versionAPI version, this document describes version '1'
statusOne of 'Success' or 'Not Found'
scoresA JSON object of successfully returned threat scores
errorsA JSON object of unsuccessfully returned threat scores
content: application/json: examples: google.com: value: {"version":1,"status":{"threat/uris":"Success"},"scores":{ "http://google.com/": {"score":1.1035714285714284,"scope":"domain","source":"αM-Labs","ttl":28800}}, "errors": { 'https://example.com/': "reason for error"}} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'google.com': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached (See `X-Quota-Next-Reset` header) content: text/plain: examples: 'google.com': value: Quota exhausted '498': description: |- Expired API key content: text/plain: examples: 'google.com': value: Expired API key servers: - url: 'https://api.alphamountain.ai' servers: - url: 'https://api.alphamountain.ai' /category/uri: post: summary: Categories for an internet URI/URL tags: - Category description: | Our classification API is designed to return categories for a given internet URL. The returned categories are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. For performance reasons, category IDs are returned from the API rather than textual category strings. Here are the mapping files for category IDs to category strings: [JSON](https://alphamountain.ai/api/am_mapping.json) | [CSV](https://alphamountain.ai/api/am_mapping.csv) | [HTML (with descriptions)](https://www.alphamountain.ai/categories/). This API returns the categories for a URI stored in the alphaMountain.ai cloud. In the unlikely event of a non-existent categorization, a rapid real-time lookup is performed and the URI is queued for deeper analysis to ensure future coverage. **Testing URLs**: For API testing, alphaMountain provides special test domains in the format `https://[catID].test.alphamountain.ai` where `[catID]` is any category ID. These URLs will always return the specified category ID with high confidence. For example, `https://71.test.alphamountain.ai` will return category 71 (Sports), and `https://34.test.alphamountain.ai` will return category 34 (Information Technology). x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"uri":"https://google.com/","license":"","type":"partner.info","version":1}' https://api.alphamountain.ai/category/uri/ - lang: cURL (Test URL - Sports Category) source: | curl -X POST -H 'Content-Type: application/json' -d '{"uri":"https://71.test.alphamountain.ai","license":"","type":"partner.info","version":1}' https://api.alphamountain.ai/category/uri/ - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' request_type = 'partner.info' endpoint = 'https://api.alphamountain.ai/category/uri' def lookup_url(url): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'type': request_type, 'uri': url } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: j = r.json() print(json.dumps(j, indent=2)) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): if len(sys.argv) != 2: print("Usage: {} hostname".format(sys.argv[0])) return 1 lookup_url('http://' + sys.argv[1]) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain uri: type: string description: The URI or URL to assess version: type: integer description: API version, this document describes version `1` type: type: string description: The request type, typically `partner.info` resolved_ips (optional): type: array items: type: string description: An array of IPv4 or IPv6 addresses that the URI resolved to. While resolved_ips are optional, sending them provides additional context for better categorization accuracy. referrer (optional): type: string description: The HTTP referrer that led to this URI. While optional, sending the referrer provides additional context for categorization analysis. mapping (optional): type: integer description: Selects the category mapping version for returned category IDs. Supported values are `0` (default, categories 0–88) and `1` (additionally includes categories 89–91). When mapping version `0` is used, categories from newer mapping versions are remapped to their closest version 0 equivalents (for example, DNS over HTTPS (89) → Infrastructure/IOT (36)). examples: 'google.com': value: {"uri": "http://google.com/", "license": "LICENSE-KEY", "version": 1, "type": "partner.info", "resolved_ips": ["142.250.72.174", "2607:f8b0:4004:c1b::65"], "referrer": "http://youtube.com"} 'test-sports-category': value: {"uri": "https://71.test.alphamountain.ai", "license": "LICENSE-KEY", "version": 1, "type": "partner.info"} responses: '200': description: | JSON keys:
category.categoriesAn integer alphaMountain.ai category ID
confidenceAn internal model calculation for threshold cutoff. It is not to be interpreted as a probability. For example, a .5 confidence is not 50% probability. Only entries that pass deliberate accuracy cutoffs are included in the feed.
category.scopeOne of domain or path
status.categoryOne of 'Success' or 'Not Found'
ttlA cache expiry value for the response, in seconds
content: application/json: examples: 'google.com': value: {"version":1,"status":{"category":"Success"},"category":{"categories":[64],"scope":"domain","confidence":0.98},"ttl":28800} 'test-sports-category': value: {"version":1,"status":{"category":"Success"},"category":{"categories":[71],"scope":"domain","confidence":0.9},"ttl":28800} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'google.com': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached (See `X-Quota-Next-Reset` header) content: text/plain: examples: 'google.com': value: Quota exhausted '498': description: |- Expired API key content: text/plain: examples: 'google.com': value: Expired API key servers: - url: 'https://api.alphamountain.ai' servers: - url: 'https://api.alphamountain.ai' /category/uris: post: summary: Categories for multiple internet URIs/URLs tags: - Category description: | Our classification API is designed to return categories for a given internet URL. The returned categories are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. For performance reasons, category IDs are returned from the API rather than textual category strings. Here are the mapping files for category IDs to category strings: [JSON](https://alphamountain.ai/api/am_mapping.json) | [CSV](https://alphamountain.ai/api/am_mapping.csv) | [HTML (with descriptions)](https://www.alphamountain.ai/categories/). This API returns the categories for a URI stored in the alphaMountain.ai cloud. In the unlikely event of a non-existent categorization, the URI is queued for deeper analysis to ensure future coverage. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"uris": ["http://google.com/", "https://example.com/"],"license":"","type":"partner.info","version":1}' https://api.alphamountain.ai/category/uris/ - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' request_type = 'partner.info' endpoint = 'https://api.alphamountain.ai/category/uris' uris = ['http://google.com/', 'https://example.com/'] def lookup_uris(): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'type': request_type, 'uris': uris } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: j = r.json() print(json.dumps(j, indent=2)) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): lookup_uris() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain uris: type: array description: The URIs or URLs to categorize. Each entry can be a string URI or an object with `uri` (string) and `resolved_ips` (array of IPv4 or IPv6 addresses). While resolved_ips are optional, sending them provides additional context for better categorization accuracy. items: oneOf: - type: string - type: object required: - uri properties: uri: type: string resolved_ips: type: array items: type: string referrer: type: string version: type: integer description: API version, this document describes version `1` type: type: string description: The request type, typically `partner.info` mapping (optional): type: integer description: Selects the category mapping version for returned category IDs. Supported values are `0` (default, categories 0–88) and `1` (additionally includes categories 89–91). When mapping version `0` is used, categories from newer mapping versions are remapped to their closest version 0 equivalents (for example, DNS over HTTPS (89) → Infrastructure/IOT (36)). examples: 'Simple URLs': value: {"uris": ["http://google.com/", "https://example.com/"], "license": "LICENSE-KEY", "version": 1, "type": "partner.info"} 'URLs with metadata': value: {"uris": [{"uri": "https://google.com/", "resolved_ips": ["142.250.72.174", "2607:f8b0:4004:c1b::65"], "referrer": "http://youtube.com"}, {"uri": "https://example.com/", "resolved_ips": ["93.184.216.34", "2606:2800:220:1:248:1893:25c8:1946"], "referrer": "http://youtube.com"}], "license": "LICENSE-KEY", "version": 1, "type": "partner.info"} responses: '200': description: | JSON keys:
versionAPI version, this document describes version '1'
statusOne of Success or Not Found
categoriesA JSON object of successfully returned alphaMountain.ai category IDs
errorsA JSON object of unsuccessfully returned alphaMountain.ai category IDs
content: application/json: examples: 'google.com': value: {"version":1,"status":{"category/uris":"Success"},"categories":{ 'http://google.com/': {"categories":[64],"scope":"domain","confidence":0.98,"ttl":28800}}, "errors": { 'https://example.com/': "reason for error"}} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'google.com': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached (See `X-Quota-Next-Reset` header) content: text/plain: examples: 'google.com': value: Quota exhausted '498': description: |- Expired API key content: text/plain: examples: 'google.com': value: Expired API key servers: - url: 'https://api.alphamountain.ai' servers: - url: 'https://api.alphamountain.ai' /intelligence/hostname: post: summary: Intelligence data for a domain/hostname tags: - Intelligence description: | The intelligence API provides contextual data and risk factors for domains and IPs, which are contributing components to the alphaMountain threat and category verdicts. API quota usage for intelligence data is variable and depends on the sections, options, and flags selected in the request. In the request body schema below you will see the cost per section. If the `with-rating` or the `with-categories` flag is included, the cost for the specific option it is included with will be multiplied by 3. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"hostname":"google.com","license":"","version":1,"sections": ["popularity"],"options":{"pdns":{"limit": 1000}}}' https://api.alphamountain.ai/intelligence/hostname - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' endpoint = 'https://api.alphamountain.ai/intelligence/hostname' sections = ['popularity', 'pdns'] options = { 'pdns': { 'limit': 1000 } } def lookup_hostname(hostname): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'hostname': hostname, 'sections': sections, 'options': options } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: j = r.json() print(json.dumps(j, indent=2)) else: print("{}: HTTP Error ({}): {}".format(hostname, r.status_code, r.text)) def main(): if len(sys.argv) != 2: print("Usage: {} hostname".format(sys.argv[0])) return 1 lookup_hostname(sys.argv[1]) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain hostname: type: string description: The domain/hostname to gather intelligence on version: type: integer description: API version, this document describes version `1` sections: type: array items: type: string description: | Sections of intelligence to gather: | Section | Description | Cost | | :--- | :--- | :--- | | `category` | alphaMountain category IDs | 1 | | `dga` | domain generation algorithm (dga) probability | 1 | | `dns` | DNS records (A, AAAA, NS, MX, TXT, DMARC, DKIM) | 1 | | `geo` | Geolocation of resolved IPs | 1 | | `impersonate` | List of possibly impersonated domains | 1 | | `paths` | Paths that have appeared on this domain | 1 | | `pdns` | Passive dns | 3 | | `popularity` | Current domain ranking, a null popularity rank indicates an unranked domain | 1 | | `relations_links` | Inbound and outbound links | 1 | | `relations_redirects` | Inbound and outbound redirects | 1 | | `relations_same_ip` | Hosts on the same IP(s) | 5 | | `relations_same_domain` | Hosts on the same domain | 3 | | `relations_content_security_policy` | Hosts found in the content-security-policy header | 3 | | `relations_certificate_altnames` | Hosts found in the certificate altnames | 3 | | `scan_screenshot` | Screenshot of the domain | 5 | | `scan_response` | Analysis of http(s) response, headers and certificate chain | 5 | | `scan_dom` | Raw http(s) HTML documents | 5 | | `scan_ports` | Analysis of open ports on host | 3 | | `threat` | alphaMountain threat rating | 1 | | `whois` | raw whois record and parsed values | 1 | options (optional): type: object description: A JSON object of configurable options per requested section. properties: paths: type: object description: A JSON object of options for the paths section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 start_date: type: ISO8601 timestamp description: A timestamp specifying beginning of the time period to fetch, defaults to 90 days ago. Max 1 year ago. pdns: type: object description: A JSON object of options for the pdns section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 start_date: type: ISO8601 timestamp description: A timestamp specifying beginning of the time period to fetch, defaults to 90 days ago. Max 1 year ago. relations_certificate_altnames: type: object description: A JSON object of options for the relations_certificate_altnames section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 flags: type: array items: type: string description: | - `include-ratings` include alphaMountain security ratings - `include-categories` include alphaMountain content categories relations_content_security_policy: type: object description: A JSON object of options for the relations_content_security_policy section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 flags: type: array items: type: string description: | - `include-ratings` include alphaMountain security ratings - `include-categories` include alphaMountain content categories relations_links: type: object description: A JSON object of options for the relations_links section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 flags: type: array items: type: string description: | - `include-ratings` include alphaMountain security ratings - `include-categories` include alphaMountain content categories relations_redirects: type: object description: A JSON object of options for the relations_redirects section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 flags: type: array items: type: string description: | - `include-ratings` include alphaMountain security ratings - `include-categories` include alphaMountain content categories relations_same_domain: type: object description: A JSON object of options for the relations_same_domain section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 flags: type: array items: type: string description: | - `include-ratings` include alphaMountain security ratings - `include-categories` include alphaMountain content categories start_date: type: ISO8601 timestamp description: A timestamp specifying beginning of the time period to fetch, defaults to 90 days ago. Max 1 year ago. relations_same_ip: type: object description: A JSON object of options for the relations_same_ip section. properties: limit: type: integer description: A limit on the number of records returned. Defaults to 5,000 flags: type: array items: type: string description: | - `include-ratings` include alphaMountain security ratings - `include-categories` include alphaMountain content categories start_date: type: ISO8601 timestamp description: A timestamp specifying beginning of the time period to fetch, defaults to 90 days ago. Max 1 year ago. whois: type: object description: A JSON object of options for the whois section. properties: flags: type: array items: type: string description: | - `include-extras` include extra fields if available (raw whois, contact email, etc.) - `include-historical` include historical whois records limit (optional): type: integer description: A limit on the number of records returned. Can be applied to any relations section and the paths and pdns sections. examples: 'google.com': value: {"hostname": "google.com", "license": "LICENSE-KEY", "version": 1, "sections": ["popularity", "pdns"], "options": {"pdns": {"limit": 1000}}} responses: '200': description: | JSON keys:
status[section]One of 'Success' or 'Not Found'
summarySummary of low, medium, and high risk factors
sections[section]Returned section data, only populated if status == 'Success'
errors[section]Reason for section error, only populated if status == 'Not Found'
ttlA cache expiry value for the response, in seconds
content: application/json: examples: google.com: value: {"version": 1,"status": {"popularity": "Success", "pdns": "Success"},"summary": {"low_risk": ["Popular Site"],"mid_risk": [],"high_risk": []},"sections": {"popularity": {"popularity": 1}, "pdns": [{ "hostname": "google.com", "ip": "142.250.72.174", "first_seen": "2023-08-08T14:51:23.000Z", "last_seen": "2025-11-10T16:40:26.454Z" }, ...]},"errors": {},"ttl": 28800} '401': description: |- Unauthorized or invalid license content: application/json: examples: 'google.com': value: { "status": "Error", "error": "Unauthorized" } '429': description: |- Quota exceeded, or rate limit reached (See `X-Quota-Next-Reset` header) content: application/json: examples: 'google.com': value: { "status": "Error", "error": "Quota exhausted" } '498': description: |- Expired API key content: application/json: examples: 'google.com': value: { "status": "Error", "error": "Expired API key" } servers: - url: 'https://api.alphamountain.ai' servers: - url: 'https://api.alphamountain.ai' /threat/feed/{format}: post: summary: Feed of new threat ratings tags: - Threat description: | Return newly classified and revalidated threat ratings for internet URIs. The returned ratings are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. All values are between 0.0 and 10.0, with 0.0 being the most trusted 5.0 being unknown, and 10.0 being the most malicious. This API returns results with all inserts or updates from the alphaMountain master threat database that have occurred in the timeframe specified in the API request and with the parameters of the license entitlement. This API is primarily intended for alphaMountain data partners and OEM customers. Paths: `/threat/feed/csv` for CSV format or `/threat/feed/json` for JSON format Format: csv or json When the `include-removals` flag is used, the feed will also include removal records for sites that were previously risky but are no longer. These removal records will have a `null` score value, indicating they should be removed from local databases. x-codeSamples: - lang: cURL (CSV) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15, "risk_min": 0, "risk_max": 10, "flags": ["exclude-path"]}' https://batch.alphamountain.ai/threat/feed/csv - lang: cURL (JSON) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15, "risk_min": 0, "risk_max": 10, "flags": ["exclude-path"]}' https://batch.alphamountain.ai/threat/feed/json - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 risk_min = 0 risk_max = 10 flags = ['exclude-path'] endpoint_csv = 'https://batch.alphamountain.ai/threat/feed/csv' endpoint_json = 'https://batch.alphamountain.ai/threat/feed/json' def print_updates(endpoint): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit, 'risk_min': risk_min, 'risk_max': risk_max, 'flags': flags } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates(endpoint_csv) print_updates(endpoint_json) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit (optional): type: integer description: A limit on the number of records returned. Defaults to license entitlements risk_min (optional): type: integer description: Minimum risk score to include in the feed. Defaults to license entitlements risk_max (optional): type: integer description: Maximum risk score to include in the feed. Defaults to license entitlements start (optional): type: ISO8601 timestamp description: An optional override timestamp for the beginning of the record-scheme to fetch in ISO8601 format. If no start time is sent, the backend system will use the maximum lookback allowed by the license entitlement (7-30 days). If sending `start`, it is recommended to send the timestamp of the start of the last successful download request. If a start time was specified and no records are returned, send the same start time in the next API call. flags (optional): type: array items: type: string description: | Optional flags to exclude certain types of entries from the results. | Flag | Description | | :--- | :--- | | `exclude-ip` | return hostnames only | | `exclude-host` | return IPs only | | `exclude-path` | return root paths only | | `exclude-dead` | return live sites only | | `include-removals` | include removal records for previously risky sites | Ex: To return only FQDNs, use `exclude-ip` and `exclude-path`. examples: 'All updates since the last successful complete unlimited records API call.': value: {"license": "LICENSE-KEY", "version": 1, "limit": 10, "risk_min": 2, "risk_max": 5,"start": "2022-09-01T00:00:00Z", "flags": ["exclude-path"] } responses: '200': description: | (CSV) For /threat/feed/csv, CSV data:
url, hostname, score
http://test.com/, test.com, 1.84
http://removed.com/, removed.com, null
...
(JSON) For /threat/feed/json, JSON keys:
versionAPI version, this document describes version `1`
statusOne of 'Success' or 'Not Found'
feedAn array of threat scores. Each entry contains `url`, `hostname`, and `score`. Removal records will have a `null` score value.
content: text/csv: examples: 'All updates (CSV)': value: url, hostname, score application/json: examples: 'All updates (JSON)': value: {"version": 1, "status": { "threat/feed": "Success"}, "feed": [{ "url": "http://test.com/", "hostname": "test.com", "score": 1.84 }, { "url": "http://removed.com/", "hostname": "removed.com", "score": null }, ...]} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /category/feed/{format}: post: summary: Feed of new content categorizations tags: - Category description: | Return newly classified and revalidated categorization for internet URIs. The returned ratings are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. For performance reasons, category IDs are returned from the API rather than textual category strings. Here are the mapping files for category IDs to category strings: [JSON](https://alphamountain.ai/api/am_mapping.json) | [CSV](https://alphamountain.ai/api/am_mapping.csv) | [HTML (with descriptions)](https://www.alphamountain.ai/categories/). Paths: `/category/feed/csv` for CSV format or `/category/feed/json` for JSON format Format: csv or json This API returns results with all inserts or updates from the alphaMountain master categorization database that have occurred in the timeframe specified in the API request and with the parameters of the license entitlement. This API is primarily intended for alphaMountain data partners and OEM customers. When the `include-removals` flag is used, the feed will also include removal records for sites that were previously risky but are no longer. These removal records will have a `null` categories value, indicating they should be removed from local databases. x-codeSamples: - lang: cURL (CSV) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15, "categories": [39,51,72], "flags": ["exclude-path"]}' https://batch.alphamountain.ai/category/feed/csv - lang: cURL (JSON) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15, "categories": [39,51,72], "flags": ["exclude-path"]}' https://batch.alphamountain.ai/category/feed/json - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 categories = [39,51,72] flags = ['exclude-path'] endpoint_csv = 'https://batch.alphamountain.ai/category/feed/csv' endpoint_json = 'https://batch.alphamountain.ai/category/feed/json' def print_updates(endpoint): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit, 'categories': categories, 'flags': flags } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates(endpoint_csv) print_updates(endpoint_json) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit (optional): type: integer description: A limit on the number of records returned. Defaults to license entitlements categories (optional): type: array items: type: integer description: A list of categories to include in the feed. Defaults to license entitlements start (optional): type: ISO8601 timestamp description: An optional override timestamp for the beginning of the record-scheme to fetch in ISO8601 format. If no start time is sent, the backend system will use the maximum lookback allowed by the license entitlement (7-30 days). If sending `start`, it is recommended to send the timestamp of the start of the last successful download request. If a start time was specified and no records are returned, send the same start time in the next API call. flags (optional): type: array description: | Optional flags to exclude certain types of entries from the results. | Flag | Description | | :--- | :--- | | `exclude-ip` | return hostnames only | | `exclude-host` | return IPs only | | `exclude-path` | return root paths only | | `exclude-dead` | return live sites only | | `include-removals` | include removal records for previously risky sites | Ex: To return only FQDNs, use `exclude-ip` and `exclude-path`. mapping (optional): type: integer description: Selects the category mapping version for returned category IDs. Supported values are `0` (default, categories 0–88) and `1` (additionally includes categories 89–91). When mapping version `0` is used, categories from newer mapping versions are remapped to their closest version 0 equivalents (for example, DNS over HTTPS (89) → Infrastructure/IOT (36)). examples: 'All updates since the last successful complete unlimited records API call.': value: {"license": "LICENSE-KEY", "version": 1, limit: 10, categories: [39,51,72],"start": "2022-09-01T00:00:00Z", flags: ["exclude-path"] } responses: '200': description: | (CSV) For /category/feed/csv, CSV data :
url, hostname, categories, confidence
http://test.com/, test.com, [34], .8864
http://removed.com/, removed.com, null, 0.00
...
(JSON) For /category/feed/json, JSON keys:
versionAPI version, this document describes version `1`
statusone of Success or Not Found
feedAn array of category scores. Each entry contains `url`, `hostname`, `categories`, and `confidence`. Removal records will have a `null` categories value.
content: text/csv: examples: 'All updates (CSV)': value: url,hostname,categories,confidence application/json: examples: 'All updates (JSON)': value: {"version": 1, "status": { "category/feed": "Success"}, "feed": [{ "url": "http://test.com/", "hostname": "test.com", "categories": [34], "confidence": .8644 }, { "url": "http://removed.com/", "hostname": "removed.com", "categories": null, "confidence": 0.00 }, ...]} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /category/ranked/{format}: post: summary: Feed of ranked content categorizations tags: - Category description: | Return ranked categorization for top hosts according to alphaMountain's traffic based popularity ranking. The returned ratings are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. For performance reasons, category IDs are returned from the API rather than textual category strings. Here are the mapping files for category IDs to category strings: [JSON](https://alphamountain.ai/api/am_mapping.json) | [CSV](https://alphamountain.ai/api/am_mapping.csv) | [HTML (with descriptions)](https://www.alphamountain.ai/categories/). Paths: `/category/ranked/csv` for CSV format or `/category/ranked/json` for JSON format Format: csv or json This API returns ranked categorization data from the alphaMountain master categorization database, ordered by alphaMountain's traffic based popularity ranking rather than chronological order. This API is primarily intended for alphaMountain data partners and OEM customers. x-codeSamples: - lang: cURL (CSV) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15}' https://batch.alphamountain.ai/category/ranked/csv - lang: cURL (JSON) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15}' https://batch.alphamountain.ai/category/ranked/json - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 endpoint_json = 'https://batch.alphamountain.ai/category/ranked/json' endpoint_csv = 'https://batch.alphamountain.ai/category/ranked/csv' def print_ranked_updates(endpoint): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_ranked_updates(endpoint_json) print_ranked_updates(endpoint_csv) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit (optional): type: integer description: A limit on the number of records returned, ordered by popularity rank. Defaults to license entitlements categories (optional): type: array description: (For /category/ranked/csv) A list of categories to include in the feed. Defaults to license entitlements mapping (optional): type: integer description: Selects the category mapping version for returned category IDs. Supported values are `0` (default, categories 0–88) and `1` (additionally includes categories 89–91). When mapping version `0` is used, categories from newer mapping versions are remapped to their closest version 0 equivalents (for example, DNS over HTTPS (89) → Infrastructure/IOT (36)). examples: 'Ranked updates': value: {"license": "LICENSE-KEY", "version": 1, limit: 10} responses: '200': description: | (JSON) JSON keys:
versionAPI version, this document describes version `1`
statusone of Success or Not Found
feedAn array of ranked category scores
(CSV) CSV data :
url, hostname, categories, confidence
http://google.com/, google.com, [64], 0.999
http://amazon.com/, amazon.com, [66], 0.998
http://facebook.com/, facebook.com, [67], 0.998
http://apple.com/, apple.com, [34,9], 0.999
http://youtube.com/, youtube.com, [44,79], 0.99594
http://yahoo.com/, yahoo.com, [64], 0.9976386389
http://netflix.com/, netflix.com, [18,79], 0.990371
...
content: application/json: examples: 'Ranked updates with category filtering': value: {"version":1,"status":{"category/ranked":"Success"},"feed":[{"url":"http://google.com/","hostname":"google.com","categories":[64],"confidence":0.999},{"url":"http://amazon.com/","hostname":"amazon.com","categories":[66],"confidence":0.998},{"url":"http://facebook.com/","hostname":"facebook.com","categories":[67],"confidence":0.998},{"url":"http://apple.com/","hostname":"apple.com","categories":[34,9],"confidence":0.999},{"url":"http://youtube.com/","hostname":"youtube.com","categories":[44,79],"confidence":0.99594},{"url":"http://yahoo.com/","hostname":"yahoo.com","categories":[64],"confidence":0.9976386389},{"url":"http://netflix.com/","hostname":"netflix.com","categories":[18,79],"confidence":0.990371},{"url":"http://samsung.com/","hostname":"samsung.com","categories":[9],"confidence":0.9934524189},{"url":"http://zoom.us/","hostname":"zoom.us","categories":[34,81],"confidence":0.970767},{"url":"http://adobe.com/","hostname":"adobe.com","categories":[34,9],"confidence":0.999},{"url":"http://tiktok.com/","hostname":"tiktok.com","categories":[67,79],"confidence":0.999},{"url":"http://yandex.ru/","hostname":"yandex.ru","categories":[64],"confidence":0.99594},{"url":"http://dropbox.com/","hostname":"dropbox.com","categories":[20],"confidence":0.99594},{"url":"http://instagram.com/","hostname":"instagram.com","categories":[42,67],"confidence":0.999}]} text/csv: examples: 'Ranked updates with category filtering': value: url,hostname,categories,confidence '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'Ranked updates with category filtering': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'Ranked updates with category filtering': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'Ranked updates with category filtering': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /threat/ranked/{format}: post: summary: Feed of ranked threat ratings tags: - Threat description: | Return ranked threat ratings for internet URIs for the top hosts according to alphaMountain's traffic based popularity ranking. The returned ratings are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. All values are between 0.0 and 10.0, with 0.0 being the most trusted 5.0 being unknown, and 10.0 being the most malicious. Paths: `/threat/ranked/csv` for CSV format or `/threat/ranked/json` for JSON format Format: csv or json This API returns ranked threat data from the alphaMountain master threat database, ordered by alphaMountain's traffic based popularity ranking rather than chronological order. This API is primarily intended for alphaMountain data partners and OEM customers. x-codeSamples: - lang: cURL (CSV) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15}' https://batch.alphamountain.ai/threat/ranked/csv - lang: cURL (JSON) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15}' https://batch.alphamountain.ai/threat/ranked/json - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 endpoint_json = 'https://batch.alphamountain.ai/threat/ranked/json' endpoint_csv = 'https://batch.alphamountain.ai/threat/ranked/csv' def print_ranked_updates(endpoint): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_ranked_updates(endpoint_json) print_ranked_updates(endpoint_csv) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit (optional): type: integer description: A limit on the number of records returned, ordered by popularity rank. Defaults to license entitlements examples: 'Ranked updates': value: {"license": "LICENSE-KEY", "version": 1, limit: 10} responses: '200': description: | (JSON) JSON keys:
versionAPI version, this document describes version `1`
statusone of Success or Not Found
feedAn array of ranked threat scores
(CSV) CSV data :
url, hostname, score
http://google.com/, google.com, 1.62
http://amazon.com/, amazon.com, 1.29
http://facebook.com/, facebook.com, 1.53
http://apple.com/, apple.com, 1.6
content: application/json: examples: 'Ranked updates with risk score filtering': value: {"version":1,"status":{"threat/ranked":"Success"},"feed":[{"url":"http://google.com/","hostname":"google.com","score":1.62},{"url":"http://amazon.com/","hostname":"amazon.com","score":1.29},{"url":"http://facebook.com/","hostname":"facebook.com","score":1.53},{"url":"http://apple.com/","hostname":"apple.com","score":1.6}]} text/csv: examples: 'Ranked updates with risk score filtering': value: url,hostname,score '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'Ranked updates with risk score filtering': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'Ranked updates with risk score filtering': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'Ranked updates with risk score filtering': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /whois/feed/{format}: post: summary: Feed of newly registered domains tags: - Intelligence description: | Return newly registered domains observed by alphaMountain based on WHOIS registration data. This API returns results with all domains whose WHOIS registration timestamps have been observed in the timeframe specified in the API request and with the parameters of the license entitlement. This API is primarily intended for alphaMountain data partners and OEM customers. Paths: `/whois/feed/csv` for CSV format or `/whois/feed/json` for JSON format Format: csv or json Newly registered domains may not appear in our database immediately at the moment of registration, but often appear within a few days. For best results, we recommend pulling the feed approximately once per week and setting the `start` time to about one week before the run time. This helps ensure you capture domains that appeared in our data shortly after registration. x-codeSamples: - lang: cURL (CSV) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":1000,"start":"2025-01-01T00:00:00Z"}' https://batch.alphamountain.ai/whois/feed/csv - lang: cURL (JSON) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":1000,"start":"2025-01-01T00:00:00Z"}' https://batch.alphamountain.ai/whois/feed/json - lang: python source: | #!/usr/bin/env python import json import requests import sys from datetime import datetime, timedelta, timezone version = 1 license = '' limit = 1000 # Recommended: run weekly and set start to ~1 week before run time start = (datetime.now(timezone.utc) - timedelta(days=7)).strftime('%Y-%m-%dT%H:%M:%SZ') endpoint_csv = 'https://batch.alphamountain.ai/whois/feed/csv' endpoint_json = 'https://batch.alphamountain.ai/whois/feed/json' def print_updates(endpoint): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit, 'start': start } r = requests.post(endpoint, headers=headers, data=json.dumps(data), stream=True) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates(endpoint_csv) print_updates(endpoint_json) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit (optional): type: integer description: A limit on the number of records returned. Defaults to license entitlements start (optional): type: ISO8601 timestamp description: | An optional override timestamp for the beginning of the record-scheme to fetch in ISO8601 format. If omitted, the backend will default to the maximum lookback window allowed by the license entitlement (typically up to 90 days). Newly registered domains may be delayed by up to a few days before appearing in our data. For batch ingestion, we recommend pulling the feed approximately once per week and setting the `start` time to about one week before the run time. If a start time was specified and no records are returned, send the same start time in the next API call. examples: 'Weekly updates of newly registered domains.': value: {"license": "LICENSE-KEY", "version": 1, "limit": 1000, "start": "2025-01-01T00:00:00Z" } responses: '200': description: | (JSON) For /whois/feed/json, JSON keys:
versionAPI version, this document describes version `1`
statusone of Success or Not Found
feedAn array of newly registered domains. Each entry contains `domain` and `registration` (ISO8601 timestamp).
(CSV) For /whois/feed/csv, CSV data :
domain, registration
example.com, 2025-01-01T12:34:56Z
example.net, 2025-01-01T13:45:00Z
...
content: text/csv: examples: 'Newly registered domains (CSV)': value: | domain,registration example.com,2025-01-01T12:34:56Z example.net,2025-01-01T13:45:00Z application/json: examples: 'Newly registered domains (JSON)': value: {"version": 1, "status": { "whois/feed": "Success"}, "feed": [{ "domain": "example.com", "registration": "2025-01-01T12:34:56Z" }, { "domain": "example.net", "registration": "2025-01-01T13:45:00Z" }, ...]} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'Weekly updates of newly registered domains.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'Weekly updates of newly registered domains.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'Weekly updates of newly registered domains.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /popularity/feed/{format}: post: summary: Feed of current host popularity rankings tags: - Intelligence description: | Return current host popularity rankings based on the API request parameters. Paths: `/popularity/feed/csv` for CSV format or `/popularity/feed/json` for JSON format Format: csv or json This API is primarily intended for alphaMountain data partners and OEM customers. x-codeSamples: - lang: cURL (CSV) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15}' https://batch.alphamountain.ai/popularity/feed/csv - lang: cURL (JSON) source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15}' https://batch.alphamountain.ai/popularity/feed/json - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 endpoint_json = 'https://batch.alphamountain.ai/popularity/feed/json' endpoint_csv = 'https://batch.alphamountain.ai/popularity/feed/csv' def print_updates(endpoint): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates(endpoint_json) print_updates(endpoint_csv) return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit (optional): type: integer description: A limit on the number of records returned. Defaults to 1M examples: 'Top 100 current popularity ranked hosts.': value: {"license": "LICENSE-KEY", "version": 1, limit: 100} responses: '200': description: | (JSON) JSON keys:
versionAPI version, this document describes version `1`
statusone of Success or Not Found
feedAn array containing internet hostnames ordered by ranking
(CSV) CSV Data:
rank, hostname
1,"google.com"
...
content: application/json: examples: 'All updates since the last successful complete unlimited records API call.': value: {"version": 1, "status": { "category/feed": "Success"}, "feed": [{ "rank": 1, "hostname": "test.com" }, ...]} text/csv: examples: 'All updates since the last successful complete unlimited records API call.': value: rank, hostname '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /threat: post: summary: Batch Updates for Local Threat Database tags: - Threat description: | Maintain a local database of alphaMountain threat data. This Batch API delivers incremental updates for you to apply to your own database, allowing your applications to look up threat information locally rather than make individual API queries. Return newly classified and updated threat ratings for internet URIs. The returned ratings are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. All values are between 0.0 and 10.0, with 0.0 being the most trusted 5.0 being unknown, and 10.0 being the most malicious. This API returns all updates, changes, and removals from the alphaMountain master threat database that have occurred since the last time the API was successfully called in "unlimited mode", or, with a `limit: 0` parameter for the given API key, and all results were returned before the client disconnected. If a client disconnects before reading the full results set, the internal timestamp does not update. This API is primarily intended for alphaMountain data partners and OEM customers. Each record is returned as an single line of JSON text to facilitate streaming large updates. A `null` threat score indicates that a record is no longer relevant and should be removed. Hostname lookup (walkback): When looking up hostnames, a successive walk of subdomains from most specific to least specific, ending the ICANN or [Public Suffix List](https://publicsuffix.org/)-managed domain, should be performed until the first match is found. alphaMountain recommends to walk back three times plus the ICANN or Public Suffix List-managed domain for a total of 4 lookups. Subdomain walkback example, when looking up `a.b.google.com`: - `a.b.google.com` - `b.google.com` (if `a.b.google.com` wasn't found) - `google.com` (if `b.google.com` wasn't found) For fully qualified hosts with paths, paths should be walked back on the hostname that includes the path, but not on a subsequent subdomain walkback. For example, when looking up `sub.domain.com/path/a`: - `sub.domain.com/path/a` - `sub.domain.com/path/` (if `sub.domain.com/path/a` wasn't found) - `sub.domain.com/path` (if `sub.domain.com/path/` wasn't found) - `sub.domain.com/` (if `sub.domain.com/path` wasn't found) - `domain.com/` (if none of the above were found) x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15, "flags": ["exclude-path"]}' https://batch.alphamountain.ai/threat - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 flags = ['exclude-path'] endpoint = 'https://batch.alphamountain.ai/threat' def print_updates(): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit, 'flags': flags } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit: type: integer description: A limit on the number of records returned, or `0` for unlimited start (optional): type: ISO8601 timestamp description: An optional override timestamp for the beginning of the record-scheme to fetch in ISO8601 format. A start parameter should not be sent unless there is an explicit test or error recovery condition. If no start time is sent, the backend system will use an internal data checkpoint to track which records are new since the last successful API call. This data checkpoint can be viewed by calling the license/info API. The data_checkpoint value may be in the past due to temporary database sync delays. If a start parameter is sent, the timestamp should be older or equal to the data_checkpoint value returned from the license/info API. For error recovery, once data is processed successfully, set the next start to the current data_checkpoint value so no records are missed. end (optional): type: ISO8601 timestamp description: An optional override timestamp for the end of the record-scheme to fetch in ISO8601 format. An end parameter should not be sent unless there is an explicit test or error recovery condition. If no end time is sent, the backend system will send data up to the latest record in the database. flags (optional): type: array description: | Optional flags to exclude certain types of entries from the results. | Flag | Description | | :--- | :--- | | `exclude-ip` | return hostnames only | | `exclude-host` | return IPs only | | `exclude-path` | return root paths only | | `exclude-dead` | return live sites only | | `exclude-tier` | omit `tier` values and skip tier lookups | Ex: To return only FQDNs, use `exclude-ip` and `exclude-path`. examples: 'All updates since the last successful complete unlimited records API call.': value: {"license": "LICENSE-KEY", "version": 1, limit: 10,"start": "2022-09-01T00:00:00Z"} 'All updates between two given times.': value: {"license": "LICENSE-KEY", "version": 1, limit: 0,"start": "2022-09-01T00:00:00Z","end": "2022-10-01T00:00:00Z"} responses: '200': description: | JSON keys:
domainA given internet hostname in hexadecimal sha256 format with 'aM-' prepended (ex `sha256('aM-google.com'`)
pathA path for the URL
scopeOne of `domain`, `host`, or `path`
scoreThe alphaMountain threat score, a floating point number between 0.0 and 10.0, with 0.0 being the most trusted, 5.0 being unknown, and 10.0 being the most malicious, or the value `null` if the record should be deleted
tierA number representing the likelihood of this categorization changing in the near term. Tier 1 is expected to change rarely (eg, google.com), tier 2 is expected to change occasionally, and tier 3 could change categorizations often.
content: application/json: examples: 'All updates since the last successful complete unlimited records API call.': value: {"domain":"9b304c915a0514577e6e0dc6c4a362faf273aca3c9e883732bfba40942a4fc97","path":"/","scope":"domain","score":3.43} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /category: post: summary: Batch Updates for Local Content Categorization Database tags: - Category description: | Maintain a local database of alphaMountain content categorizations. This Batch API delivers incremental updates for you to apply to your own database, allowing your applications to look up content categorizations locally rather than make individual API queries. Return newly classified, updated, and deleted categorization for internet URIs. The returned categories are generated from alphaMountain's own statistical and neural network models, and are cross-validated by a variety of sources as appropriate. For performance reasons, category IDs are returned from the API rather than textual category strings. Here are the mapping files for category IDs to category strings: [JSON](https://alphamountain.ai/api/am_mapping.json) | [CSV](https://alphamountain.ai/api/am_mapping.csv) | [HTML (with descriptions)](https://www.alphamountain.ai/categories/). A returned categories value of `null` indicates that the record is no longer relevant and should be deleted. This API returns all updates and changes to the alphaMountain master categorization database that have occurred since the last time the API was successfully called in "unlimited mode", or, with a `limit: 0` parameter for the given API key, and all results were returned before the client disconnected. If a client disconnects before reading the full results set, the internal timestamp does not update. This API is primarily intended for alphaMountain data partners and OEM customers. Each record is returned as an single line of JSON text to facilitate streaming large updates. Hostname lookup (walkback): When looking up hostnames, a successive walk of subdomains from most specific to least specific, ending the ICANN or [Public Suffix List](https://publicsuffix.org/)-managed domain, should be performed until the first match is found. alphaMountain recommends to walk back three times plus the ICANN or Public Suffix List-managed domain for a total of 4 lookups. Subdomain walkback example, when looking up `a.b.google.com`: - `a.b.google.com` - `b.google.com` (if `a.b.google.com` wasn't found) - `google.com` (if `b.google.com` wasn't found) For fully qualified hosts with paths, paths should be walked back on the hostname that includes the path, but not on a subsequent subdomain walkback. For example, when looking up `sub.domain.com/path/a`: - `sub.domain.com/path/a` - `sub.domain.com/path/` (if `sub.domain.com/path/a` wasn't found) - `sub.domain.com/path` (if `sub.domain.com/path/` wasn't found) - `sub.domain.com/` (if `sub.domain.com/path` wasn't found) - `domain.com/` (if none of the above were found) x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"limit":15, "flags": ["exclude-path"]}' https://batch.alphamountain.ai/category - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' limit = 15 flags = ['exclude-path'] endpoint = 'https://batch.alphamountain.ai/category' def print_updates(): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'limit': limit, 'flags': flags } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit: type: integer description: A limit on the number of records returned, or `0` for unlimited start (optional): type: ISO8601 timestamp description: An optional override timestamp for the beginning of the record-scheme to fetch in ISO8601 format. A start parameter should not be sent unless there is an explicit test or error recovery condition. If no start time is sent, the backend system will use an internal data checkpoint to track which records are new since the last successful API call. This data checkpoint can be viewed by calling the license/info API. The data_checkpoint value may be in the past due to temporary database sync delays. If a start parameter is sent, the timestamp should be older or equal to the data_checkpoint value returned from the license/info API. For error recovery, once data is processed successfully, set the next start to the current data_checkpoint value so no records are missed. end (optional): type: ISO8601 timestamp description: An optional override timestamp for the end of the record-scheme to fetch in ISO8601 format. An end parameter should not be sent unless there is an explicit test or error recovery condition. If no end time is sent, the backend system will send data up to the latest record in the database. flags (optional): type: array description: | Optional flags to exclude certain types of entries from the results. | Flag | Description | | :--- | :--- | | `exclude-ip` | return hostnames only | | `exclude-host` | return IPs only | | `exclude-path` | return root paths only | | `exclude-dead` | return live sites only | | `exclude-tier` | omit `tier` values and skip tier lookups | Ex: To return only FQDNs, use `exclude-ip` and `exclude-path`. mapping (optional): type: integer description: Selects the category mapping version for returned category IDs. Supported values are `0` (default, categories 0–88) and `1` (additionally includes categories 89–91). When mapping version `0` is used, categories from newer mapping versions are remapped to their closest version 0 equivalents (for example, DNS over HTTPS (89) → Infrastructure/IOT (36)). examples: 'All updates between two given times.': value: {"license": "LICENSE-KEY", "version": 1, limit: 0, "start": "2022-09-01T00:00:00Z"} 'All updates since the last successful complete unlimited records API call.': value: {"license": "LICENSE-KEY", "version": 1, limit: 10, "start": "2022-09-01T00:00:00Z"} responses: '200': description: | JSON keys:
domainA given internet hostname in hexadecimal sha256 format with 'aM-' prepended (ex `sha256('aM-google.com'`)
pathA path for the URL
scopeOne of `domain`, `host`, or `path`
categoriesAn array of alphaMountain Category IDs, or `null` if the record should be removed
confidenceAn internal model calculation for threshold cutoff. It is not to be interpreted as a probability. For example, a .5 confidence is not 50% probability. Only entries that pass deliberate accuracy cutoffs are included in the feed.
tierA number representing the likelihood of this categorization changing in the near term. Tier 1 is expected to change rarely (eg, google.com), tier 2 is expected to change occasionally, and tier 3 could change categorizations often.
content: application/json: examples: 'All updates since the last successful complete unlimited records API call.': value: {"domain":"9b304c915a0514577e6e0dc6c4a362faf273aca3c9e883732bfba40942a4fc97","path":"/","scope":"domain","categories":[49],"confidence":0.70767,"tier":2} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'All updates since the last successful complete unlimited records API call.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /category/catch-up: post: summary: List of category records remapped tags: - Category description: | Return all category records whose categorization changed as a result of moving from one category mapping version to another. This is a one-time catch-up intended for customers migrating from an older mapping version to a newer one (for example, from mapping version `0` to mapping version `1`), so that historical records affected by the remapping can be refreshed in a single pass. This API emulates the `/category` endpoint and draws from the same quota, but instead of filtering by timestamp it returns every record whose categories overlap any category that was remapped between the requested `old_mapping` and `mapping`. The returned categories are remapped as-of `mapping`, exactly as the `/category` endpoint would return them for that mapping. For example, when migrating from version `0` to version `1`, all categories remapped in version `0` are collected, and every record containing any of those categories is returned with its categories remapped to version `1`. (More generally, migrating from version `N` to version `M` collects the categories remapped in versions `N` through `M - 1`.) For performance reasons, category IDs are returned from the API rather than textual category strings. Here are the mapping files for category IDs to category strings: [JSON](https://alphamountain.ai/api/am_mapping.json) | [CSV](https://alphamountain.ai/api/am_mapping.csv) | [HTML (with descriptions)](https://www.alphamountain.ai/categories/). This API is primarily intended for alphaMountain data partners and OEM customers. Each record is returned as an single line of JSON text to facilitate streaming large updates. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","version":1,"old_mapping":0,"mapping":1,"limit":0}' https://batch.alphamountain.ai/category/catch-up - lang: python source: | #!/usr/bin/env python import json import requests import sys version = 1 license = '' old_mapping = 0 mapping = 1 limit = 0 endpoint = 'https://batch.alphamountain.ai/category/catch-up' def print_updates(): headers = { 'Content-Type': 'application/json' } data = { 'version': version, 'license': license, 'old_mapping': old_mapping, 'mapping': mapping, 'limit': limit } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: for line in r.iter_lines(): print(line) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): print_updates() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain version: type: integer description: API version, this document describes version `1` limit: type: integer description: A limit on the number of records returned, or `0` for unlimited (default) old_mapping (optional): type: integer description: The category mapping version the caller is migrating from. Defaults to `0`. Categories remapped in versions `old_mapping` through `mapping - 1` determine which records are returned. mapping (optional): type: integer description: The category mapping version the caller is migrating to, and the mapping version applied to the returned category IDs. Defaults to the latest available mapping version, so the default request returns every record affected by the newest remapping. flags (optional): type: array description: Optional flags to exclude certain types of entries from the results. Possible values include "exclude-ip", "exclude-host", "exclude-path", "exclude-dead", and "exclude-tier". To return only FQDNs, use "exclude-ip" and "exclude-path". To return only IPs, use "exclude-host" and "exclude-path". To exclude any sites that no longer resolve, use "exclude-dead". To omit `tier` values and skip tier lookups, use "exclude-tier". Excluding tiers speeds up responses and reduces download size. examples: 'All records remapped when migrating from mapping version 0 to version 1.': value: {"license": "LICENSE-KEY", "version": 1, "old_mapping": 0, "mapping": 1, limit: 0} 'All records remapped up to the latest mapping version.': value: {"license": "LICENSE-KEY", "version": 1, limit: 0} responses: '200': description: | JSON keys:
domainA given internet hostname in hexadecimal sha256 format with 'aM-' prepended (ex `sha256('aM-google.com'`)
pathA path for the URL
scopeOne of `domain`, `host`, or `path`
categoriesAn array of alphaMountain Category IDs, remapped as-of `mapping`
confidenceAn internal model calculation for threshold cutoff. It is not to be interpreted as a probability. For example, a .5 confidence is not 50% probability. Only entries that pass deliberate accuracy cutoffs are included in the feed.
tierA number representing the likelihood of this categorization changing in the near term. Tier 1 is expected to change rarely (eg, google.com), tier 2 is expected to change occasionally, and tier 3 could change categorizations often.
content: application/json: examples: 'All records remapped when migrating from mapping version 0 to version 1.': value: {"domain":"29615853df2a6292387f80fcbb6560741870c96a16c467b50bd35fc1c1ac9b35","path":"/","scope":"path","categories":[91],"confidence":0.839,"tier":3} '401': description: |- Unauthorized or invalid license content: text/plain: examples: 'All records remapped when migrating from mapping version 0 to version 1.': value: Unauthorized '429': description: |- Quota exceeded, or rate limit reached content: text/plain: examples: 'All records remapped when migrating from mapping version 0 to version 1.': value: Quota exhausted '498': description: |- Expired or invalid API key content: text/plain: examples: 'All records remapped when migrating from mapping version 0 to version 1.': value: Expired API key servers: - url: 'https://batch.alphamountain.ai' servers: - url: 'https://batch.alphamountain.ai' /support/dispute: post: summary: Submit disputes for URIs in our database tags: - Support description: | Submit disputes for URIs in our database. This API is intended for use by alphaMountain's data partners. The only required fields are: `license`, `uri`, `type`, and `email`. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","uri":"","type":"FP","email":""}' https://api.alphamountain.ai/support/dispute - lang: python source: | import json import requests import sys license = '' uri = '' type = 'FP' email = '' endpoint = 'https://api.alphamountain.ai/support/dispute' def submit_dispute(): headers = { 'Content-Type': 'application/json' } data = { 'license': license, 'uri': uri, 'type': type, 'email': email } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: print(r.json()) else: print("{}: HTTP Error ({}): {}".format(endpoint, r.status_code, r.text)) def main(): submit_dispute() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: Required. A license key issued by alphaMountain uri: type: string format: uri description: Required. The URI that is being disputed type: type: string enum: ['FP', 'FN'] description: Required. The type of dispute FP or FN (False Positive or False Negative) email: type: string format: email description: Required. The email of the dispute scope (optional): type: string enum: ['domain', 'path'] description: The scope of the dispute risk_score (optional): type: number format: float minimum: 1 maximum: 10 description: The suggested risk score of the URI (1-10) categories (optional): type: array items: type: integer description: The suggested category/categories of the URI source (optional): type: string enum: ['internal', 'partner', 'customer'] description: The source of the dispute severity (optional): type: integer enum: [4, 3, 2, 1] description: The suggested severity of the dispute 1 through 4 (1 being most severe) notes (optional): type: string description: The notes of the dispute name (optional) : type: string description: The name of the dispute examples: 'google.com': value: {"license":"","uri":"","type":"FP","email":"", "categories": [62]} responses: '200': description: | JSON keys:
ticket_idThe ticket ID of the dispute
content: application/json: examples: 'google.com': value: {"ticket_id": 12345} '401': description: |- License not found content: application/json: examples: 'google.com': value: 'error': 'Unauthorized' '429': description: |- Quota exceeded, or rate limit reached content: application/json: examples: 'google.com': value: 'error': 'Quota exhausted' '498': description: |- Expired API key content: application/json: examples: 'google.com': value: 'error': 'Expired API key' '409': description: |- Duplicate dispute detected content: application/json: examples: 'google.com': value: 'error': 'Duplicate ticket' 'ticket_id': 12345 /support/dispute/status: post: summary: Fetch dispute status tags: - Support description: | Retrieve the status of each host in your dispute, looked up by the `ticket_id` returned from `/support/dispute`. A dispute that names several hosts returns one object per host, and each host has its own status. Possible `status` values:
receivedThe dispute has been recorded.
pending_auto_analysisWaiting for automated analysis.
pending_human_analysisWaiting for review by an analyst.
analysis_completedAnalysis is finished. The response includes the result and the classification comparison fields.
cloud_syncedThe results have been marked as synchronized to the cloud.
batch_downloadedAfter the cloud sync, the customer downloaded a category batch, and that download has been recorded.
The table lists statuses in their usual order. A host does not necessarily pass through every status. For example, a dispute can move straight from received to analysis_completed, and batch_downloaded is recorded only for licenses that download category batches. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":"","ticket_id":""}' https://api.alphamountain.ai/support/dispute/status - lang: python source: | import json import requests import sys license = '' ticket_id = '' endpoint = 'https://api.alphamountain.ai/support/dispute/status' def get_dispute_status(): headers = { 'Content-Type': 'application/json' } data = { 'license': license, 'ticket_id': ticket_id } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: print(r.json()) else: print("{}: HTTP Error ({}): {}".format(endpoint, r.status_code, r.text)) def main(): get_dispute_status() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: Required. A license key issued by alphaMountain ticket_id: type: integer description: Required. The ticket ID returned by /support/dispute. A numeric string is also accepted. examples: 'google.com': value: {"license":"","ticket_id":25022} responses: '200': description: | On success the response is a JSON array with one object per disputed host. Each object has these keys:
dispute_idThe ticket ID of the dispute. The request field is ticket_id; the response calls it dispute_id.
hostThe hostname or URI that was disputed
statusThe host's current status: received, pending_auto_analysis, pending_human_analysis, analysis_completed, cloud_synced or batch_downloaded
The following keys appear only when status is analysis_completed. They are not returned for cloud_synced or batch_downloaded:
resultchanged means the final categories or risk score differ from the initial ones. same means neither changed. error means the final classification could not be retrieved; in that case no other comparison keys are returned.
initial_categoriesThe category IDs at the time the dispute was received (may be null)
final_categoriesThe category IDs after analysis (may be null)
initial_securityThe risk score at the time the dispute was received (may be null)
final_securityThe risk score after analysis (may be null)
If no records match the ticket ID, the response is still HTTP 200, but the body is the JSON string "No dispute data found" instead of an array. content: application/json: schema: oneOf: - type: array items: type: object required: [dispute_id, host, status] properties: dispute_id: type: integer host: type: string status: type: string enum: [received, pending_auto_analysis, pending_human_analysis, analysis_completed, cloud_synced, batch_downloaded] result: type: string enum: [changed, same, error] description: Only when status is analysis_completed initial_categories: type: array nullable: true items: type: integer description: Only when status is analysis_completed and result is changed or same final_categories: type: array nullable: true items: type: integer description: Only when status is analysis_completed and result is changed or same initial_security: type: number format: float nullable: true description: Only when status is analysis_completed and result is changed or same final_security: type: number format: float nullable: true description: Only when status is analysis_completed and result is changed or same - type: string enum: ['No dispute data found'] examples: 'pending': value: [{"dispute_id": 25022, "host": "google.com", "status": "pending_human_analysis"}] 'analysis_completed': value: [{"dispute_id": 25022, "host": "example.com", "status": "analysis_completed", "result": "changed", "initial_categories": [62], "final_categories": [39], "initial_security": 5.5, "final_security": 1.85}] 'analysis_error': value: [{"dispute_id": 25022, "host": "example.com", "status": "analysis_completed", "result": "error"}] 'multiple_hosts': value: [{"dispute_id": 25023, "host": "example.com", "status": "cloud_synced"}, {"dispute_id": 25023, "host": "example.org", "status": "batch_downloaded"}] 'not_found': value: "No dispute data found" '400': description: |- Invalid request. A malformed body or a value error returns error as a string. A field validation failure returns error as a list of "field: message" strings. content: application/json: examples: 'validation': value: 'error': ['ticket_id: Input should be a valid integer, unable to parse string as an integer'] 'malformed': value: 'error': 'Invalid or malformed JSON in request body' '401': description: |- License not found content: application/json: examples: 'google.com': value: 'error': 'Unauthorized' '429': description: |- Quota exhausted, or rate limit reached content: application/json: examples: 'quota': value: 'error': 'Quota Exhausted' 'rate_limit': value: 'error': 'Too Many Requests' '498': description: |- Expired API key content: application/json: examples: 'google.com': value: 'error': 'Expired API Key' '500': description: |- Internal server error. The body uses message, not error. content: application/json: examples: 'google.com': value: 'message': 'Internal Server Error' /license/info: post: summary: Fetch detailed license and service information tags: - License description: | The license info endpoint provides comprehensive information about a license including all available services, current quotas, expiration dates, remaining API calls, and reset times. This information is useful for monitoring API usage, understanding service entitlements, and implementing usage-based logic in applications. x-codeSamples: - lang: cURL source: | curl -X POST -H 'Content-Type: application/json' -d '{"license":""}' https://api.alphamountain.ai/license/info - lang: python source: | #!/usr/bin/env python import json import requests import sys license = '' endpoint = 'https://api.alphamountain.ai/license/info' def get_license_info(): headers = { 'Content-Type': 'application/json' } data = { 'license': license } r = requests.post(endpoint, headers=headers, data=json.dumps(data)) if r.status_code == 200: j = r.json() print(json.dumps(j, indent=2)) else: print("HTTP Error ({}): {}".format(r.status_code, r.text)) def main(): get_license_info() return 0 sys.exit(main()) requestBody: content: application/json: schema: type: object properties: license: type: string description: A license key issued by alphaMountain flags (optional): type: array items: type: string description: | Optional flags to control the behavior of the license info request. - `include-expired` include expired licenses in the results (default behavior excludes expired licenses) Ex: To include expired licenses, use `["include-expired"]`. examples: 'license_info': value: {"license": "LICENSE-KEY"} 'license_info_with_expired': value: {"license": "LICENSE-KEY", "flags": ["include-expired"]} responses: '200': description: | JSON response containing service information for each available service:
serviceThe service name (e.g., "threat", "category", "batch/threat")
expiresLicense expiration date in ISO8601 format
quotaDaily or monthly quota limit for the service
periodQuota period - either "daily" or "monthly"
remainingNumber of remaining API calls for the current period
resetISO8601 timestamp when the quota will reset
data_checkpointLast updated timestamp for batch services (optional)
content: application/json: examples: 'license_info': value: threat: service: "threat" expires: "2024-12-31T00:00:00.000Z" quota: 10000 period: "daily" remaining: 8739 reset: "2024-01-02T06:01:00.000Z" category: service: "category" expires: "2024-12-31T00:00:00.000Z" quota: 10000 period: "daily" remaining: 8739 reset: "2024-01-02T06:01:00.000Z" "batch/threat": service: "batch/threat" expires: "2024-12-31T00:00:00.000Z" quota: 1000000 period: "monthly" remaining: 500000 reset: "2024-02-01T06:01:00.000Z" data_checkpoint: "2024-01-01T12:00:00.000Z" '400': description: |- Missing license content: application/json: examples: 'license_info': value: { "status": "Error", "error": "Couldn't validate request [0]" } servers: - url: 'https://api.alphamountain.ai' servers: - url: 'https://api.alphamountain.ai' tags: - name: Category description: Category related endpoints - name: Threat description: Threat related endpoints - name: Intelligence description: Intelligence API - name: License description: Get info on a specific license - name: Support description: Support related endpoints