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
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ SerpApi supports Google, Google Maps, Google Shopping, Baidu, Yandex, Yahoo, eBa
9
9
Query a vast range of data at scale, including web search results, flight schedules, stock market data, news headlines, and [more](https://serpapi.com).
10
10
11
11
## Features
12
+
*`markdown` → Return token-efficient Markdown output optimized for LLMs and AI agents
12
13
*`persistent` → Keep socket connection open to save on SSL handshake / reconnection (2x faster). [Search at scale](#Search-At-Scale)
13
14
*`async` → Support non-blocking job submission. [Search Asynchronous](#Search-Asynchronous)
14
15
* extensive documentation → easy to follow
@@ -42,6 +43,7 @@ pp results
42
43
```
43
44
44
45
This example runs a search for "coffee" on Google. It then returns the results as a regular Ruby Hash.
46
+
Use `client.markdown(q: "coffee")` to return the same search as a token-efficient Markdown string optimized for LLMs and AI agents.
45
47
See the [playground](https://serpapi.com/playground) to generate your own code.
46
48
47
49
The SerpApi key can be obtained from [serpapi.com/signup](https://serpapi.com/users/sign_up?plan=free).
@@ -95,6 +97,9 @@ params = {
95
97
# search results as a symbolized Hash (per performance)
96
98
results = client.search(params)
97
99
100
+
# search results as a token-efficient Markdown string for LLMs and AI agents
101
+
markdown = client.markdown(params)
102
+
98
103
# search results as a raw HTML string
99
104
raw_html = client.html(params)
100
105
```
@@ -287,6 +292,7 @@ Now we can retrieve the previous search results from the archive using the searc
Copy file name to clipboardExpand all lines: README.md.erb
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ SerpApi supports Google, Google Maps, Google Shopping, Baidu, Yandex, Yahoo, eBa
9
9
Query a vast range of data at scale, including web search results, flight schedules, stock market data, news headlines, and [more](https://serpapi.com).
10
10
11
11
## Features
12
+
* `markdown` → Return token-efficient Markdown output optimized for LLMs and AI agents
12
13
* `persistent` → Keep socket connection open to save on SSL handshake / reconnection (2x faster). [Search at scale](#Search-At-Scale)
13
14
* `async` → Support non-blocking job submission. [Search Asynchronous](#Search-Asynchronous)
14
15
* extensive documentation → easy to follow
@@ -42,6 +43,7 @@ pp results
42
43
```
43
44
44
45
This example runs a search for "coffee" on Google. It then returns the results as a regular Ruby Hash.
46
+
Use `client.markdown(q: "coffee")` to return the same search as a token-efficient Markdown string optimized for LLMs and AI agents.
45
47
See the [playground](https://serpapi.com/playground) to generate your own code.
46
48
47
49
The SerpApi key can be obtained from [serpapi.com/signup](https://serpapi.com/users/sign_up?plan=free).
@@ -95,6 +97,9 @@ params = {
95
97
# search results as a symbolized Hash (per performance)
96
98
results = client.search(params)
97
99
100
+
# search results as a token-efficient Markdown string for LLMs and AI agents
101
+
markdown = client.markdown(params)
102
+
98
103
# search results as a raw HTML string
99
104
raw_html = client.html(params)
100
105
```
@@ -287,6 +292,7 @@ Now we can retrieve the previous search results from the archive using the searc
0 commit comments