API-Football: Difference between revisions

From HaFrWiki42
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{TOCright}}
{{TOCright}}
== Introduction ==
Football is loved by many people so there are many apps and tools.
The Api-Football <ref name="api-football">[https://www.api-football.com Api-Football] Homepage of the app.</ref> is no exception.
== Web-API? ==
What's an Web-API?
<br>API stands for Application Programming Interface. A Web API is an application programming interface for the Web <ref>[[wikipedia:Web_API|Wikipedia Web API]], Wikipedia WEB-API.</ref>. A Browser API can extend the functionality of a web browser. A Server API can extend the functionality of a web server.
<br>A server-side web API consists of one or more publicly exposed endpoints to a defined request–response message system, typically expressed in JSON or XML by means of an HTTP-based web server.
<br>A server API (SAPI) is not considered a server-side web API, unless it is publicly accessible by a remote web application.
=== REST ===
Web 2.0 Web APIs often use machine-based interactions such as REST and SOAP. RESTful web APIs use HTTP methods to access resources via URL-encoded parameters, and use JSON or XML to transmit data.
<br>By contrast, SOAP protocols are standardized by the W3C and mandate the use of XML as the payload format, typically over HTTP.
<br>Furthermore, SOAP-based Web APIs use XML validation to ensure structural message integrity, by leveraging the XML schemas provisioned with WSDL documents.
<br>A WSDL document accurately defines the XML messages and transport bindings of a Web service.
<br>The API-Football is a REST Api.
== Postman ==
Access to the API can be written in many languages (See the docu of API-Football).
<br>One of the easiest ways to test the REST WebApi is Postman <ref>[https://www.postman.com Postman.com], Homepage Postman.</ref>.


== Widgets ==
== Widgets ==
The widgets are free to use.
The widgets are free to use, but every request counts for your chosen usage plan.
An example blog [https://www.api-football.com/news/post/how-custom-api-football-widgets How to custom api football] explains how to do so.
<br>An example blog [https://www.api-football.com/news/post/how-custom-api-football-widgets How to custom api football] explains how to do so.


<div id              = "wg-api-football-game"
    data-host        = "v3.football.api-sports.io"
    data-key        = "<?php echo API_SPORTS_KEY; ?>"
    data-id          = "718243"
    data-theme      = ""
    data-refresh    = "15"
    data-show-errors = "false"
    data-show-logos  = "true">
</div>
<script
    type  = "module"
    src  = "https://widgets.api-sports.io/2.0.3/widgets.js" >
</script>





Revision as of 15:43, 6 April 2023

Introduction

Football is loved by many people so there are many apps and tools. The Api-Football [1] is no exception.

Web-API?

What's an Web-API?
API stands for Application Programming Interface. A Web API is an application programming interface for the Web [2]. A Browser API can extend the functionality of a web browser. A Server API can extend the functionality of a web server.
A server-side web API consists of one or more publicly exposed endpoints to a defined request–response message system, typically expressed in JSON or XML by means of an HTTP-based web server.
A server API (SAPI) is not considered a server-side web API, unless it is publicly accessible by a remote web application.

REST

Web 2.0 Web APIs often use machine-based interactions such as REST and SOAP. RESTful web APIs use HTTP methods to access resources via URL-encoded parameters, and use JSON or XML to transmit data.
By contrast, SOAP protocols are standardized by the W3C and mandate the use of XML as the payload format, typically over HTTP.
Furthermore, SOAP-based Web APIs use XML validation to ensure structural message integrity, by leveraging the XML schemas provisioned with WSDL documents.
A WSDL document accurately defines the XML messages and transport bindings of a Web service.
The API-Football is a REST Api.

Postman

Access to the API can be written in many languages (See the docu of API-Football).
One of the easiest ways to test the REST WebApi is Postman [3].

Widgets

The widgets are free to use, but every request counts for your chosen usage plan.
An example blog How to custom api football explains how to do so.



See also

top

Reference

top

  1. Api-Football Homepage of the app.
  2. Wikipedia Web API, Wikipedia WEB-API.
  3. Postman.com, Homepage Postman.