Nimble API Basics

Which API is right for me?

Nimble APIs includes four different APIs - but knowing which one is right for you is easy!

Web API

Stream Public Web Data from Any URL.

Includes powerful tools such as page interactions, parsing templates, Internal API Network Capture, and more.

SERP API

Seamlessly scrape search engine data.

Specialized for SERPs including Google, Bing, and Yandex, and includes granular localization tools.

Maps API

Capture fresh & rich business data from Maps engines.

Discover businesses in any geographic area, collect in-depth public data about each one, and gather user-generated reviews.

E-commerce API

Gather product data from major E-commerce marketplaces.

Find and collect clean, accurate product data from marketplaces such as Amazon, Walmart, Google Shopping, and more.

If you're not sure which API is right for you, we recommend starting with the Web API. However, if your use case fits in one of our specialized APIs, we encourage you to explore those as well for more tailored solutions to meet your specific needs.

Setting Up An API Pipeline

By default, you account will come with an out-of-the-box API pipeline. If you prefer to keep things simple, feel free to skip this step and just use that pipeline. However, as your usage expands, pipelines will become more and more useful in organizing, compartmentalizing, and tracking your activity.

To create a new pipeline, follow these steps:

  1. Log in to the User Dashboard.

  2. Go to the "Pipelines" page.

  3. Click "+ Add Pipeline" on the right side of the page.

  4. Enter a name for the pipeline, and select "Nimble API" as the pipeline type in order to use it for data requests, then click "Next".

Your new pipeline is ready to go! On the completion screen you'll receive the pipeline username, password, authentication token, and a "Hello World" request example.

You can always get the pipeline's details again in the pipeline overview page.

Sending Your First Data Request

If you followed along with the previous step, you can copy the "Hello World" example from the pipeline creation confirmation and skip straight ahead to executing your request.

Using the Playground Query Builder

The easiest way to get started with Nimble APIs is to head to the Playground. The Playground features an interactive query builder that can help you learn how to write API requests, and even execute and display the results.

To visit the Playground:

  1. Log in to the User Dashboard.

  2. Click on "Playground" on the left hand side.

At the top of the page, you'll be able to select which Nimble product you'd like to try. By default, Nimble API will already be open.

Next, select the relevant API. If you're not sure which API you need, see "Which API is right for me?" at the top of this page.

On the left hand side, you'll see the parameters and options you can configure, such as the pipeline to use, the URL from which to collect data, Javascript page rendering, parsing, and more. As you make changes, the query builder on the right will automatically highlight and update your sample query in keeping with your changes.

For your first request, we recommend enabling "Page Render" and "Parse". This will execute javascript on the page, ensuring it's fully rendered, and parse the results into a readable format.

Once you've configured your request, click "Run Request" on the bottom right. After a few moments, the page you requested will appear on the bottom left, and the result data on the right.

Congratulations! You just ran your first request.

You can also copy the sample request code that the playground constructed and execute it in your terminal or application.

Sending A Basic cURL request

Sending Nimble API requests is straightforward. Let’s break down a basic cURL request:


curl -X POST '<https://api.webit.live/api/v1/realtime/web>' \\
    -H 'Authorization: Basic <Base64 Token>' \\
    -H 'Content-Type: application/json' \\
--data-raw '{ 
    "url": "<https://www.google.com/search?q=hello> world", 
    "render": false, 
    "parse": false,
    "country": "ALL", 
    "locale": "en"
}'
  • <credential string> - Replace this with your API Pipeline's Base64 Token.

  • url - The target URL you'd like to collect.

  • country - The origin country from which to send the request.

  • render - Execute JS on the requested webpage.

  • parse - Structures the HTML into a machine-readable JSON format.

Next Steps

Nimble's APIs are rich with features! To take your data collection to the next level, we recommend checking out the following resources:

Last updated