Skip to content
FunCoding

Agent access

Use OpenAPI to search resources and read install details and docs.

OpenAPI 3.1Open the spec

Connect your programs.

Search resources and read install details and docs in your programs.

Import the OpenAPI spec

https://funcoding.ai/openapi.json

Base URL
https://funcoding.ai

Reading doc Markdown needs no authorization. Other endpoints require an API key.

Request example

GET/api/cli/search?q=pdf&limit=3

Pass your key in the X-API-Key header.

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/search?q=pdf&limit=3"
Response format
application/json (SearchResult)
Returns:
Two groups of cards: skills and mcp.

Authentication

Reading doc Markdown needs no authorization. Other endpoints require an API key.

  1. Create an API key

    Sign in and create a key on the API keys page in your account. Keys start with fc_ and are shown in full only once, when created.

  2. Pass the API key in a request header

    Pass the key in X-API-Key, or use Authorization: Bearer followed by the key. Keep keys out of web pages and public repos.

Request example

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/search?q=pdf&limit=3"

Endpoints

All endpoints use GET. Successful responses are JSON, except full docs, which return Markdown.

Skills and MCP

GET/api/cli/search

Search Skills and MCP servers

Matches names and descriptions. Exact name matches come first, then by stars. Only listed entries are returned.

ParameterBreadcrumbDescription
q*QuerySearch term, up to 100 characters
limitQueryNumber of results, 1–30, default 10

* Required

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/search?q=pdf&limit=3"

Returns: Two groups of cards: skills and mcp.400 401 429

GET/api/cli/skills/{owner}/{repo}/{skill}

Get a Skill’s install details

Returns the file list, download URL prefix and full SKILL.md. Each file’s URL is rawBase plus its relative path, served from GitHub.

ParameterBreadcrumbDescription
owner*PathGitHub user or organization
repo*PathRepository name
skill*PathSkill name

* Required

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/skills/anthropics/skills/pdf"

Returns: Everything needed to install; content is the full SKILL.md.400 401 404 429 502

GET/api/cli/mcp/{owner}/{repo}

Get an MCP server’s launch options

Lists remote URLs and local launch commands (npx or uvx), plus the headers and environment variables you need to provide. When a repo has several servers, add the subdirectory name to the end of the path.

ParameterBreadcrumbDescription
owner*PathGitHub user or organization
repo*PathRepository name

* Required

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/mcp/microsoft/playwright-mcp"

Returns: An empty launches list means no ready-to-use launch option is registered; check the repo.400 401 404 429

Docs

GET/api/cli/docs/search

Search site docs

Search the site’s agent docs by keyword.

ParameterBreadcrumbDescription
q*QuerySearch term, up to 100 characters
agentQueryLimit to one agent, e.g. claude-code
limitQueryNumber of results, 1–30, default 10

* Required

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/docs/search?q=hooks&agent=claude-code"

Returns: A list of docs; use id to read the full text.400 401 429

GET/api/cli/docs/{agent}/{path}No key needed

Read a doc

The Markdown source, starting with the URL, verification date and official sources. Site links are absolute. path can span several levels; without it you get the agent’s overview.

ParameterBreadcrumbDescription
agent*PathAgent, e.g. claude-code
path*PathDoc path, e.g. build/skills
langQueryPass en for the English version; falls back to Chinese

* Required

curl "https://funcoding.ai/api/cli/docs/claude-code/build/skills"

Returns: Markdown text.404 429

Lists

GET/api/cli/lists/{shareId}

Get a shared list

A list of Skills and MCP servers a user shared publicly, with only entries still listed. shareId is the last segment of the share link /share/<shareId>/.

ParameterBreadcrumbDescription
shareId*PathThe 10-character id from the share link

* Required

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/lists/{shareId}"

Returns: The list title, its owner and two groups of cards.401 404 429

News

GET/api/cli/news

Get the AI news ranking or daily digest

Without daily, returns the current ranking; with daily, that day’s AI digest. Data comes from AIHOT; keep the source name and original link when you display it.

ParameterBreadcrumbDescription
limitQueryNumber of results, 1–10, default 10
dailyQuerylatest for the newest issue, or YYYY-MM-DD

* Required

curl -H "X-API-Key: $FUNCODING_API_KEY" \
  "https://funcoding.ai/api/cli/news?limit=5"

Returns: Ranking entries and attribution; see /openapi.json for the digest format.401 404 429

Rate limits

Limits apply per account, shared by all API keys and funcoding-cli sign-ins.

Per account, per minute
60
Per account, per day (resets at 08:00 Beijing time)
3000
Per IP, per minute (including endpoints without a key)
120

X-RateLimit-Remaining and X-RateLimit-Daily-Remaining show what’s left this minute and today. Over the limit, you get a 429 with Retry-After in seconds.

Errors

Errors return a status code and { "error": "…" }

400
Invalid request parameters. See the error field for details.
401
No API key was provided, or the key has been deleted.
404
Not found
429
Request limit exceeded. Wait the number of seconds in Retry-After before retrying.
502
Could not read GitHub content. Try again later.