📣 Requestly – Modern git-based API Client. No login required. Switch from Postman in 1 click. Try now ->

Replace String

Dynamically replace web strings, simplify testing

Switch Hosts

Redirect API Calls for Testing

Seamlessly Switch API Environments​

Test New API Versions Without Code Changes

Download Now
Documentation ->
4.5 ⭐  1700+ Ratings, 300,000+  developers
Redirect URLs

Trusted by 300,000+ developers from Fortune 500 companies.

Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at…

Your Development Companion

Gain comprehensive control over APIs for testing, switching environments and accelerating your development.

Replace Multiple parts of a URL

With pinpoint accuracy, target and replace multiple URL components – hostname, path segments, query parameters, and more – for granular control over your requests.
Download Now
modify and mock graphql, apis replace ulr

Supports APIs triggered as XHR or fetch

Gain control over API responses triggered by XHR/Fetch requests. switch between staging, and production without touching your codebase,
Download Now

GraphQL Support

Test Staging GraphQL APIs with Production frontend, making sure all the operations are working properly.
Download Now

Match URLs using Regex

Use regular expressions to achieve intricate URL pattern matching without the need for overly complex, indirect approaches. This grants you granular control over your URL replacements in a more streamlined manner.
modify request body | match urls using regex

Collaboration & 1-Click Sharing

Promote consistency and accelerate development by sharing Requestly rules within your team.
collaboration 1 click sharing

Built for teams

Effortless team collaboration

Share instantly, sync effortlessly, and collaborate effectively with your team in dedicated workspaces.

Quick One time sharing

Instantly generate and share a link to your rules and more

Team workspaces

Collaborate easily with teammates in a shared workspace.

Export data & sync to Git

Easily version-control your configs by exporting and syncing

Secure and private

Enterprise-ready security and compliance

Requestly ensures top-tier security with SOC-II compliance, SSO integration, and role-based access control. We protect your data and secure your workflows, making us the ideal choice for enterprises.
Requestly security and compliance

SOC-II Compliance

Adheres to rigorous security standards for data protection and privacy.

Single Sign-On (SSO)

Simplifies user access with secure, centralized authentication.

Role-based access control

Ensures precise control over user permissions and data access.

Data encryption

Protects your data in transit and at rest with advanced encryption protocols.

Audit logs

Tracks and records user actions and system events, giving you complete visibility.

Regular security updates

Keeps your environment secure with timely updates and patches.
Customers love us

Loved by developers around the World

Developers around the world trust us to simplify debugging, speed up workflows, and make development more efficient.

Frequently Asked Questions​

There are frequently asked questions related to Requestly

What does the Replace Rule do in Requestly?

The Replace Rule lets you find and replace specific text in network responses directly in the browser. This helps you modify API responses, HTML, JavaScript, CSS, or other text-based resources without changing the actual server response.

What kind of content can I modify using the Replace Rule?

You can replace text in API responses, HTML pages, JavaScript files, CSS files, JSON responses, and other text-based resources. As long as the response contains searchable text, you can modify it during interception.

Is Requestly open-source

Is the Replace Rule available in the free plan?

Yes, the Replace Rule is available in Requestly’s free plan, allowing you to intercept and modify responses without requiring a paid subscription.

Do I need a paid plan to create multiple Replace rules?

No, you can create and use Replace rules on the free plan. Paid plans mainly unlock collaboration, syncing, and advanced team workflows.

Is Requestly free for students?

Yes! Requestly is free for students, enjoy access to powerful tools and features with no cost.

Why is my text not getting replaced?

The response content may not exactly match your search text, or the response may be compressed, cached, or dynamically generated. Inspect the actual network response in browser DevTools and verify the exact text being returned.

Why Aren’t My Requestly Rules Working?

How do I replace an API response value using Requestly?

Create a Replace Rule, add the API endpoint in the source condition, enter the text you want to find, provide the replacement value, save the rule, and refresh your application. Matching responses will now return the modified value.

How do I replace environment URLs in JavaScript files?

Target the JavaScript file URL, search for the existing API base URL or environment string, replace it with your desired value, and reload the application to test the new environment.

How do I replace multiple values in the same response?

Add multiple find-and-replace pairs inside a single Replace Rule. Requestly will process all configured replacements on matching responses.