# Sourcify — Get verified contract

Look up a verified Sourcify contract by chain ID and address via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Sourcify, configure supported query parameters and filters, and retrieve structured data including verified contract address, EVM chain identifier, overall reported match status, creation-bytecode match status, and runtime-bytecode match status for contract detail pages, and focused inspection.

Documentation: https://openany.si/market/apis/sourcify/sourcify-get-verified-contract/?offering=b1f1a1c2-4760-4c7a-8c9d-38e56490243a
API ID: b1f1a1c2-4760-4c7a-8c9d-38e56490243a
Provider: sourcify
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/sourcify/server/v2/contract/{chainId}/{address}
Page update time: 2026-12-03T02:49:10.547Z
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 / call
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:49:09.923Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Sourcify — Get verified contract 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": {
        "chainId": {
          "type": "string",
          "description": "The chainId number of the EVM chain",
          "minLength": 1,
          "maxLength": 20
        },
        "address": {
          "type": "string",
          "description": "Contract's 20 byte address in hex string with the 0x prefix. Case insensitive.",
          "minLength": 42,
          "maxLength": 42
        }
      },
      "required": [
        "chainId",
        "address"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "fields": {
          "type": "string",
          "description": "Comma-separated list of fields to include in the response. Can also be `all` to return every available field. See the endpoint description for the full list of available fields. `all` includes all source files and the full standard JSON input and output, so it is expensive. Do not use `all` in loops. Request only the fields that you need."
        },
        "omit": {
          "type": "string",
          "description": "Comma seperated fields to NOT include in the response. All fields except matching ones will be returned. Can't be used simultanously with `fields`. A short `omit` list returns almost every field, so it costs almost as much as `fields=all`. Do not use `omit` in loops. Use `fields` to request only what you need."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "address": {
      "type": "string"
    },
    "chainId": {
      "type": "string"
    },
    "creationMatch": {
      "type": "string"
    },
    "match": {
      "type": "string"
    },
    "matchId": {
      "type": "string"
    },
    "runtimeMatch": {
      "type": "string"
    },
    "verifiedAt": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/sourcify/server/v2/contract/1/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
  "chainId": "1",
  "creationMatch": "match",
  "match": "match",
  "matchId": "1605500",
  "runtimeMatch": "match",
  "verifiedAt": "2024-08-08T13:28:37Z"
}
```

## 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
- sourcify: https://openany.si/market/apis/sourcify/sourcify-get-verified-contract/?offering=b1f1a1c2-4760-4c7a-8c9d-38e56490243a

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