# Testing Your APIs & Products

To enable easy testing for yourself and for your users, we recommend creating a Free product with this config:

* Price: $0/month
* API Calls: 100
* Limit Type: HARD

<figure><img src="/files/xPmSgu3hrExMjG79Cma1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can sign in using any email on your API store.&#x20;
{% endhint %}

To test your product follow these steps:

1. Login to your API Store User Portal
2. Click on Products from the Sidebar.
3. Subscribe to the "FREE" product.
4. From the list of Endpoints, copy the endpoint you want to call.
5. Create an API Key by going to the API Keys page from the left sidebar and copy the api key.
6. To send a request you need to pass the API key in the header as explained below:

**Example:**

For an endpoint that looks like this, you can send a POST request using any of the methods described below:

<figure><img src="/files/JRJQkrhVYruqWg6o2ekd" alt=""><figcaption></figcaption></figure>

#### Shell

```sh
curl --location 'https://api.magicapi.com/api/v1/pipfeed/free_no_card/extract' \
--header 'x-magicapi-key: your-api-key' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://www.nytimes.com/2023/07/05/world/europe/russia-ukraine-prisoner-interview.html"
}'
```

#### Javascript

```javascript
var myHeaders = new Headers();
myHeaders.append("x-magicapi-key", "your-api-key");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "url": "https://www.nytimes.com/2023/07/05/world/europe/russia-ukraine-prisoner-interview.html"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://api.magicapi.com/api/v1/pipfeed/free_no_card/extract", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

#### Python

```python
import requests
import json

url = "https://api.magicapi.com/api/v1/pipfeed/free_no_card/extract"

payload = json.dumps({
  "url": "https://www.nytimes.com/2023/07/05/world/europe/russia-ukraine-prisoner-interview.html"
})
headers = {
  'x-magicapi-key': 'your-api-key',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

**You can use tools like Postman to test your API as well:**

<figure><img src="/files/3Q0Ko1uQzTBGWwPxUjXP" alt=""><figcaption><p>PostMan request for MagicAPI</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magicapi.com/overview/testing-your-apis-and-products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
