# CocoaPods pod API

Look up CocoaPods packages by name, Podfile line or URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as name, output, and retrieve structured data including pod name, latest source-reported version, declared platform minimums, declared dependencies, and statistics update timestamp for dependency inventory, and package review.

Documentation: https://openany.si/market/apis/cocoapods/cocoapods-pod-api/?offering=004dcb2c-916d-4583-8171-18e63438ba8b
API ID: 004dcb2c-916d-4583-8171-18e63438ba8b
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/cocoapods/v1/pod
Page update time: 2026-12-03T02:45:30.414Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:45:28.537Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CocoaPods pod API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Pod name (Alamofire), a Podfile line (pod 'Alamofire'), or a cocoapods.org link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "name"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "default_subspecs": {
      "type": "null"
    },
    "dependencies": {
      "type": "object",
      "properties": {}
    },
    "deprecated": {
      "type": "boolean"
    },
    "deprecated_in_favor_of": {
      "type": "null"
    },
    "description": {
      "type": "null"
    },
    "documentation_url": {
      "type": "string"
    },
    "first_published": {
      "type": "string"
    },
    "frameworks": {
      "type": "string"
    },
    "github": {
      "type": "object",
      "properties": {
        "contributors": {
          "type": "integer"
        },
        "forks": {
          "type": "integer"
        },
        "language": {
          "type": "string"
        },
        "open_issues": {
          "type": "integer"
        },
        "open_pull_requests": {
          "type": "integer"
        },
        "stars": {
          "type": "integer"
        },
        "updated_at": {
          "type": "string"
        },
        "watchers": {
          "type": "integer"
        }
      }
    },
    "homepage": {
      "type": "string"
    },
    "latest_published": {
      "type": "string"
    },
    "latest_version": {
      "type": "string"
    },
    "libraries": {
      "type": "null"
    },
    "license": {
      "type": "string"
    },
    "module_name": {
      "type": "null"
    },
    "name": {
      "type": "string"
    },
    "owners": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "since": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "platforms": {
      "type": "object",
      "properties": {
        "ios": {
          "type": "string"
        },
        "osx": {
          "type": "string"
        },
        "tvos": {
          "type": "string"
        },
        "visionos": {
          "type": "string"
        },
        "watchos": {
          "type": "string"
        }
      }
    },
    "quality": {
      "type": "object",
      "properties": {
        "dominant_language": {
          "type": "string"
        },
        "install_size_kb": {
          "type": "integer"
        },
        "lines_of_code": {
          "type": "integer"
        },
        "quality_estimate": {
          "type": "integer"
        },
        "spm_support": {
          "type": "boolean"
        },
        "test_expectations": {
          "type": "integer"
        },
        "total_files": {
          "type": "integer"
        },
        "updated_at": {
          "type": "string"
        }
      }
    },
    "requires_arc": {
      "type": "null"
    },
    "social_media_url": {
      "type": "null"
    },
    "source": {
      "type": "object",
      "properties": {
        "git": {
          "type": "string"
        },
        "tag": {
          "type": "string"
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "apps_total": {
          "type": "integer"
        },
        "downloads_total": {
          "type": "integer"
        },
        "extensions_total": {
          "type": "integer"
        },
        "pod_try_total": {
          "type": "integer"
        },
        "stats_updated_at": {
          "type": "string"
        },
        "tests_total": {
          "type": "integer"
        },
        "watch_apps_total": {
          "type": "integer"
        }
      }
    },
    "subspecs": {
      "type": "array",
      "items": {}
    },
    "summary": {
      "type": "string"
    },
    "swift_versions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "url": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "version_count": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/cocoapods/v1/pod?name=Alamofire&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "authors": [
    {
      "name": "Alamofire Software Foundation"
    }
  ],
  "cached": false,
  "credits_used": 1,
  "default_subspecs": null,
  "dependencies": {},
  "deprecated": false,
  "deprecated_in_favor_of": null,
  "description": null,
  "documentation_url": "https://alamofire.github.io/Alamofire/",
  "first_published": "2015-01-09T22:10:57Z",
  "frameworks": "CFNetwork",
  "github": {
    "contributors": 145,
    "forks": 4412,
    "language": "Swift",
    "open_issues": 30,
    "open_pull_requests": 5,
    "stars": 25398,
    "updated_at": "2017-10-05T17:36:45Z",
    "watchers": 1068
  },
  "homepage": "https://github.com/Alamofire/Alamofire",
  "latest_published": "2026-09-10T01:47:20Z",
  "latest_version": "5.12.2",
  "libraries": null,
  "license": "MIT",
  "module_name": null,
  "name": "Alamofire",
  "owners": [
    {
      "name": "Christian Noon",
      "since": "2015-04-09T15:37:34Z"
    },
    {
      "name": "Kevin Harwood",
      "since": "2014-05-20T17:31:32Z"
    },
    "… 1 more"
  ],
  "platforms": {
    "ios": "10.0",
    "osx": "10.12",
    "tvos": "10.0",
    "visionos": "1.0",
    "watchos": "3.0"
  },
  "quality": {
    "dominant_language": "Swift",
    "install_size_kb": 344,
    "lines_of_code": 3907,
    "quality_estimate": 142,
    "spm_support": true,
    "test_expectations": 4341,
    "total_files": 17,
    "updated_at": "2023-05-10T16:02:58Z"
  },
  "requires_arc": null,
  "social_media_url": null,
  "source": {
    "git": "https://github.com/Alamofire/Alamofire.git",
    "tag": "5.12.2"
  },
  "stats": {
    "apps_total": 662839,
    "downloads_total": 42097177,
    "extensions_total": 9181,
    "pod_try_total": 1969,
    "stats_updated_at": "2018-12-09T09:15:55Z",
    "tests_total": 53933,
    "watch_apps_total": 147
  },
  "subspecs": [],
  "summary": "Elegant HTTP Networking in Swift",
  "swift_versions": [
    "5"
  ],
  "url": "https://cocoapods.org/pods/Alamofire",
  "version": "5.12.2",
  "version_count": 101
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/cocoapods/cocoapods-pod-api/?offering=004dcb2c-916d-4583-8171-18e63438ba8b

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
