Skip to content
OSINTtools.io

MalShare API

Community malware repository, running since 2013, where researchers search, upload and download samples by hash with a free API key.

Base URL
https://malshare.com
Sign-in
API key
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from malshare.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

MalShare is a repository of malware samples. Its API, for registered users, lists sample hashes and sources from the past 24 hours, searches by hash, source or file name, and reports the account's daily request allocation.

Every call goes to api.php with an action query parameter and the key in api_key. The docs also describe JSON actions (getlist, getsources, details, hashlookup, type, gettypes, download_url and its status check), file download and sample upload; their response shapes are not documented, so only the raw-text actions are described here. Downloading a sample returns malware.

Quick start

  1. Get a key

    Create an account with MalShare and copy your api key. Where to get it

  2. Make your first request

    List hashes of samples seen in the past 24 hours, as raw text.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://malshare.com/api.php?action=getlistraw&api_key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    d41d8cd98f00b204e9800998ecf8427e
    0cc175b9c0f1b6a831c399e269772661

Authentication

Send your API key in the api_key query parameter of every request.

The API is for registered users.

Get a key from MalShare

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs as a number; the getlimit action returns the daily allocation and remaining requests.

Lists

  • Passive: the target is not contacted

Returns a plain text list of hashes.

curl 'https://malshare.com/api.php?action=getlistraw&api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
d41d8cd98f00b204e9800998ecf8427e
0cc175b9c0f1b6a831c399e269772661
  • Passive: the target is not contacted

Returns a plain text list of source URLs.

curl 'https://malshare.com/api.php?action=getsourcesraw&api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
http://malware.example.com/a.exe
http://malware.example.org/b.bin

Account

  • Passive: the target is not contacted

Returns raw data with the allocation and what remains.

curl 'https://malshare.com/api.php?action=getlimit&api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
LIMIT: 1000 REMAINING: 950