docs.gl APIdocs.gl ↗
Access OpenGL and GLES function documentation, signatures, parameters, version support, and categories via 5 structured endpoints backed by docs.gl.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/ac3fb051-6c34-4db6-8696-b3b4482a392d/get_function_list' \ -H 'X-API-Key: $PARSE_API_KEY'
Get a list of all OpenGL/GLES functions and their supported versions. Returns every function known to docs.gl with the version strings each appears in.
No input parameters required.
{
"type": "object",
"fields": {
"data": "array of objects, each with 'name' (string) and 'versions' (array of version strings like 'gl2.1', 'gl4.5', 'es3.0')",
"status": "string, always 'success'"
},
"sample": {
"data": [
{
"name": "glAccum",
"versions": [
"gl2.1",
"gl3.0",
"gl3.1"
]
},
{
"name": "glActiveTexture",
"versions": [
"gl2.1",
"gl3.0",
"gl3.1"
]
}
],
"status": "success"
}
}About the docs.gl API
The docs.gl API exposes OpenGL and GLES reference documentation across 5 endpoints, returning function signatures, parameter descriptions, error conditions, version availability, and sidebar category groupings. The get_function_detail endpoint delivers the full documentation record for any named function — including its title, signature, parameters, notes, and see-also links — under a specific version context such as gl4, es3, or gl2.
Function Coverage and Version Filtering
The get_function_list endpoint returns every function known to docs.gl as an array of objects, each carrying a name and a versions array containing strings like gl2.1, gl4.5, or es3.0. If you need only the functions available in a particular generation of the API, get_function_list_by_version accepts a version prefix (gl2, gl3, gl4, es2, es3) and returns a sorted array of matching function names. The prefix match covers all sub-versions beneath it — supplying gl4 returns functions from gl4.0 through gl4.5.
Detailed Function Documentation
get_function_detail is the core lookup endpoint. Supply a function_name (e.g. glDrawArrays, glBindTexture) and an optional version context, and the response object includes name, version, url, title, signature, a parameters array (each entry has name and description), description, notes, errors, examples, version support details, and see_also links. Not every function exists under every version prefix — legacy GL2-only functions like glLightfv are absent from gl4 pages — so the version parameter should match where the function actually lives.
Search and Category Navigation
search_functions performs a case-insensitive substring match against function names across all versions and returns objects containing name, a specific version string (e.g. gl4.5), and a path URL segment. This is useful for partial-name lookups when the exact function name is uncertain. get_functions_by_category returns the full sidebar taxonomy as an array of objects, each with a category string (e.g. Textures, Rendering, Frame Buffers) and a functions array whose entries carry name, href, and versions. This mirrors the organizational structure used in the docs.gl navigation.
- Build an IDE extension that surfaces OpenGL function signatures and parameter docs inline as developers type.
- Generate version-specific cheat sheets by querying get_function_list_by_version for gl4 or es3 and formatting the sorted output.
- Populate autocomplete in a graphics shader editor using search_functions substring matches against partial function names.
- Create a diff view of which functions were added between OpenGL versions by comparing get_function_list_by_version results for gl3 and gl4.
- Organize a learning resource by iterating get_functions_by_category to group functions under Textures, Rendering, and Frame Buffers headings.
- Validate that a function exists in a target OpenGL ES version before shipping mobile graphics code, using the versions array from get_function_detail.
- Build a static documentation mirror or offline reference tool by bulk-fetching get_function_detail for every function in get_function_list.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.