Back to block reference

Notification

HTTP/API Request block

Calls an API with headers, authentication, and a request body, and uses the response as data.

Trustpilot (Imported)Status: draft
RunSavePreview Commands
process

HTTP/API Request

Call an API and use its response as data.

Configure Block: http-api-request

Set up the parameters for this http api request block.

ConfigurationGeneral

URL

https://api.example.com/products

Method

GET

Headers

Accept: application/json

Authentication

Configure if the endpoint requires it

Body

Provide a body when required by the endpoint
HTTP/API Request -> End (inspect response data)Save Configuration

Purpose

Use HTTP/API Request to bring API data into a workflow or send a request to a service without driving its website through browser clicks.

How it works

  • Sends a request to the configured API endpoint.
  • Supports request headers, authentication, and a body.
  • Makes the API response available as data for the workflow.

Configuration fields

FieldRequiredDefaultDescription
URLYes-The API endpoint to call, for example https://api.example.com/products.
MethodYes-The HTTP method required by the endpoint, such as GET for reading data or POST for submitting it.
HeadersNo-Headers required by the API, such as Accept and Content-Type.
AuthenticationNo-Credentials required by the endpoint. Use the authentication options available in the desktop app.
BodyNo-The payload to send when the endpoint expects a request body.

Output

The API response, available as workflow data.

Usage notes

  • Start with a simple read-only endpoint and inspect its response before adding it to a larger workflow.
  • Match the method, headers, authentication, and body to the API's documentation.
  • Check the response status and content: an error response is different from a successful response with no records.
  • Use Network/XHR Capture to inspect requests generated by the browser, and HTTP/API Request to send an explicitly configured request.
FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No monthly subscription, no code, and no per-row fees.

WindowsWindows 11macOSmacOS 12+Need help? [email protected]