Skip to main content
POST
/
api
/
golang
/
packages
/
importers
/golang/packages/importers
curl --request POST \
  --url https://api.anysite.io/api/golang/packages/importers \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "package": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "import_path": "<string>",
    "@type": "GolangImporter",
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
package
string
required

Go import path (e.g. 'github.com/gorilla/mux') or a pkg.go.dev URL

Minimum string length: 1
Examples:

"github.com/gorilla/mux"

"golang.org/x/net"

count
integer
required

Number of importing packages to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

import_path
string
required
@type
string
default:GolangImporter
web_url
string
default:""