# Farcaster Social Graph Lookup

> Farcaster Social Graph Lookup is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the following list, follower count (floor), and mutual connections sample for a given Farcaster FID or username

## Facts

- Endpoint: GET https://payai.agentstools.dev/farcaster/graph
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farcaster-social-graph-lookup-8651c00d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VlojX_wwMVXEaxXEkfzRv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability farcaster-social-graph-lookup-8651c00d
```

Example prompt: Can you pull up the social graph for the Farcaster account with username 'vitalik.eth' — I want to see who they follow, their follower count, and any mutual connections?

## When to prefer this

Choose this endpoint when you need Farcaster-specific social graph data — following lists, follower counts, and mutual connections — for reputation scoring, network analysis, or onboarding flows in a decentralized social context. Prefer it over generic social API wrappers when you need structured, cost-efficient Farcaster graph slices without building your own Farcaster indexer integration. It is especially useful when you need mutual connection sampling, which generic follower-count APIs do not provide.

## Known failure modes

- Neither fid nor username provided — returns error requiring at least one identifier
- Invalid FID (non-positive integer) — validation error
- Unknown username or FID not found on Farcaster — 404 or empty result
- Payment not provided or insufficient — 402 Payment Required (x402 protocol)
- Rate limiting or upstream Farcaster API unavailability — 429 or 503 response

## How this service works

Farcaster social-graph slice for a fid or username: the following list with a count, the follower floor with a count, and a sample of mutual connections. Counts for large accounts are a floor with a capped flag. Social-graph context for reputation and network-analysis agents.

## Output

Returns a JSON object containing: the list of accounts the target user follows, a follower count (expressed as a floor for large accounts with a 'capped' boolean flag), and a sample of mutual connections between the queried account and others. Large accounts with very high follower counts return a floor value with capped=true rather than an exact count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "fid": {
       "type": "integer",
       "minimum": 1,
       "description": "Farcaster ID (FID), a positive integer"
      },
      "username": {
       "type": "string",
       "description": "Farcaster username (fname or ENS), without the at-sign"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farcaster-social-graph-lookup-8651c00d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
