AboutCode To Purl API

The to_purl API from AboutCode — 1 operation(s) for to_purl.

GitHub OpenAPI

Operations 1

GET /api/to_purl/go/ To purl go list #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aboutcode:aboutcode-to-purl-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aboutcode-to-purl-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aboutcode To Purl API
  version: 7.1.0
  description: 'Operations tagged to_purl across 2 of this provider''s published API definitions: purldb-openapi.yml, aboutcode-purldb-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://public.purldb.io
tags:
- name: to_purl
paths:
  /api/to_purl/go/:
    get:
      operationId: to_purl_go_list
      description: 'Return a ``golang_purl`` PackageURL from a standard go import string or

        a go.mod string ``go_package``.


        For example:


        >>> get_golang_purl("github.com/gorilla/mux v1.8.1").to_string()

        ''pkg:golang/github.com/gorilla/mux@v1.8.1''

        >>> # This is an example of go.mod string `package version`

        >>> get_golang_purl("github.com/gorilla/mux").to_string()

        ''pkg:golang/github.com/gorilla/mux''

        >>> #This is an example a go import string `package`'
      parameters:
      - in: query
        name: go_package
        schema:
          type: string
        description: go import package
      tags:
      - to_purl
      security:
      - tokenAuth: []
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GoLangPurlResponse'
          description: ''
      summary: To purl go list
      x-summary-source: derived
components:
  schemas:
    GoLangPurlResponse:
      type: object
      properties:
        package_url:
          type: string
      required:
      - package_url
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"
x-refined-from:
- purldb-openapi.yml
- aboutcode-purldb-openapi.yml