# Generic Extractor

Generic Extractor is a [Keboola component](https://help.keboola.com/overview/) that acts like a customizable
[HTTP REST](https://help.keboola.com/components/extractors/generic-extractor/tutorial/rest/) client. It can be configured to extract data
from virtually any sane web API.

Due to the versatility of different APIs running in the wild, Generic Extractor offers many [**configuration options**](https://help.keboola.com/components/extractors/generic-extractor/configuration/). 

You may opt to use the [**visual builder**](https://help.keboola.com/components/extractors/generic-extractor/configuration/#user-interface), which provides a very convenient way 
of configuring and testing the configuration. With it, you can build
an entirely new extractor for Keboola in **less than an hour**.

![Generic Extractor - UI](https://help.keboola.com/components/extractors/generic-extractor/ui.png)

To get started quickly, follow our [Generic Extractor tutorial](https://help.keboola.com/components/extractors/generic-extractor/tutorial).

## Generic Extractor requirements
Generic Extractor allows you to extract data from an API into Keboola only by configuring it.
No programming skills or additional tools are required. You just need to do two easy things before you start:

- Become familiar with [JSON format](https://help.keboola.com/components/extractors/generic-extractor/tutorial/json/).
- Have the documentation of your chosen API at hand. The API should be [RESTful](https://help.keboola.com/components/extractors/generic-extractor/tutorial/rest/)
and, more or less, follow the HTTP specification.

## Configuration & development
Again, if you are new to Generic Extractor, we strongly suggest you go through the
[Generic Extractor tutorial](https://help.keboola.com/components/extractors/generic-extractor/tutorial/). It outlines the basic principles and the most important features.

With the new convenient user interface, you can set up and test the connection in a few clicks, 
just like you are used to in some other popular API development tools. 

Features such as cURL import, request tests, output mapping generator, or dynamic function templates and evaluation make the configuration process as easy as ever.

If you intend to develop a more complicated configuration, check out how to [run Generic Extractor locally](https://help.keboola.com/components/extractors/generic-extractor/running/).
The documentation includes [several examples](https://github.com/keboola/generic-extractor/tree/master/doc) that [can also be run locally](https://help.keboola.com/components/extractors/generic-extractor/running/#running-examples).

## Publishing Generic Extractor configuration
Each Generic Extractor configuration can be [published](https://help.keboola.com/components/extractors/generic-extractor/publish/) as
a new standalone component. However, for registration, configurations must be
[converted to templates](https://help.keboola.com/components/extractors/generic-extractor/publish/#publishing).

Publishing your Generic Extractor configuration is **not required**. However, when published,
it can be easily used in multiple projects. A great advantage of using templates is that they
do not limit the configuration. You can always switch to JSON
[free-form configuration](https://help.keboola.com/components/extractors/generic-extractor/publish/#publishing) when necessary.

Also, templates can be used only with published components based on Generic Extractor configurations.

## Template mode
Generic Extractor is used as the base for many data source connectors. These components allow you to select pre-defined configurations
-- templates -- without the need to configure Generic Extractor manually.

![Generic Extractor - template](https://help.keboola.com/components/extractors/generic-extractor/generic-1.png)

The components can be heavily customized using the **Switch to JSON editor** button.
If you select the template and want to specify more details using the advanced mode, don't forget to click **Save** first.
The code will be pre-filled for you based on that template.

![Generic Extractor - template](https://help.keboola.com/components/extractors/generic-extractor/generic-2.png)

When finished editing, save the configuration. You can always switch back to the templates, but you'll lose your customizations.

## Generic Extractor source
As with other Keboola components, the Generic Extractor connector is available on
[GitHub](https://github.com/keboola/generic-extractor/). Apart from the
main repository, it uses some vital libraries (which partially define its capabilities):

- [Juicer](https://github.com/keboola/juicer) — component responsible for processing HTTP JSON responses
- [CSV Map](https://github.com/keboola/php-csvmap) — library that converts JSON data into CSV tables
- [Filter](https://github.com/keboola/php-filter) — library that allows to match values together
- [JSON Parser](https://github.com/keboola/php-jsonparser) — JSON parser which produces CSV tables while maintaining relations

---

**Next:** [Tutorial →](https://help.keboola.com/components/extractors/generic-extractor/tutorial/)
