You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 534fd28
Browse filesBrowse the repository at this point in the historyBrowse files
The Context Dev Go library provides convenient access to the [Context Dev REST API](https://docs.context.dev/)
10
-
from applications written in Go.
9
+
Context.dev is a web scraping API for AI agents and LLMs. This SDK turns any URL into clean, LLM-ready markdown, crawls whole sites, searches the web, takes screenshots and extracts structured JSON against a schema you define, all with one API key. Proxies, JavaScript rendering and anti-bot handling run on Context.dev's side, so there is no headless browser to host.
11
10
12
-
It is generated with [Stainless](https://www.stainless.com/).
11
+
The REST API documentation can be found on [docs.context.dev](https://docs.context.dev/).
13
12
14
13
## Installation
15
14
@@ -39,6 +38,10 @@ This library requires Go 1.22+.
39
38
40
39
## Usage
41
40
41
+
Set `CONTEXT_DEV_API_KEY` to your API key; the client reads it automatically.
42
+
43
+
### Scrape markdown and HTML
44
+
42
45
The full API of this library can be found in [api.md](api.md).
| Scrape a URL to markdown, HTML, JSON, highlights or a screenshot |`client.Web.Scrape`|
178
+
| Crawl a site and get every page as markdown |`client.Web.WebCrawlMd`|
179
+
| Map every URL on a domain |`client.Web.MapURLs`|
180
+
| Search the web |`client.Web.Search`|
181
+
| Take a screenshot of a page |`client.Web.Screenshot`|
182
+
| Parse PDFs and documents |`client.Parse.Handle`|
183
+
| Run thousands of URLs as a batch |`client.Batch.Submit`|
184
+
| Watch a page for changes |`client.Monitors.New`|
185
+
| Look up a company's logo, colors and brand data |`client.Brand.Get`|
186
+
187
+
## Use it from an AI agent
188
+
189
+
Context.dev also ships as a plugin for [Claude](https://github.com/context-dot-dev/claude-plugin), [Cursor](https://github.com/context-dot-dev/cursor-plugin) and [Gemini CLI](https://github.com/context-dot-dev/gemini-cli-context), and as tools for [LangChain](https://github.com/context-dot-dev/langchain-context) and [Haystack](https://github.com/context-dot-dev/context-haystack).
190
+
72
191
### Request fields
73
192
74
193
The contextdev library uses the [`omitzero`](https://tip.golang.org/doc/go1.24#encodingjsonpkgencodingjson)
0 commit comments