# Search

Blocks for web searching, content extraction, and information retrieval from various search engines and APIs.

## Get Wikipedia Summary

### What it is

This block fetches the summary of a given topic from Wikipedia.

### How it works

The block sends a request to Wikipedia's API with the provided topic. It then extracts the summary from the response and returns it. If there's an error during this process, it will return an error message instead.

### Inputs

| Input | Description                        | Type | Required |
| ----- | ---------------------------------- | ---- | -------- |
| topic | The topic to fetch the summary for | str  | Yes      |

### Outputs

| Output  | Description                                      | Type |
| ------- | ------------------------------------------------ | ---- |
| error   | Error message if the summary cannot be retrieved | str  |
| summary | The summary of the given topic                   | str  |

### Possible use case

A student researching for a project could use this block to quickly get overviews of various topics, helping them decide which areas to focus on for more in-depth study.

***

## Google Maps Search

### What it is

This block searches for local businesses using Google Maps API.

### How it works

This block uses the Google Maps Places API to search for businesses and locations based on a query. Configure radius (up to 50km) to limit the search area and max\_results (up to 60) to control how many places are returned.

Each place result includes name, address, rating, reviews, and geographic coordinates for integration with mapping or navigation workflows.

### Inputs

| Input        | Description                                  | Type | Required |
| ------------ | -------------------------------------------- | ---- | -------- |
| query        | Search query for local businesses            | str  | Yes      |
| radius       | Search radius in meters (max 50000)          | int  | No       |
| max\_results | Maximum number of results to return (max 60) | int  | No       |

### Outputs

| Output | Description                           | Type  |
| ------ | ------------------------------------- | ----- |
| error  | Error message if the operation failed | str   |
| place  | Place found                           | Place |

### Possible use case

**Lead Generation**: Find businesses in a specific area for sales outreach.

**Competitive Analysis**: Search for competitors in target locations to analyze their presence and ratings.

**Local SEO**: Gather data on local businesses for market research or directory building.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/search-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
