DevTools

API请求构建器

在 Ali Hub DevTools 中使用 API请求构建器,并获得清晰的验证、结果、隐私说明和已记录限制。

仅当工具明确说明浏览器本地、带版本、限定范围、可清除且非敏感的数据时才使用存储。

安装此工具

将此工具添加到设备,以便快速访问。

API请求构建器

Build and inspect HTTP API requests online with methods, headers, parameters, and request body details. 简体中文 locale.

Make HTML structure easier to inspect

This tool helps you compose an HTTP request for an API and inspect its method, URL, headers, query parameters, and body. I...

Formatting is not HTML validation

An API request combines a method, target URL, headers, parameters, and optional body. The server interprets these parts ac...

How to format HTML

  1. Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...
  2. Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

Formatting method

  • Read markup structure

    The builder stores request components, encodes parameters as configured, and presents a request preview or transport form....

  • Apply indentation

    The builder stores request components, encodes parameters as configured, and presents a request preview or transport form....

  • Preserve content

    The builder stores request components, encodes parameters as configured, and presents a request preview or transport form....

Exact parser recovery, optional-tag handling, whitespace policy, embedded-language behavior, and error wording should be c...

Read the formatted result

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

常见错误

Common mistakes include putting secrets in query strings, sending JSON without the content type, mixing path and query par...

Common mistakes include putting secrets in query strings, sending JSON without the content type, mixing path and query par...

限制和特殊情况

The builder cannot guarantee server behavior, authorization, rate limits, CORS, TLS validation, proxy configuration, or si...

The builder cannot guarantee server behavior, authorization, rate limits, CORS, TLS validation, proxy configuration, or si...

Examples

API Request Builder online — 1

What does an API request builder do?

Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

API Request Builder online — 2

Which HTTP methods are supported?

Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

API Request Builder online — 3

Where do query parameters go?

Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

API Request Builder online — 4

How should I send JSON?

Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

API Request Builder online — 5

Are credentials stored safely?

Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

API Request Builder online — 6

Can it upload files?

Choose the HTTP method, enter the endpoint, add query or path values, set headers, and provide a body that matches the con...

A useful request view makes method, URL, headers, and body unambiguous. Check repeated parameters, header casing rules, JS...

Frequently asked questions

What does an API request builder do?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

Which HTTP methods are supported?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

Where do query parameters go?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

How should I send JSON?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

Are credentials stored safely?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

Can it upload files?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

Will a request change data?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

How do I debug a failed request?

Treat the builder as a request composition aid. Confirm the API contract, credentials, transport policy, and side effects ...

References