# Osintgraph

> Python tool that collects an Instagram account's network and posts into Neo4j for graph analysis, with an optional AI agent.

Source: https://osinttools.io/tools/osintgraph/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Username
- **Category:** Social media intelligence
- **Pricing:** Open source (Free and open source (GPL-3.0).)
- **Footprint:** active (contacts the target or the services it checks)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Python CLI · Neo4j
- **Website:** https://github.com/XD-MHLOO/Osintgraph
- **GitHub:** XD-MHLOO/Osintgraph, 983 stars · Python · GPL-3.0 · last commit 2026-05-10
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

Osintgraph gathers public Instagram data for a target account, including profile, followers, followees, posts, comments and likes, and stores it in a Neo4j graph. Investigators can then explore relationships visually in Neo4j or ask questions in natural language through a Gemini-powered agent.

It is used to map a target's social circle, find close connections from comment and like activity, and spot shared interests and affiliations. It needs an Instagram session and a Neo4j database; the Gemini API key is optional.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. An account is needed for full results. There is no public API.

## Features

- Followers, followees, posts, comments and likes collection
- Neo4j graph storage and visualisation
- Natural-language AI agent (Gemini)
- AI pre-analysis of posts and accounts
- Defined graph data model

## Pros

- Turns an Instagram network into a queryable graph
- Relationship traversal reveals close contacts
- Installable from PyPI
- Actively maintained

## Cons

- Needs an Instagram session; the account can be restricted for scraping
- Breaks when Instagram changes its internal endpoints
- Connections are inferences; verify them and respect privacy law when profiling individuals

## When to use it

- Use it when you need to map who interacts most with an Instagram account in an authorised investigation.
- Use it when you want to query a social network graph rather than scroll through follower lists.

## Quick start

Terminal · Python:

```
pipx install osintgraph
osintgraph setup
```

## Alternatives

- [Sherlock](https://osinttools.io/tools/sherlock/): Command-line tool that checks hundreds of websites for an account with a given username. (Open source · Username · active · 116,927 GitHub stars)
- [GoSearch](https://osinttools.io/tools/gosearch/): Go username checker that searches hundreds of sites and can query breach data sources for the same handle. (Open source · Username · active · 3,924 GitHub stars)
- [Instaloader](https://osinttools.io/tools/instaloader/): Python tool and library that downloads Instagram posts, stories, captions, comments and profile metadata. (Open source · Username · active · 14,001 GitHub stars)
- [Linkook](https://osinttools.io/tools/linkook/): Finds social accounts for a username, then follows links between profiles to related accounts and emails. (Open source · Username · active · 1,040 GitHub stars)
- [Maigret](https://osinttools.io/tools/maigret/): Username search tool, forked from Sherlock, that checks thousands of sites and parses profile pages for extra identifiers. (Open source · Username · active · 41,237 GitHub stars)
- [Namechk](https://osinttools.io/tools/namechk/): Web tool that checks whether a username is taken on social platforms and whether matching domain names are free. (Free · Username · active)

All alternatives to Osintgraph in one table: https://osinttools.io/tools/osintgraph/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
