# pub.dev Package Lookup

> pub.dev Package Lookup is a paid API for AI agents from flutter.bip-rep.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Looks up a pub.dev package by name and returns its latest version, URL, and existence status

## Facts

- Endpoint: GET https://flutter.bip-rep.com/pub/lookup
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pub-dev-package-lookup-320ce7f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_012IYblvK-96ZswKa104Q

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 pub-dev-package-lookup-320ce7f6
```

Example prompt: Can you look up the provider package on pub.dev and tell me the latest version and its URL?

## When to prefer this

Use this endpoint when you need to programmatically check whether a Flutter or Dart package exists on pub.dev and retrieve its latest published version. Prefer this over scraping pub.dev directly or parsing pubspec.yaml files when you only need quick package existence and version metadata.

## Known failure modes

- Package not found: returns found=false with no version or URL
- Missing required 'package' query parameter: 400 Bad Request
- pub.dev upstream unavailable: 502 or timeout error
- Invalid package name format: may return not-found or error

## How this service works

Flutter and Dart utility API for mobile agents and operators: pubspec parsing, pub.dev package lookups, Flutter APK detection, dependency checks, Dart formatting, project static analysis, ARB localization validation, and controlled APK builds from uploaded project ZIPs. URL downloads enforce SSRF protections. ZIP uploads enforce size and zip-bomb limits.

## Output

Returns a JSON object with the package name, whether it was found on pub.dev, its latest version string, the pub.dev URL for the package, and the latency of the lookup in milliseconds.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "package": "provider"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "pub.dev package name"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "found": {
       "type": "boolean"
      },
      "latency_ms": {
       "type": "integer"
      },
      "latest_version": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pub-dev-package-lookup-320ce7f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flutter.bip-rep.com](https://www.zero.xyz/host/flutter.bip-rep.com/llms.txt)
