Title: API help
Last modified: September 20, 2025

---

# API help

 *  Resolved [tudodemotos](https://wordpress.org/support/users/tudodemotos/)
 * (@tudodemotos)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/api-help-4/)
 * Hello
 * We are using the API from the following developer: [https://www.tabelafipebrasil.com/api/](https://www.tabelafipebrasil.com/api/)
 * The JavaScript used is as follows:
 * It works perfectly, but obviously not in AMP format. Is there anything I can 
   do to make it work?
 * I appreciate any help.
 * Reggards
   Dorival Jr
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fapi-help-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/api-help-4/#post-18651077)
 * Hello [@tudodemotos](https://wordpress.org/support/users/tudodemotos/)
 * Thank you for reaching out to us, The Fipe API uses a script to fetch and generate
   a form for it, the custom JavaScript is not allowed in AMP pages. However, you
   can embed the script using the [amp-iframe tag](https://amp.dev/documentation/components/amp-iframe).
 * Please follow the below steps:
 * 1) Create a file in your website’s wp-content directory and call it `fipe-table.
   html`
 * 2) Open fipe-table.html and add the following code in it
 * `<script async src="https://www.tabelafipebrasil.com/api/js/tabelafipe-widget.
   min.js"></script> <div class="tfb-query" data-style="4" ></div>`
 * 3) Now log in to the WordPress backend, open the page where you wanted it to 
   embed, and add a custom HTML block.
    add following code in it
 *     ```
       <amp-iframe
         width="200"
         height="500"
         sandbox="allow-scripts"
         layout="responsive"
         frameborder="0"
         src="/wp-content/fipe-table.html"
       >
       </amp-iframe>
       ```
   
 * You should be able to find it working in AMP pages. You can add similarly on 
   widget pages.
 * We hope this helps!
    -  This reply was modified 8 months, 2 weeks ago by [Milind More](https://wordpress.org/support/users/milindmore22/).
 *  Thread Starter [tudodemotos](https://wordpress.org/support/users/tudodemotos/)
 * (@tudodemotos)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/api-help-4/#post-18653011)
 * It works!
   Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API help’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [tudodemotos](https://wordpress.org/support/users/tudodemotos/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/api-help-4/#post-18653011)
 * Status: resolved