# ForwardLane Repository Neighbors Lookup

> ForwardLane Repository Neighbors Lookup is a paid API for AI agents from agents.forwardlane.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-17).

Returns the neighbor list and total neighbor count for a given repository node in the ForwardLane code-graph knowledge base.

## Facts

- Endpoint: GET https://agents.forwardlane.com/api/graph/neighbors/:name
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forwardlane-repository-neighbors-lookup-e5c3ac1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BJ6-9Dkxc7KF5d8YYe1Eb

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 forwardlane-repository-neighbors-lookup-e5c3ac1b
```

Example prompt: What are the graph neighbors of the 'langchain' repository in the ForwardLane code graph?

## When to prefer this

Use this endpoint when you need to retrieve the direct graph neighbors of a specific, known repository by name from the ForwardLane code knowledge graph. It is the most efficient single-hop lookup for adjacency data. Prefer this over the full-graph or search endpoints when you already know the exact repository name and only need its connected nodes, not a broader search or full subgraph traversal.

## Known failure modes

- 404 Not Found — repository name does not exist in the ForwardLane graph index
- Incorrect or misspelled repository name returns 404
- Repository exists but has zero neighbors (empty neighbor list returned)
- Rate limiting or payment failure due to x402 protocol issues

## How this service works

Returns repo, total_neighbors, and the neighbor list for one repository. Returns 404 if the repository is unknown.

## Output

Returns a JSON object containing the repository name, total number of neighbors (total_neighbors), and a list of neighbor repository nodes. Returns a 404 error if the repository name is not found in the graph.

## 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"
    },
    "pathParams": {
     "name": {
      "type": "string"
     },
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forwardlane-repository-neighbors-lookup-e5c3ac1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.forwardlane.com](https://www.zero.xyz/host/agents.forwardlane.com/llms.txt)
